[vtkusers] PNG and translucency

Francois Bertel francois.bertel at kitware.com
Mon Mar 26 16:20:40 EDT 2007


Please keep the posts on the mailing list.

On 3/26/07, José Santamaría López <jsantam at ugr.es> wrote:
> Thanks Francois,
>
>    I proved it and it's Ok :-)
>
> I haven't still the VTK user guide book and I
> have several problems reading from .ply images.
> In particular, my code crash (segmentation fault)
> when i try to do it. Next is a portion of the
> code i used:
>
> vtkRenderer* geomRen = vtkRenderer::New();
> geomRen->SetLayer(0);
>
> vtkPLYReader* cabezon = vtkPLYReader::New();
> cabezon->SetFileName("cabezon-0.ply");
>
> vtkPolyDataMapper* geomMap = vtkPolyDataMapper::New();
> geomMap->ImmediateModeRenderingOn();
> geomMap->SetInputConnection(cabezon->GetOutputPort());
>
> vtkActor* geomActor = vtkActor::New();
> geomActor->SetMapper(geomMap);
> geomRen->AddActor(geomActor);
> geomRen->ResetCamera();
>
> Francois Bertel
> > Yes.
> >
> > For example, VTKData/Data/alphachannel.png is a yellow picture with an
> > alpha ramp.
> > It is used in TestOpacity2
> >
> > On 3/26/07, José Santamaría López <jsantam at ugr.es> wrote:
> >> Hi all,
> >>
> >>   does Vtk support 32 Bits PNG images for translucency (it
> >> different to transparency)?
> >>
> >> Thanks.
> >>
> >> _______________________________________________
> >> 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
> >>
> >
> >
> > --
> > François Bertel, PhD  | Kitware Inc. Suite 204
> > 1 (518) 371 3971 x113 | 28 Corporate Drive
> >                       | Clifton Park NY 12065, USA
> > _______________________________________________
> > 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
> >
>
>
>


-- 
François Bertel, PhD  | Kitware Inc. Suite 204
1 (518) 371 3971 x113 | 28 Corporate Drive
                      | Clifton Park NY 12065, USA



More information about the vtkusers mailing list