Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Threads for drawing Animated Textures

2 views
Skip to first unread message

Jamie Burns

unread,
Aug 23, 2002, 10:26:24 AM8/23/02
to
Hello,

I am writing an application which will make heavy use of Animated Textures.
I would like a way of generating these Animated Textures seperately from the
main Scene rendering. Some of these Animated Textures may take a long time
to generate, and so I don't want to stall or stop the main Scene rendering
while this is happening.

Can anyone suggest the best way to approach this?

Can I use threads for drawing Animated Textures offscreen, and if so, how
would I then introduce the generated Animated Texture into the main Scene?

Thanks for your thoughts everyone!

Jamie Burns.


Wolfgang Draxinger

unread,
Aug 24, 2002, 5:26:19 PM8/24/02
to
You could use a thread to prepare a texture for use. If you use a
separate rendering context for the thread, which is sharing the
textures, you also can load up the textures into the video memory.
However I think, that this may slow down your render loop.

--
+------------------------------------------------+
| +----------------+ WOLFGANG DRAXINGER |
| | ,-. DARKSTAR | lead programmer |
| |( ) +---------+ wdrax...@darkstargames.de |
| | `-' / GAMES / |
| +----+'''''''' http://www.darkstargames.de |
+------------------------------------------------+

0 new messages