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: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Fri, 14 Oct 2005 09:27:26 -0500
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <CA255090-13BE-4291-87D6-5A97C5AF17DF at earthlink dot net>
At 9:26 PM -0700 10/13/05, 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.

This works well if I have a 6x4 testarray of images looking onto the images directly, however it gets unbelievably slow when the camera also moves. I wanted to created a "fly-by" motion with the camera, while the images on surfaces get swapped.

That should be no problem.

I was tearing down all objects and then recreating the surfaces, then updating the rb3dsurface.

You shouldn't have to tear or recreate anything. Just add all the pictures ahead of time to the surface, and "swap" among them by assigning to the .Shape property.

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>