Re: [osg-users] Shadows on "invisible" objects

2017-03-30 Thread Trajce Nikolov NICK
Hi Allessandro, my case is a bit different, it is about invisible object to cast shadows on visible objects. The second link with the shader hints gave me an idea though... Thank you so much for the links !! Nick On Thu, Mar 30, 2017 at 10:05 AM, Alessandro Terenzi wrote:

Re: [osg-users] Shadows on "invisible" objects

2017-03-30 Thread Alessandro Terenzi
Hi Nick, as far as I understand you'd like to cast shadows onto a geometry that is kind of invisible but still can receive shadows, is this right? Have you already read these? http://forum.openscenegraph.org/viewtopic.php?t=8912=invisible+shadow

[osg-users] Shadows on "invisible" objects

2017-03-28 Thread Trajce Nikolov NICK
Hi Community, I am trying to solve a problem where my scene is with shadow caster model where I want to see only the shadows and have the shadow caster model invisible. What would be the node masks game to achieve this? or some other solution? Thanks a bunch as always Nick -- trajce nikolov

Re: [osg-users] Shadows on invisible objects

2014-02-25 Thread Juan Cruz
Thank you both for your replies. I figured out how to do it with the help of Terry's post. I'm putting my answer here in case anyone else comes across the same problem. I sub-classed osg.ShadowMap, and set a new custom fragment shader code. I created a flag (which I call 'ghostObject') to

Re: [osg-users] Shadows on invisible objects

2013-08-02 Thread Robert Osfield
Hi Juan, It's hard to know exactly what you mean by invisible objects, or how they might recieve a shadow. Could you take a step back and explain at a high level what you are trying to achieve. Robert. On 18 May 2013 13:03, Juan Cruz j_...@hotmail.com wrote: Hi, I'm creating a visualization

[osg-users] Shadows on invisible objects

2013-07-31 Thread Juan Cruz
Hi, I'm creating a visualization where it is critical for some invisible objects to be able to receive shadows on them. I know this sounds physically impossible, but I hope it is possible on a virtual environment. Is there any way of achieving this in OSG? Perhaps using shaders? Thank you!

Re: [osg-users] Shadows on invisible objects

2013-07-31 Thread Terry Welsh
This sounds reasonable. If all your objects (including the invisible ones) have the appropriate NodeMask bit set, then they can all be rendered into your shadow map. Then when you render the final scene, you would need a specialized shader for rendering the invisible objects. This shader would

[osg-users] Shadows on invisible objects

2011-08-05 Thread Alessandro Terenzi
Hi, I want to make an object invisible but, nonetheless, I also want it to receive shadows, any suggestion? By the way, I'm using the ShadowMap technique to implement shadows. Thanks. Alessandro -- Read this topic online here:

Re: [osg-users] Shadows on invisible objects

2011-08-05 Thread Paul Martz
On 8/5/2011 11:03 AM, Alessandro Terenzi wrote: Hi, I want to make an object invisible but, nonetheless, I also want it to receive shadows, any suggestion? By the way, I'm using the ShadowMap technique to implement shadows. Thanks. Alessandro When I use depth map shadows, I use a fragment

Re: [osg-users] Shadows on invisible objects

2011-08-05 Thread Chris 'Xenon' Hanson
On 8/5/2011 11:03 AM, Alessandro Terenzi wrote: Hi, I want to make an object invisible but, nonetheless, I also want it to receive shadows, any suggestion? Receive? That makes no sense. Its appearance can't be altered by a shadow if it has no appearance. -- Chris 'Xenon' Hanson, omo

Re: [osg-users] Shadows on invisible objects

2011-08-05 Thread Alessandro Terenzi
Paul Martz wrote: When I use depth map shadows, I use a fragment shader to sample the depth texture. If I wanted to see only the shadow areas but not the lit areas, I'd just add the appropriate conditional call to discard. Thanks Paul, your suggestion is very helpful, anyway I wonder