[vtkusers] skybox

Aashish Chaudhary aashish.chaudhary at kitware.com
Wed Oct 26 12:04:57 EDT 2011


Hi,

I don't know if there is an option available to disable depth testing (or
depth writing). What you can do is create your own polydata mapper (from
vtkPolyDataMapper), and do it there. Probably I will put it in Render()
method.

void vtkPolyDataMapper::Render(vtkRenderer *ren, vtkActor *act)




On Wed, Oct 26, 2011 at 11:31 AM, youpie <meriadegp at yahoo.fr> wrote:

> Hi,
>
> How can i make a skybox with VTK ?
> I guess a I can do it my self with drawing a box with textures. But I can I
> disable this box from the depthBuffer.
> With the actor ? or prop ?
>
> The equivalent in openGL is to call gl_DepthTest(Disabled) then you draw
> your textured box the you call gl_DepthTest(Enabled) and you can draw all
> your scene after...
>
> Tks in advance
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/skybox-tp4940097p4940097.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 
| Aashish Chaudhary
| R&D Engineer
| Kitware Inc.
| www.kitware.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111026/8e42d55c/attachment.htm>


More information about the vtkusers mailing list