[Papervision3D] How to use drawTriangle?
Clox
ogggan at gmail.com
Fri Sep 19 08:58:55 PDT 2008
I want to get the output bitmap from a 3D mesh using
material.getOutputBitmapDataFor(object:DisplayObject3D)
But before I can do that I have to render the scene and specify a camera,
scene, and viewport.
But I don't even want the object to be visible at all, I just need to grab
its outputBitmap, so it feels like calling renderScene is a bit
unnecessary...?
Unless material.drawTriangle doesn't do what I assume it to, then it would
be a better solution, wouldn't it?
But the thing is, I don't understand how to use it, and I can't seem to find
any good documentation of PV3D...
drawTriangle(face3D:Triangle3D, graphics:Graphics,
renderSessionData:RenderSessionData, altBitmap:BitmapData = null,
altUV:Matrix = null):void
The first parameter is self-explaining, but I don't understand what the
second is for, and I'm unsure what to pass to the third as well.
Thanks in advance for any help =)
--
View this message in context: http://www.nabble.com/How-to-use-drawTriangle--tp19575014p19575014.html
Sent from the Papervision3D mailing list archive at Nabble.com.
More information about the Papervision3D
mailing list