OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

osgShadow with GLES


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
PJPetitprez (Pierre-Jean Petitprez)
Newbie


Joined: 03 Aug 2015
Posts: 17

PostPosted: Mon Jul 04, 2016 3:48 pm    Post subject:
osgShadow with GLES
Reply with quote

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
Back to top
View user's profile Send private message
wernerM
User


Joined: 06 Feb 2013
Posts: 65

PostPosted: Mon Jul 04, 2016 3:59 pm    Post subject:
osgShadow with GLES
Reply with quote

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:

Quote:
Quote:
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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
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: (
Only registered users can see emails on this board!
Get registred or enter the forums!
)

------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts osgShadow and gl3 wernerM General 1 Fri Feb 24, 2017 2:54 pm View latest post
No new posts osgPlugins gles error MSB3191: Unable... robertosfield Submission 3 Wed Oct 05, 2016 12:45 pm View latest post
No new posts using osgShadow messes ref_ptrs on exit Trajce Nikolov NICK General 4 Wed Feb 24, 2016 6:48 pm View latest post
No new posts openScenegraph-3.4 gles plugin broken? Voerman, L. Submission 1 Wed Feb 24, 2016 1:08 pm View latest post
No new posts osgShadow: shadow is seen on the oppo... PJPetitprez General 0 Mon Nov 16, 2015 1:50 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP