Demo problems OpenGL

Problems building or running the engine, queries about how to use features etc.
Post Reply
Clark
Gnoblar
Posts: 3
Joined: Wed Feb 02, 2005 2:40 pm

Demo problems OpenGL

Post by Clark »

I have built STLPort 4.6.2 correctly and also Ogre 0.15.2 but when I try to run any of the demos using OpenGL I get the following error.

Code: Select all

Assertion Failed:

Program: ...5-2\Samples\Common\Bin\Debug\Demo_SkyPlane.exe
File: d\work\orge-win32.v0-15-2\renderingsystems\gl\src\glprocs.c

Line:8654

Expression: 0

Stack Trace:

Code: Select all

_assert(void * 0x0142101c `string', void * 0x01421020 `string', unsigned int 8654) line 256

InitGetSwapIntervalEXT() line 8654 + 35 bytes

Ogre::Win32Window::create(Ogre::Win32Window * const 0x00b342d0, const
 
_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > & {...}, unsigned int 800, unsigned int 600, unsigned int 24, unsigned char 0, int 0, int 0, unsigned char 1) line 229 + 13 bytes

Ogre::Win32GLSupport::newWindow(const _STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > & {...}, unsigned int 800, unsigned int 600, unsigned int 24, unsigned char 0, int 0, int 0, unsigned char 1, Ogre::RenderWindow * 0x00000000, unsigned char 1) line 217 + 67 bytes

Ogre::GLRenderSystem::createRenderWindow(const _STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > & {...}, unsigned int 800, unsigned int 600, unsigned int 24, unsigned char 0, int 0, int 0, unsigned char 1, Ogre::RenderWindow * 0x00000000) line 622 + 68 bytes

Ogre::Win32GLSupport::createWindow(unsigned char 1, Ogre::GLRenderSystem * 0x00b2f110, const _STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > & {...}) line 192 + 41 bytes

Ogre::GLRenderSystem::initialise(unsigned char 1, const _STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > & {...}) line 245 + 37 bytes

Ogre::Root::initialise(unsigned char 1, const _STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > & {...}) line 428 + 29 bytes

ExampleApplication::configure() line 104 + 85 bytes
ExampleApplication::setup() line 76 + 13 bytes
ExampleApplication::go() line 55 + 13 bytes
WinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, char * 0x00132ab7, HINSTANCE__ * 0x00000000) line 39
WinMainCRTStartup() line 330 + 54 bytes
KERNEL32! 7c59893d()

I'm running win2K, VC++6.0 SP5, STLPort 4.6.2, Ogre 0.15.2.

Has anyone had any similar problems and how did you resolve them :?

Thanxs in advance.

Clark
Clark
Gnoblar
Posts: 3
Joined: Wed Feb 02, 2005 2:40 pm

Also the D3D demos don't work

Post by Clark »

I have been trying to run the D3D also biut have a different error. Here is the log:

Code: Select all

16:20:13: Loading library OgrePlatform.dll
16:20:13: ArchiveFactory for archive type Zip registered.
16:20:13: Loading library .\RenderSystem_Direct3D7
16:20:13: Direct3D7 Rendering Subsystem created.
16:20:13: ----- DirectDraw Detection Starts
16:20:14: Detected DirectDraw driver Primary Display Driver.

