At 8:12 PM -0800 11/20/05, Michael Diehr wrote:
I'm also finding myself confused about the relation between an
Object3D's Shapes, Trimeshes, and Materials.
An Object3D contains a number of shapes. Each shape contains zero or
more Trimeshes. Each TriMesh has a Material.
Does "AddShapeFromPictureWithMask" add Trimesh, and one or more
Materials?
Yes, that one adds a shape consisting of a TriMesh containing two
triangles in the shape of a rectangle, with a material containing the
given texture.
Or are shapes and Trimeshes separate?
I'm not sure how to answer that one.
I'm guessing that the "AddShape..." functions are high-level
methods that do all the Trimesh and Material stuff for you?
Yes, in cases where Trimeshes are involved at all. AddShapeFromFile
may well add a shape that doesn't contain any Trimesh geometry; it
may instead contain a group of Ellipsoids or some Lines or Points or
a Torus or who-knows-what.
Best,
- Joe
--
Joe Strout REAL Software, Inc.
Vote for REALbasic (twice!) in the LinuxWorld Reader's Choice Awards:
http://linux.sys-con.com/general/readerschoice.htm
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|