3D drawing in wxpython

Hi Ali,

There aren’t going to be many alternatives if you want to have multiple threads all doing 3D

drawing commands at the same time.

But usually, you only need to draw from one thread (the main thread.) Your other threads would

be updating the data (model) that gets drawn, and then sending a message to the main thread that gets

it do do an Update() and trigger a paint event.

What sort of application are you writing? How many threads do you have going at once? What

are they drawing?

Most video games are single-threaded. The best excuse to use threads

is when you need to do some synchronous operation that blocks

on hardware or network access. Doing this in a thread makes a lot

of sense… otherwise, it’s usually preferable to try to use

asynchronous methods from as few threads as possible.

(If you were programming in Java, there’s a philosophy of lots of synchronous methods

in as many threads as are necessary… but even then Java is doing all the drawing

from one thread under the covers.)

-Jim

···

From: Ali Omidvar [mailto:behrang_o@hotmail.com]
Sent: Wednesday, July 07, 2004 3:02 PM
To: wxpython-users@lists.wxwidgets.org
Subject:
[wxPython-users] RE: 3D drawing in wxpython

Hello everyone,

I want to draw 3D shapes in the wxpython. I have tried Opengl, but it does not seem to work properly with thread.

Have you ever had experience with any other 3D graphing program in Wxpython (Specially the program that works with threads)?

Thanks a lot

Ali Omidvar.