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: 372
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: 372
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 [Compute Program executed on useprogr... mp3butcher General 5 Sat Nov 18, 2017 1:31 am View latest post
No new posts Shadow Shenanigans (Implementing shad... AnyOldName3 General 9 Wed Sep 20, 2017 4:07 pm View latest post
No new posts Fix for osg::Program crash Colin McDonald Submission 5 Mon Sep 11, 2017 4:43 pm View latest post
No new posts osg::Program::isFixedFunction() shoul... Mathieu Submission 1 Mon Aug 28, 2017 8:49 am View latest post
No new posts Multi-pass rendering segfault issue qiaokun General 0 Mon May 15, 2017 10:36 am 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