[vtkusers] Re: Problem using vtkTexture - it doesn't show!
Karlsson Erik
erik.karlsson at optronic.se
Mon Jan 13 10:23:26 EST 2003
Hi again!
Sorry - I forgot to mention that I also add the texture object to an actor.
And I should have included the code in my previous post. Here it is:
p_oImageData = vtkImageData::New();
p_oUCArray = vtkUnsignedCharArray::New();
p_oImageData->SetDimensions (800,600,1);
//p_fTextureImage is a float array containing my texture
p_oUCArray->SetArray((unsigned char *)p_fTextureImage, cropdim, 1);
p_oImageData->GetPointData()->SetScalars(p_oUCArray);
p_oTexturePntr->SetInput(p_oImageData);
.
.
.
.
Actor->SetTexture(p_oTexturePntr)
/Erik
###########################################
This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.F-Secure.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030113/13614611/attachment.htm>
More information about the vtkusers
mailing list