realbasic-games
[Top] [All Lists]

Re: Best strategy for swapping images on 3D surfaces?

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: Best strategy for swapping images on 3D surfaces?
From: Jeff Quan <jquan at mindspring dot com>
Date: Thu, 13 Oct 2005 21:39:50 -0700
Delivered-to: realbasic-games at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=mindspring.com; b=LqaamVKz0+ojx5p5gGS17a7p+ik3TDwgr/lXF8XZRym1iZCxmd+IvkmX4U8MddSz; h=Received:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer:X-ELNK-Trace:X-Originating-IP;
References: <CA255090-13BE-4291-87D6-5A97C5AF17DF at earthlink dot net>
On Oct 13, 2005, at 9:26 PM, German W. Bauer wrote:
I have a setup where I created a RB3DSurface with 24 surfaces using AddPictureWithMask, each of the pictures is 24-bit + Alpha and 400x400 pixels. All images are supposed to get swapped out periodically (approx every 8 secs) with new images.

I was tearing down all objects and then recreating the surfaces, then updating the rb3dsurface. Would using RemoveSurface and then using AddPictureWithMask in RB2005 be faster? What are other strategies I could employ to make it less taxing on the system? It's running on a Dual 2GHz PowerMac which I believe has a Geforce 5200 Ultra.

If you have RB2005r3, why not try the swapping textures via Trimesh.Material.Texture? This way you'd never have to continuously delete and rebuild, just build 24 Trimeshes and swap textures periodically.


==
Jeff Quan
jquan at mindspring dot com

_______________________________________________
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>