Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11855 Posts in 1569 Topics- by 3045 Members - Latest Member: lensreslai

10. February 2012, 06:12:13 AM
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)Lights, views and scenegraph
Pages: [1]
Print
Author Topic: Lights, views and scenegraph  (Read 303 times)
boogie
Just dropped in

Offline Offline

Posts: 20


View Profile
« on: 08. July 2010, 08:26:10 AM »

Hi,

if using DirectedLight within the scenegraph, illumination of surfaces changes when the view transform is rotated. I think, this is not an expected behaviour.

To give an example: Imagine to have the camera set viewing some walls inside an open box. Directed light is configured with a vector to yield different shading for every wall. If the view transform now is rotated around any axis (in other words, the camera rotates), illumination of every wall changes, as if light sources are not rotating with the scenegraph.

In contrast, Java3D will yield the correct behaviour: No change of illumination with camera rotation.

Having a closer look at the resulting transform matrices obtained from the view they don't seem to be defined properly. The projection matrix looks a bit uncommon. However, not beeing sure, whether this is the source of the problem.
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic