<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><DIV>
<DIV><FONT size=2>Hello,</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="arial, helvetica, sans-serif" size=2>I add two mappers in a vtkLODProp3D (one vtkVolumeTextureMapper3D and one</FONT><FONT face="arial, helvetica, sans-serif"> 
<P><FONT size=2>vtkFixedPointVolumeRayCastMapper) and I add 10 positional lights. It works very well with vtkFixedPointVolumeRayCastMapper but when the vtkLODProp3D&nbsp; selects the vtkVolumeTextureMapper3D , it uses only one light (the first added). So it's very dark with vtkVolumeTextureMapper3D and normal with vtkFixedPointVolumeRayCastMapper.</FONT></P>
<P><FONT size=2></FONT>&nbsp;</P>
<P><FONT size=2>I have been looking for an answer to this problem without succes. So may be do you know this problem and the answer...</FONT></P>
<P><FONT size=2></FONT>&nbsp;</P>
<P><FONT size=2>Thank you.</FONT></P>
<P><FONT size=2></FONT>&nbsp;</P>
<P><FONT color=#008000 size=2>Part of my code:</FONT></P>
<P><FONT color=#008000 size=2>&nbsp;</P></FONT><FONT size=2>
<P>vtkVolumeProperty * volumeProperty=vtkVolumeProperty::New();</P>
<P>vtkFixedPointVolumeRayCastMapper * volMapper=vtkFixedPointVolumeRayCastMapper::New();</P>
<P>setVolumeProperty(volumeProperty,dataFunction);</P></FONT><FONT size=2>
<P>volMapper-&gt;SetSampleDistance(dataFunction.getScalarDistance());</P></FONT><FONT size=2>
<P>volMapper-&gt;SetImageSampleDistance(1.0);</P></FONT><FONT color=#008000 size=2>
<P>&nbsp;</P></FONT><FONT size=2>
<P>vtkVolumeTextureMapper3D *volMap3D=vtkVolumeTextureMapper3D::New();</P>
<P>volMap3D-&gt;SetSampleDistance(dataFunction.getScalarDistance());</P>
<P>volMap3D-&gt;SetPreferredMethodToNVidia();</P>
<P>&nbsp;</P></FONT><FONT size=2>
<P>vtkLODProp3D * volumeLOD=vtkLODProp3D::New(); </P>
<P></FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> id3D, idRC;</P>
<P>id3D=volumeLOD-&gt;AddLOD(volMap3D,0.0);</P>
<P>idRC=volumeLOD-&gt;AddLOD(volMapper,0.0);</P>
<P>volumeLOD-&gt;SetLODProperty(idRC,volumeProperty);</P>
<P>volumeLOD-&gt;SetLODProperty(id3D,volumeProperty);</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P></FONT></FONT></DIV></DIV></div><br>
      

      <hr size="1"> 
Ne gardez plus qu'une seule adresse mail ! <a href="http://fr.rd.yahoo.com/mail/mail_taglines/trueswitch/*http://www.trueswitch.com/yahoo-fr/">Copiez vos mails</a> vers Yahoo! Mail </body></html>