[osg-users] osgShadow with GLES

2016-07-04 Thread Pierre-Jean Petitprez
Hi,

I would like to use the osgShadow soft shadow map on an Android device (with 
GLES 2).
I have already written my own Phong shader for my objects which works very 
well. Now I would like to add the shadow map. I have taken the shader code from 
the SoftShadowMap.cpp file and I have adapted it to add it in my own shader.
But this does not seem to work, the applied shadow map is always fully white.

Maybe this has to do with the texture coordinates that are used.

Can someone enlighten me on using osgShadow with GLES 2 ?

Thank you!

Cheers,
Pierre-Jean

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=67987#67987





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgShadow with GLES

2016-07-04 Thread Werner Modenbach

Hi Pierre-Jean,

I was also doing some research in that.
I think the shader you adopted is not the only place where shaders have 
to be given.

I found some place with comments like
"I don't use my shader because the fixed function shaders have better 
performance".

This is just how I remember the comment - so not exactly reproduced.
To be honest the research was consuming to much of my time.
But it would be really great if share your solution if you manage to 
solve this.


- Werner -

Am 04.07.2016 um 17:48 schrieb Pierre-Jean Petitprez:

Hi,

I would like to use the osgShadow soft shadow map on an Android device (with 
GLES 2).
I have already written my own Phong shader for my objects which works very 
well. Now I would like to add the shadow map. I have taken the shader code from 
the SoftShadowMap.cpp file and I have adapted it to add it in my own shader.
But this does not seem to work, the applied shadow map is always fully white.

Maybe this has to do with the texture coordinates that are used.

Can someone enlighten me on using osgShadow with GLES 2 ?

Thank you!

Cheers,
Pierre-Jean

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=67987#67987





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


--
*TEXION Software Solutions, Rotter Bruch 26a, D-52068 Aachen*
Phone: +49 241 475757-0
Fax: +49 241 475757-29
Web: http://texion.eu
eMail: i...@texion.eu
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org