16:20:14: ----- DirectDraw Detection Ends
16:20:14: Loading library .\RenderSystem_Direct3D9
16:20:14: D3D9 : Direct3D9 Rendering SubSystem created.
16:20:14: D3D9: Driver Detection Starts
16:20:14: D3D9: Driver Detection Ends
16:20:14: Loading library .\RenderSystem_GL
16:20:14: OpenGL Rendering Subsystem created.
16:20:14: Loading library .\Plugin_FileSystem
16:20:14: ArchiveFactory for archive type FileSystem registered.
16:20:14: Loading library .\Plugin_ParticleFX
16:20:14: Particle Emitter Type 'Point' registered
16:20:14: Particle Emitter Type 'Box' registered
16:20:14: Particle Emitter Type 'Ellipsoid' registered
16:20:14: Particle Emitter Type 'Cylinder' registered
16:20:14: Particle Emitter Type 'Ring' registered
16:20:14: Particle Emitter Type 'HollowEllipsoid' registered
16:20:14: Particle Affector Type 'LinearForce' registered
16:20:14: Particle Affector Type 'ColourFader' registered
16:20:14: Particle Affector Type 'ColourFader2' registered
16:20:14: Particle Affector Type 'ColourImage' registered
16:20:14: Particle Affector Type 'ColourInterpolator' registered
16:20:14: Particle Affector Type 'Scaler' registered
16:20:14: Particle Affector Type 'Rotator' registered
16:20:14: Loading library .\Plugin_BSPSceneManager
16:20:14: Loading library .\Plugin_OctreeSceneManager
16:20:14: TerrainSceneManager: Registered a new PageSource for type Heightmap
16:20:14: Loading library .\Plugin_GuiElements
16:20:14: GuiElementFactory for type Cursor registered.
16:20:14: GuiElementFactory for type Panel registered.
16:20:14: GuiElementFactory for type BorderPanel registered.
16:20:14: GuiElementFactory for type TextArea registered.
16:20:14: GuiElementFactory for type TextBox registered.
16:20:14: GuiElementFactory for type Button registered.
16:20:14: GuiElementFactory for type BorderButton registered.
16:20:14: GuiElementFactory for type List registered.
16:20:14: GuiElementFactory for type ScrollBar registered.
16:20:14: GuiElementFactory for type PopupMenu registered.
16:20:14: GuiElementFactory for type TTY registered.
16:20:14: Loading library .\Plugin_NatureSceneManager
16:20:14: Loading library .\Plugin_CgProgramManager
16:20:15: *-*-* OGRE Initialising
16:20:15: *-*-* Version 0.15.2 (Hastur)
16:20:15: FileSystem Archive Codec for ../../../Media created.
16:20:15: FileSystem Archive Codec for ../../../Media/fonts created.
16:20:15: FileSystem Archive Codec for ../../../Media/materials/programs created.
16:20:15: FileSystem Archive Codec for ../../../Media/materials/scripts created.
16:20:15: FileSystem Archive Codec for ../../../Media/materials/textures created.
16:20:15: FileSystem Archive Codec for ../../../Media/models created.
16:20:15: FileSystem Archive Codec for ../../../Media/overlays created.
16:20:15: FileSystem Archive Codec for ../../../Media/particle created.
16:20:15: Zip Archive codec for ../../../Media/packs/cubemap.zip created.
16:20:15: Zip Archive codec for ../../../Media/packs/cubemapsJS.zip created.
16:20:15: Zip Archive codec for ../../../Media/packs/dragon.zip created.
16:20:15: Zip Archive codec for ../../../Media/packs/fresneldemo.zip created.
16:20:15: Zip Archive codec for ../../../Media/packs/OgreCore.zip created.
16:20:15: Zip Archive codec for ../../../Media/packs/ogretestmap.zip created.
16:20:15: Zip Archive codec for ../../../Media/packs/skybox.zip created.
16:20:15: D3D9 : RenderSystem Option: Anti aliasing = None
16:20:15: D3D9 : RenderSystem Option: Full Screen = Yes
16:20:15: D3D9 : RenderSystem Option: Rendering Device = S3 Inc. Trio3D/2X Display Driver Version 5.30.05 Engineering Release
16:20:15: D3D9 : RenderSystem Option: VSync = No
16:20:15: D3D9 : RenderSystem Option: Video Mode = 800 x 600 @ 32-bit colour
16:22:19: D3D9 : Subsystem Initialising
16:22:19: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 9
Function: D3D9RenderSystem::initialise
Description: Can't find requested video mode.. 
File: d:\work\orge-win32-v0-15-2\rendersystems\direct3d9\src\ogred3d9rendersystem.cpp
Line: 480
Stack unwinding: <<beginning of stack>>
16:22:29: *-*-* OGRE Shutdown
16:22:29: Zip Archive Codec for ../../../Media/packs/OgreCore.zip unloaded.
16:22:29: FileSystem Archive Codec for ../../../Media/materials/programs unloaded.
16:22:29: Zip Archive Codec for ../../../Media/packs/dragon.zip unloaded.
16:22:29: FileSystem Archive Codec for ../../../Media unloaded.
16:22:29: FileSystem Archive Codec for ../../../Media/models unloaded.
16:22:29: FileSystem Archive Codec for ../../../Media/particle unloaded.
16:22:29: Zip Archive Codec for ../../../Media/packs/skybox.zip unloaded.
16:22:29: FileSystem Archive Codec for ../../../Media/materials/textures unloaded.
16:22:29: FileSystem Archive Codec for ../../../Media/fonts unloaded.
16:22:29: FileSystem Archive Codec for ../../../Media/materials/scripts unloaded.
16:22:29: Zip Archive Codec for ../../../Media/packs/fresneldemo.zip unloaded.
16:22:29: FileSystem Archive Codec for ../../../Media/overlays unloaded.
16:22:29: Zip Archive Codec for ../../../Media/packs/cubemap.zip unloaded.
16:22:29: Zip Archive Codec for ../../../Media/packs/ogretestmap.zip unloaded.
16:22:29: Zip Archive Codec for ../../../Media/packs/cubemapsJS.zip unloaded.
16:22:29: Unloading library .\Plugin_CgProgramManager
16:22:29: Unloading library .\Plugin_NatureSceneManager
16:22:29: Unloading library .\Plugin_GuiElements
16:22:29: Unloading library .\Plugin_OctreeSceneManager
16:22:29: Unloading library .\Plugin_BSPSceneManager
16:22:29: Unloading library .\Plugin_ParticleFX
16:22:29: Unloading library .\Plugin_FileSystem
16:22:29: *** Stopping Win32GL Subsystem ***
16:22:29: Unloading library .\RenderSystem_GL
16:22:29: D3D9 : Shutting down cleanly.
16:22:29: D3D9 : Direct3D9 Rendering SubSystem destroyed.
16:22:29: Unloading library .\RenderSystem_Direct3D9
16:22:29: *-*-* Direct3D Subsystem shutting down cleanly.
16:22:29: Direct3D7 Rendering Subsystem destroyed.
16:22:29: Unloading library .\RenderSystem_Direct3D7
16:22:29: Unloading library OgrePlatform.dll
Any help woud be kindly appreciated .
User avatar
tuan kuranes
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 2653
Joined: Wed Sep 24, 2003 8:07 am
Location: Haute Garonne, France
x 4
Contact:

Post by tuan kuranes »

mmmm s3 trio with win2k....
(laptop ?)

Does win2k have directx9c runtime update ? did you installed it ?
S3 trio driver is very unlikely to support OpenGL, no ?
(check your driver capabilites)

s3 is a very old video card, Ogre minimum requirement is more geforce2mx class...

perhaps Dx7 would works...
Clark
Gnoblar
Posts: 3
Joined: Wed Feb 02, 2005 2:40 pm

Post by Clark »

I have already had a number of apps using openGL running on this machine and am current waiting for D3D9c to finish downlòoading so I can install it I was using 9b before.
User avatar
:wumpus:
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 3067
Joined: Tue Feb 10, 2004 12:53 pm
Location: The Netherlands
x 1

Post by :wumpus: »

Code: Select all

extproc = (void *) wglGetProcAddress("wglGetSwapIntervalEXT");

	if (extproc == NULL) {
		_ASSERT(0);
		return 0;
	}
Ogre needs that GL extension to set vsync on/off, your card clearly does not provide it.
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 67
Contact:

Post by sinbad »

Eeeeeeeek, S3 card! :shock:

/me hastily paints an elder sign on his door ;)
Post Reply