realbasic-games
[Top] [All Lists]

Re: Object3D.Clone

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: Object3D.Clone
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Tue, 17 May 2005 08:48:56 -0500
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <550b64abaa2c05377866460528b9d212 at pyramiddesign dot us>
At 8:34 AM -0400 5/17/05, Joseph Nastasi wrote:

If an Object3D is just a masked picture, does using clone really save anything?

Absolutely!

 The docs speak only of geometry. Or is a picture still considered geometry?

Yes, it is, and it's the most important sort of geometry -- a texture. The main point of Object3D.Clone is to get the textures sent to the video card only once even though you may be using them dozens of times on dozens of objects. There may be some savings in sharing the actual triangle list too, but even if so, that's paltry compared to the texture data.

So, yes, you certainly want to clone a masked picture if you need to use it in multiple places.

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>