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 

[ShadowScene traversal] program in Shadow rtt pass not overriden ?


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
mp3butcher (Julien Valentin)
Appreciator


Joined: 17 Feb 2010
Posts: 426
Location: France

PostPosted: Fri Dec 08, 2017 6:07 pm    Post subject:
[ShadowScene traversal] program in Shadow rtt pass not overriden ?
Reply with quote

Hi,

Hi
Shouldn't there be an overriding "simple gl_depth output" program for shadowscene traversal?!
I'll try to hack my way in
Code:
void ShadowTechnique::CameraCullCallback::operator()(osg::Node*, osg::NodeVisitor* nv)
{
    if (_shadowTechnique->getShadowedScene())
    {
        _shadowTechnique->getShadowedScene()->osg::Group::traverse(*nv);
    }
}

but if someone knows there's a good reason for that, please tell me ..

Thank you!

Cheers,
Julien
Back to top
View user's profile Send private message Visit poster's website
mp3butcher (Julien Valentin)
Appreciator


Joined: 17 Feb 2010
Posts: 426
Location: France

PostPosted: Fri Dec 08, 2017 7:01 pm    Post subject:
Re: [ShadowScene traversal] program in Shadow rtt pass not overriden ?
Reply with quote

..settings rttcams stateset in each technique seams more flexible than mod ShadowTechnique::CameraCullCallback...

But in fact overriding program involve overriding VS too which is not the desired behavior

Sorry for the noise

mp3butcher wrote:
Hi,

Hi
Shouldn't there be an overriding "simple gl_depth output" program for shadowscene traversal?!
I'll try to hack my way in
Code:
void ShadowTechnique::CameraCullCallback::operator()(osg::Node*, osg::NodeVisitor* nv)
{
    if (_shadowTechnique->getShadowedScene())
    {
        _shadowTechnique->getShadowedScene()->osg::Group::traverse(*nv);
    }
}

but if someone knows there's a good reason for that, please tell me ..

Thank you!

Cheers,
Julien
Back to top
View user's profile Send private message Visit poster's website
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 Shader Program stops working after Ch... ceranco General 0 Mon May 21, 2018 3:09 pm View latest post
No new posts EXTERNAL: Re: EXTERNAL: Re: Writing t... Rowley, Marlin R General 0 Wed Apr 18, 2018 2:31 pm View latest post
No new posts EXTERNAL: Re: Writing texture coordin... robertosfield General 1 Sat Apr 14, 2018 5:48 pm View latest post
No new posts Writing texture coordinates on a mesh... Rowley, Marlin R General 135 Sat Apr 14, 2018 1:48 am View latest post
No new posts Draping polygons on existing objects ... hartwigw General 0 Thu Apr 05, 2018 10:35 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