Hello Pablo,

Pablo Carneiro Elias wrote:
> I ran my app under gDEBugger after have OSG patched and I found a call 
> to glDepthMask(FALSE) in
> OSG::RenderPartition::doExecution - osgrenderpartition.cpp, line 491

yes, but only if ZWriteTrans is false (the default).

> Heres“s teh stack:
> 
> OSG::RenderPartition::doExecution - osgrenderpartition.cpp, line 491
> OSG::RenderAction::drawBuffer - osgrenderaction.cpp, line 692
> OSG::RenderAction::stop - osgrenderaction.cpp, line 617
> OSG::Action::callStop - osgaction.cpp, line 642
> OSG::Action::apply - osgaction.cpp, line 298
> OSG::Action::apply - osgaction.cpp, line 315
> OSG::Viewport::render - osgviewport.cpp, line 367
> OSG::Window::doRenderAllViewports - osgwindow.cpp, line 2407
> OSG::Window::render - osgwindow.cpp, line 2014

hm, that is the default partition, for which the ZWriteTrans value is 
set from the RenderAction::start(). There is only very few places that 
touch that variable and for all of them it looks as if the value from 
the RenderAction is propagated correctly to the RenderPartition.

It seems the most logical explanation is that for your RenderAction the 
value of ZWriteTrans is not correct. Can you please verify that you call

RenderAction* ract;
ract->setZWriteTrans(true);

at some point and that ract is indeed the RA instance used for rendering?

        Cheers,
                Carsten

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to