Disable depth write

0 views
Skip to first unread message

Angelo Franco

unread,
Nov 23, 2009, 4:09:43 PM11/23/09
to O3D-discuss
How can I disable the zbuffer writing during rendering?

I suspect I have to change some parameters in the StateSet node, but I
can't find anything in the documentation.

Maybe changing o3d.State.Comparison? I don't know.

Please assist.

Vangelis Kokkevis

unread,
Nov 23, 2009, 5:23:24 PM11/23/09
to o3d-d...@googlegroups.com
It's actually exposed as a Param on State objects.  Look at the docs here:


specifically State.getStateParam().  zWriteEnable is the one you need. 

Vangelis


 
--

You received this message because you are subscribed to the Google Groups "O3D-discuss" group.
To post to this group, send email to o3d-d...@googlegroups.com.
To unsubscribe from this group, send email to o3d-discuss...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/o3d-discuss?hl=.



Angelo Franco

unread,
Nov 23, 2009, 5:32:46 PM11/23/09
to O3D-discuss
There it is. Thank you!

On Nov 23, 8:23 pm, Vangelis Kokkevis <vange...@google.com> wrote:
> On Mon, Nov 23, 2009 at 1:09 PM, Angelo Franco <angelo.fra...@gmail.com>wrote:
>
> > How can I disable the zbuffer writing during rendering?
>
> > I suspect I have to change some parameters in the StateSet node, but I
> > can't find anything in the documentation.
>
> > Maybe changing o3d.State.Comparison? I don't know.
>
> > Please assist.
>
> It's actually exposed as a Param on State objects.  Look at the docs here:
>
> http://code.google.com/apis/o3d/docs/reference/classo3d_1_1_o3d.state...
>
> <http://code.google.com/apis/o3d/docs/reference/classo3d_1_1_o3d.state...>specifically
> State.getStateParam().  zWriteEnable is the one you need.
>
> Vangelis
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "O3D-discuss" group.
> > To post to this group, send email to o3d-d...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > o3d-discuss...@googlegroups.com<o3d-discuss%2Bunsu...@googlegroups.com>
> > .
Reply all
Reply to author
Forward
0 new messages