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: "German W. Bauer" <germanbauer at earthlink dot net>
Date: Sat, 15 Oct 2005 13:37:18 -0700
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <CA255090-13BE-4291-87D6-5A97C5AF17DF at earthlink dot net> <a06200701bf75706704b9 at [10 dot 10 dot 10 dot 213]>
Oh thanks, Joseph. It sounds like I was going about this the wrong way. I had created 1 object3d with 24 shapes attached to it via AddPictureWithMask, but if I understand you correctly you suggest making each panel its own Object3d, with a set of image surfaces attached and then toggle them via .shape. I will let you know how this works out.

Thanks much,
+ G


On Oct 14, 2005, at 7:27 AM, Joseph J. Strout wrote:

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>


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