Hi,

> Hello all,
> 
> i've got problems with lights and shadows especially when i try to make 
> a simple node tree of lights and geometry. here's a very simple linear setup
> //m_scene contains the model
> //m_floor is a plane in the xz plane with transparency 1
> //m_toplight0 is a point light with great distance above the model with 
> shadow intensity 0.4
> //m_toplight1 is a point light slightly above the model with shadow 
> intensity 0.4
> //m_camlight is a spot light attached to the camera and looking to ward 
> the model
> //m_light is a point light with coordinates -10.0, 10.0, 10.0
> 
> m_scene.node()->addChild(m_floor.node());
> m_toplight1.node()->addChild(m_scene.node());
> m_toplight0.node()->addChild(m_toplight1.node());
> m_camlight.node()->addChild(m_toplight0);
> m_light.node()->addChild(m_camlight);
> m_root.node()->addChild(m_light.node());
> 
> it gives me that rendering
> archr01_render01.jpg
> 
> but i want to get rid of the shadow on the floor from the light m_light 
> so i tried this
> 
> m_camlight.node()->addChild(m_scene.node());
> m_light.node()->addChild(m_camlight);
> m_toplight1.node()->addChild(m_light);
> m_toplight1.node()->addChild(m_floor.node());
> m_toplight0.node()->addChild(m_toplight1.node());
> m_root.node()->addChild(m_toplight0.node());
> 
> to get the following image, there's artifacts on the floor, and also the 
> shadow of m_light on the floor i couldn't get rid of it despite that the 
> floor is not under the m_light in the graph
> archr01_render02.jpg
> 
> i get artifacts on the floor for all tree structures i tried, when the 
> lights is not linearly under each other.
> 
> so
> 1) how to get rid of the artifacts on the floor?
> 2) is there a way to get rid of the shadow of m_light on the floor but i 
> want the self shadow on the model.
> 3) is there a way that toplights cast shadow on the floor but not self 
> shadow on the model.
> 4) is there a way to get softer shadow i tried this
> map size is 1024
> m_viewport->setShadowSmoothness(1); with no luck the shadow still isn't 
> smooth
> 
> sorry for lots of questions and thanks for advance,
> Abdalla

I think that's not possible you can exclude shadow casters but not 
shadow receivers.

Andreas

-- 
VREC
Robert-Bosch-Straße 7
D-64293 Darmstadt
Tel. 06151-4921035

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to