realbasic-games
[Top] [All Lists]

Re: Cross-fade using RB2005r3 3D features?

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: Cross-fade using RB2005r3 3D features?
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Mon, 21 Nov 2005 08:37:06 -0700
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <DE245642-371C-4955-AEB8-B02D56CEDB1E at xochi dot com> <B5F0B8FD-3B52-4C52-BB7D-38E8298D9BE7 at xochi dot com>
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>

<Prev in Thread] Current Thread [Next in Thread>