Advertisement

I have chosen Python - now I ask some questions.

Started by August 29, 2004 07:51 PM
2 comments, last by kindfluffysteve 20 years, 2 months ago
I've chosen to learn python because I think it might be really useful in our game. we've doing a flightsim. I wonder if pythons opengl support would be handy to enable modding of the electron cockpit dials and huds? normally to do a mod, alls you really need to do is just reposition some dials and change the textures - thats in simulating old planes - but modern planes have modern and specific avionics. so what do you think guys? could python be good for this?
another question..

..is it a viable approach to sort of use some sort of python2c routine to sort of cast things in the game.

perhaps some development might be experimented on in python then ported to C for speed when certain things were felt to be perfected.
Advertisement
Python's OpenGL support is a straight translation of the C support. But you don't want to mix Python OpenGL and C OpenGL really. Keep the actual rendering on one side of the engine.

If the main thing you're doing is repositioning graphical elements then a scripting language like Python is possibly overkill for what you need.

If you do work in Python then you have many options for interfacing to C, some of which are in the forum FAQ. It's common to reimplement Python modules in C or C++ and continue to use them from other Python modules as if nothing has changed.
well the repositioning of ordinary analogue dials - thats easy stuff. these are actually in our system graphically placed.

but its multimode displays like the HUD and radar and others which are simulations in their own right.

This topic is closed to new replies.

Advertisement