viktorradnai / flightgear-ask21

ASK21 glider model for Flightgear
5 stars 6 forks source link

Instructor view seems to use wrong cubemap #101

Closed gilbertohasnofb closed 7 years ago

gilbertohasnofb commented 7 years ago

Back seat seems to be using the front shadow cubemap

viktorradnai commented 7 years ago

Is #87 caused by this?

gilbertohasnofb commented 7 years ago

@viktorradnai Hmm I see them fine here:

fgfs-screen-001

How are you changing to the instructors' seat? I hit Shift+V two or three times to cycle back and there are shadows there.

viktorradnai commented 7 years ago

Actually the problem is that the shadows in the front and rear cockpit are done using separate maps and this is noticable in the footwell. fgfs-screen-302

ghost commented 7 years ago
  1. they use different maps because the situation and viewpoint is rather different, this should be no problem.
  2. I just discovered that it indeed is using the wrong cubemap, a typo, will add this to #107
ghost commented 7 years ago

Maybe irradiance maps http://wiki.flightgear.org/ALS_technical_notes#Irradiance_maps can help for the fuselage? I never found out how to use them exactly but it seems the right way..

gilbertohasnofb commented 7 years ago

@D-ECHO I believe the c172p makes use of the irradiance effect, take a look at there. Perhaps drop a message to @wlbragg if you have concrete questions, as he is the one who implemented it in that other project.

ghost commented 7 years ago

I tried the irradiance map (also in c172p) but I don't think it looks that good... However, I'd close this issue as the wrong cubemap is solved