[vtkusers] Turn off Z-buffer Depth using vtkPolyDataMapper

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Thu Dec 18 10:59:49 EST 2008


That sounds like a plan if you want to enable/disable ztest per actor
level. If that's for the entire scene I'd do it in vtkOpenGLRenderer.

Utkarsh

On Thu, Dec 18, 2008 at 9:51 AM, Amine SAHTARI <msahtari at gmail.com> wrote:
> Thank you Utkrsh for your answer. I really appreciate it.
>
> I guess that I should copy and modify my vtkPolyDataMapper.I would just to
> know where in vtkMyPolyDataMapper code, I should disable the Z-buffer by
> using : glDepthMask(GL_False);
>
> I am not sure that it is the best way to do that.
> Any suggestions ?
> Please correct me if I am wrong.
>
> Amine
>
>
>
> 2008/12/18 Amine SAHTARI <msahtari at gmail.com>
>>
>> Hi experts,
>>
>> I would like to know how to turn off Z-Buffer (Depth) using
>> vtkPolyDataMapper. Is there an option ? or shall I modify the code of
>> vtkPolyDataMapper ?
>>
>> Looking forward to hear from you soon.
>>
>> Thanks in advance,
>>
>> Amine
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>



More information about the vtkusers mailing list