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:
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
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
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
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
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!
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
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:
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
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
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
11 matches
Mail list logo