OpenGL instead of DirectX 10

RhettAllen

04-11-2009 17:55:17

So I just installed python ogre today and was using a tutorial's code to simply see it work.
The code has me importing SampleFramework
I get the error "No module named SampleFramework"

I looked for a solution and found that it is related to DirectX.
My question is, what would be the equivalent in OpenGL? How do I set up a simple ogre scene using OpenGL instead of DirectX?

And are there any quality games done with python ogre that have simple source code to easily understand the general implementation of python ogre?

Oh and hi everybody!

andy

05-11-2009 08:52:02

SampleFramework.py in is the demos directory -- have a look at the demos in demos/ogre to see how things work (these are the best place to start..

You'll see code like:
import sys
sys.path.insert(0,'..')
import PythonOgreConfig

import ogre.renderer.OGRE as ogre
import SampleFramework as sf

Using OpenGL instead of DirectX is simply a configuration choice -- have a read of the Ogre documentation for information on this or of course pick OpenGL as your driver when running any of the demos.

And you can always check out Pathman, Bleep, pyogreblox on sourceforge and look here

Andy

Andy

RhettAllen

06-11-2009 03:55:20

Ah, I understand. However, can you point me in the direction of where to get the demos? It is extremely hard to track down the python ogre downloads and what exactly you are supposed to download, since it does not come with the main download.

Much thanks!

andy

06-11-2009 05:33:59

[b]here[/b]

Andy

RhettAllen

06-11-2009 05:48:18

This is what I have already downloaded. Unfortunately, this download does not come with any demo directory or the SampleFramework files, thus I still don't have the demos. I'm completely confused. Please advise.

Thank you.

andy

06-11-2009 14:25:12

Have a look here -- I updated the 3rd message with further instructions..

If they aren't clear please let me know and I'll tweak them further

Thanks
Andy