[vtkusers] Turn off Z-buffer Depth using vtkPolyDataMapper

Paulo Henrique Junqueira Amorim paulojamorim at gmail.com
Mon Dec 22 07:46:57 EST 2008


Hi,

How  as you connect the pipeline VTK with OpenGL?

Regards,
Paulo



2008/12/21 Utkarsh Ayachit <utkarsh.ayachit at kitware.com>

> Please keep the conversation to the mailing list so that others can
> contribute as well.
>
> You can in-place modifify vtkPolyDataMapper::Render(...)
>
> Utkarsh
>
> On Thu, Dec 18, 2008 at 12:05 PM, Amine SAHTARI <msahtari at gmail.com>
> wrote:
> > Yes, i want just to do it per actor. That why I need to copy and modify
> > vtkPolyDataMapper.
> > I would like to know where in the code of vtkPolyDataMapper, I need to
> > disable ztest ?
> >
> > your help is very appreciated.
> >
> >
> > 2008/12/18 Utkarsh Ayachit <utkarsh.ayachit at kitware.com>
> >>
> >> 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
> >> >
> >> >
> >
> >
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081222/53b32009/attachment.htm>


More information about the vtkusers mailing list