[vtkusers] light problems with vtkLODProp3D

vincent elkouby vincent_elkouby at yahoo.fr
Thu Dec 13 07:26:17 EST 2007


Hello,
 

I add two mappers in a vtkLODProp3D (one vtkVolumeTextureMapper3D and one 
vtkFixedPointVolumeRayCastMapper) and I add 10 positional lights. It works very well with vtkFixedPointVolumeRayCastMapper but when the vtkLODProp3D  selects the vtkVolumeTextureMapper3D , it uses only one light (the first added). So it's very dark with vtkVolumeTextureMapper3D and normal with vtkFixedPointVolumeRayCastMapper.




I have been looking for an answer to this problem without succes. So may be do you know this problem and the answer...

 

Thank you.

 

Part of my code:

 

vtkVolumeProperty * volumeProperty=vtkVolumeProperty::New();

vtkFixedPointVolumeRayCastMapper * volMapper=vtkFixedPointVolumeRayCastMapper::New();

setVolumeProperty(volumeProperty,dataFunction);

volMapper->SetSampleDistance(dataFunction.getScalarDistance());

volMapper->SetImageSampleDistance(1.0);

 

vtkVolumeTextureMapper3D *volMap3D=vtkVolumeTextureMapper3D::New();

volMap3D->SetSampleDistance(dataFunction.getScalarDistance());

volMap3D->SetPreferredMethodToNVidia();

 

vtkLODProp3D * volumeLOD=vtkLODProp3D::New(); 

int id3D, idRC;

id3D=volumeLOD->AddLOD(volMap3D,0.0);

idRC=volumeLOD->AddLOD(volMapper,0.0);

volumeLOD->SetLODProperty(idRC,volumeProperty);

volumeLOD->SetLODProperty(id3D,volumeProperty);

 

 

 

 





      

       
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 





      _____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20071213/a67cea2f/attachment.htm>


More information about the vtkusers mailing list