realbasic-games
[Top] [All Lists]

Best strategy for swapping images on 3D surfaces?

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Best strategy for swapping images on 3D surfaces?
From: "German W. Bauer" <germanbauer at earthlink dot net>
Date: Thu, 13 Oct 2005 21:26:22 -0700
Delivered-to: realbasic-games at lists dot realsoftware dot com
Hi:

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.

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.

Thanks for any advice,
+ German


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