Problem running tutorials

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
User avatar
morp
Gnoblar
Posts: 20
Joined: Tue May 31, 2005 9:46 pm
Location: Winnipeg, Manitoba, CANADA

Problem running tutorials

Post by morp »

I downloaded the sample demos and they all work.
I have configured the tutorials as shown.
(probably missed something fundamental)
The tutorials compile without error.
When I run any given one, I am prompted to select OpenGL, DX9 etc
After selecting any of the choices, the screen goes black (full screen), program chugs a few moments and exits.
I do not see any lights, robots etc. in the tutorials.
The log file does not appear to have any errors in it.

I must have missed something, any ideas?

I b a newbie, but this looks like fun.

User avatar
discipline
OGRE Community Helper
OGRE Community Helper
Posts: 766
Joined: Mon May 16, 2005 12:09 am

Re: Problem running tutorials

Post by discipline »

morp wrote:The log file does not appear to have any errors in it.
What exactly does it say?

User avatar
morp
Gnoblar
Posts: 20
Joined: Tue May 31, 2005 9:46 pm
Location: Winnipeg, Manitoba, CANADA

Post by morp »

This is from tutorial #2, I forgot to mention that the mouse appears for a moment.


08:03:59: Creating resource group General
08:03:59: Registering ResourceManager for type Material
08:03:59: Registering ResourceManager for type Mesh
08:03:59: Registering ResourceManager for type Skeleton
08:03:59: Loading library OgrePlatform_d.dll
08:03:59: OverlayElementFactory for type Panel registered.
08:03:59: OverlayElementFactory for type BorderPanel registered.
08:03:59: OverlayElementFactory for type TextArea registered.
08:03:59: Registering ResourceManager for type Font
08:03:59: ArchiveFactory for archive type FileSystem registered.
08:03:59: ArchiveFactory for archive type Zip registered.
08:03:59: DevIL version: Developer's Image Library (DevIL) 1.6.5
08:03:59: DevIL image formats: bmp dib cut dcx dds gif ico cur jpg jpe jpeg lif mdl mng jng pcx pic pix png pbm pgm pnm ppm psd pdd psp pxr sgi bw rgb rgba tga vda icb vst tif tiff wal xpm raw
08:03:59: Registering ResourceManager for type HighLevelGpuProgram
08:03:59: Loading library .\RenderSystem_Direct3D7
08:03:59: Direct3D7 Rendering Subsystem created.
08:03:59: ----- DirectDraw Detection Starts
08:04:00: Detected DirectDraw driver Primary Display Driver
08:04:00: Detected DirectDraw driver RADEON 9100 IGP
08:04:00: ----- DirectDraw Detection Ends
08:04:00: Loading library .\RenderSystem_Direct3D9
08:04:00: D3D9 : Direct3D9 Rendering SubSystem created.
08:04:00: D3D9: Driver Detection Starts
08:04:00: D3D9: Driver Detection Ends
08:04:00: Loading library .\RenderSystem_GL
08:04:00: OpenGL Rendering Subsystem created.
08:04:00: Loading library .\Plugin_ParticleFX
08:04:00: Particle Emitter Type 'Point' registered
08:04:00: Particle Emitter Type 'Box' registered
08:04:00: Particle Emitter Type 'Ellipsoid' registered
08:04:00: Particle Emitter Type 'Cylinder' registered
08:04:00: Particle Emitter Type 'Ring' registered
08:04:00: Particle Emitter Type 'HollowEllipsoid' registered
08:04:00: Particle Affector Type 'LinearForce' registered
08:04:00: Particle Affector Type 'ColourFader' registered
08:04:00: Particle Affector Type 'ColourFader2' registered
08:04:00: Particle Affector Type 'ColourImage' registered
08:04:00: Particle Affector Type 'ColourInterpolator' registered
08:04:00: Particle Affector Type 'Scaler' registered
08:04:00: Particle Affector Type 'Rotator' registered
08:04:00: Loading library .\Plugin_BSPSceneManager
08:04:00: Registering ResourceManager for type BspLevel
08:04:00: Loading library .\Plugin_OctreeSceneManager
08:04:00: TerrainSceneManager: Registered a new PageSource for type Heightmap
08:04:00: Loading library .\Plugin_CgProgramManager
08:04:00: *-*-* OGRE Initialising
08:04:00: *-*-* Version 1.0.2 (Azathoth)
08:04:00: Creating resource group Bootstrap
08:04:00: Added resource location '../../media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
08:04:00: Added resource location '../../media' of type 'FileSystem' to resource group 'General'
08:04:00: Added resource location '../../media/fonts' of type 'FileSystem' to resource group 'General'
08:04:00: Added resource location '../../media/materials/programs' of type 'FileSystem' to resource group 'General'
08:04:00: Added resource location '../../media/materials/scripts' of type 'FileSystem' to resource group 'General'
08:04:00: Added resource location '../../media/materials/textures' of type 'FileSystem' to resource group 'General'
08:04:00: Added resource location '../../media/models' of type 'FileSystem' to resource group 'General'
08:04:00: Added resource location '../../media/overlays' of type 'FileSystem' to resource group 'General'
08:04:00: Added resource location '../../media/particle' of type 'FileSystem' to resource group 'General'
08:04:00: Added resource location '../../media/gui' of type 'FileSystem' to resource group 'General'
08:04:00: Added resource location '../../media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
08:04:00: Added resource location '../../media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
08:04:00: Added resource location '../../media/packs/dragon.zip' of type 'Zip' to resource group 'General'
08:04:00: Added resource location '../../media/packs/fresneldemo.zip' of type 'Zip' to resource group 'General'
08:04:00: Added resource location '../../media/packs/ogretestmap.zip' of type 'Zip' to resource group 'General'
08:04:00: Added resource location '../../media/packs/skybox.zip' of type 'Zip' to resource group 'General'
08:04:00: D3D9 : RenderSystem Option: Anti aliasing = None
08:04:00: D3D9 : RenderSystem Option: Floating-point mode = Fastest
08:04:00: D3D9 : RenderSystem Option: Full Screen = Yes
08:04:00: D3D9 : RenderSystem Option: Rendering Device = RADEON 9100 IGP
08:04:00: D3D9 : RenderSystem Option: VSync = No
08:04:00: D3D9 : RenderSystem Option: Video Mode = 800 x 600 @ 32-bit colour
08:04:02: D3D9 : Subsystem Initialising
08:04:02: D3D9RenderSystem::createRenderWindow "OGRE Render Window", 800x600 fullscreen miscParams: FSAA=0 FSAAQuality=0 colourDepth=32 vsync=false
08:04:02: D3D9 : Created D3D9 Rendering Window 'OGRE Render Window' : 800x600, 32bpp
08:04:02: Registering ResourceManager for type Texture
08:04:02: Registering ResourceManager for type GpuProgram
08:04:02: RenderSystem capabilities
08:04:02: -------------------------
08:04:02: * Hardware generation of mipmaps: yes
08:04:02: * Texture blending: yes
08:04:02: * Anisotropic texture filtering: yes
08:04:02: * Dot product texture operation: yes
08:04:02: * Cube mapping: yes
08:04:02: * Hardware stencil buffer: yes
08:04:02: - Stencil depth: 8
08:04:02: - Two sided stencil support: no
08:04:02: - Wrap stencil values: yes
08:04:02: * Hardware vertex / index buffers: yes
08:04:02: * Vertex programs: yes
08:04:02: - Max vertex program version: vs_1_1
08:04:02: * Fragment programs: yes
08:04:02: - Max fragment program version: ps_1_4
08:04:02: * Texture Compression: yes
08:04:02: - DXT: yes
08:04:02: - VTC: no
08:04:02: * Scissor Rectangle: yes
08:04:02: * Hardware Occlusion Query: yes
08:04:02: * User clip planes: yes
08:04:02: * VET_UBYTE4 vertex element type: yes
08:04:02: * Infinite far plane projection: yes
08:04:02: * Hardware render-to-texture: yes
08:04:02: * Floating point textures: no
08:04:02: * Non-power-of-two textures: yes
08:04:02: * Volume textures: yes
08:04:02: ***************************************
08:04:02: *** D3D9 : Subsystem Initialised OK ***
08:04:02: ***************************************
08:04:02: ResourceBackgroundQueue - threading disabled
08:04:02: Particle Renderer Type 'billboard' registered
08:04:02: Creating viewport on target 'OGRE Render Window', rendering from camera 'PlayerCam', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
08:04:02: Viewport for camera 'PlayerCam', actual dimensions L: 0 T: 0 W: 800 H: 600
08:04:02: Parsing scripts for resource group Bootstrap
08:04:02: Parsing script OgreCore.material
08:04:02: Parsing script OgreProfiler.material
08:04:02: Parsing script Ogre.fontdef
08:04:02: Parsing script OgreDebugPanel.overlay
08:04:02: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8B8G8R8,256x128x1) with 0 generated mipmaps from Image. Internal format is PF_A8B8G8R8,256x128x1.
08:04:02: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8B8G8R8,256x256x1) with 0 generated mipmaps from Image. Internal format is PF_A8B8G8R8,256x256x1.
08:04:02: Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8B8G8R8,32x32x1) with 0 generated mipmaps from Image. Internal format is PF_A8B8G8R8,32x32x1.
08:04:02: Font TrebuchetMSBoldusing texture size 512x512
08:04:02: Info: Freetype returned null for character 160 in font TrebuchetMSBold
08:04:02: Texture: TrebuchetMSBoldTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
08:04:03: Texture: ogretext.png: Loading 1 faces(PF_A8B8G8R8,256x128x1) with 0 generated mipmaps from Image. Internal format is PF_A8B8G8R8,256x128x1.
08:04:03: Parsing script OgreLoadingPanel.overlay
08:04:03: Finished parsing scripts for resource group Bootstrap
08:04:03: Parsing scripts for resource group General
08:04:03: Parsing script Examples.program
08:04:03: Parsing script Example-DynTex.material
08:04:03: Parsing script Example-Water.material
08:04:03: Parsing script Example.material
08:04:03: Parsing script Examples-Advanced.material
08:04:03: Parsing script OffsetMapping.material
08:04:03: Parsing script Ogre.material
08:04:03: Parsing script RZR-002.material
08:04:03: Parsing script smoke.material
08:04:03: Parsing script fresnelenviron.material
08:04:04: Parsing script sample.fontdef
08:04:04: Bad attribute line: glyph 0.152344 0.125 0.160156 0.1875 in font Ogre
08:04:04: Parsing script Example-Water.particle
08:04:04: Parsing script Example.particle
08:04:04: Parsing script smoke.particle
08:04:04: Parsing script DP3.overlay
08:04:04: Parsing script Example-CubeMapping.overlay
08:04:04: Parsing script Example-DynTex.overlay
08:04:04: Parsing script Example-Water.overlay
08:04:04: Parsing script Shadows.overlay
08:04:04: Finished parsing scripts for resource group General
08:04:04: Mesh: Loading ninja.mesh.
08:04:04: Skeleton: Loading ninja.skeleton
08:04:05: Texture: nskingr.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with 5 generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
08:04:05: Texture: rockwall.tga: Loading 1 faces(PF_R8G8B8,256x256x1) with 5 generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
08:04:05: Win32Input8: DirectInput Activation Starts
08:04:05: Win32Input8: Establishing keyboard input.
08:04:05: Win32Input8: Keyboard input established.
08:04:05: Win32Input8: Initializing mouse input in immediate mode.
08:04:05: Win32Input8: Mouse input in immediate mode initialized.
08:04:05: Win32Input8: DirectInput OK.
08:04:05: *-*-* OGRE Shutdown
08:04:05: Unregistering ResourceManager for type Font
08:04:05: Unregistering ResourceManager for type Skeleton
08:04:05: Unregistering ResourceManager for type Mesh
08:04:06: Unregistering ResourceManager for type HighLevelGpuProgram
08:04:06: Unloading library .\Plugin_CgProgramManager
08:04:06: Unloading library .\Plugin_OctreeSceneManager
08:04:06: Unregistering ResourceManager for type BspLevel
08:04:06: Unloading library .\Plugin_BSPSceneManager
08:04:06: Unloading library .\Plugin_ParticleFX
08:04:06: *** Stopping Win32GL Subsystem ***
08:04:06: Unloading library .\RenderSystem_GL
08:04:06: Render Target 'OGRE Render Window' Average FPS: 0 Best FPS: 0 Worst FPS: 999
08:04:06: D3D9 : Shutting down cleanly.
08:04:06: Unregistering ResourceManager for type Texture
08:04:06: Unregistering ResourceManager for type GpuProgram
08:04:06: D3D9 : Direct3D9 Rendering SubSystem destroyed.
08:04:06: Unloading library .\RenderSystem_Direct3D9
08:04:06: *-*-* Direct3D Subsystem shutting down cleanly.
08:04:06: Direct3D7 Rendering Subsystem destroyed.
08:04:06: Unloading library .\RenderSystem_Direct3D7
08:04:06: Unregistering ResourceManager for type Material
08:04:07: Unloading library OgrePlatform_d.dll

User avatar
DWORD
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 1365
Joined: Tue Sep 07, 2004 12:43 pm
Location: Aalborg, Denmark
Contact:

Post by DWORD »

Are you returning false in a frame listener? That will make Ogre quit.

User avatar
morp
Gnoblar
Posts: 20
Joined: Tue May 31, 2005 9:46 pm
Location: Winnipeg, Manitoba, CANADA

Post by morp »

I think I narrowed it down to this and I will have to look deeper

virtual bool setup(void)
{
mRoot = new Root();

setupResources();
bool carryOn = configure();
if (!carryOn) return false;

I think configure is returning false

User avatar
morp
Gnoblar
Posts: 20
Joined: Tue May 31, 2005 9:46 pm
Location: Winnipeg, Manitoba, CANADA

Post by morp »

no this is not returning false.. dang

User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19265
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66
Contact:

Post by sinbad »

Configure will only return false if you click 'Cancel' in the config dialog. Like DWORD says, it's probably your frame listener - check that you're returning 'true' from both frameStarted and framEnded, if you specified them.

User avatar
morp
Gnoblar
Posts: 20
Joined: Tue May 31, 2005 9:46 pm
Location: Winnipeg, Manitoba, CANADA

Post by morp »

the frame listener does return a value:

virtual void createFrameListener(void)
{
--> mFrameListener= new ExampleFrameListener(mWindow, mCamera);
mFrameListener->showDebugOverlay(true);
mRoot->addFrameListener(mFrameListener);
}

User avatar
morp
Gnoblar
Posts: 20
Joined: Tue May 31, 2005 9:46 pm
Location: Winnipeg, Manitoba, CANADA

Post by morp »

This does return false

ExampleFrameListener::frameStarted(evt);

User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Post by jacmoe »

Where?
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.

User avatar
morp
Gnoblar
Posts: 20
Joined: Tue May 31, 2005 9:46 pm
Location: Winnipeg, Manitoba, CANADA

Post by morp »

Here:
class MyListener : public ExampleFrameListener
{
public:
MyListener(RenderWindow* win, Camera* cam)
: ExampleFrameListener(win, cam)
{
}

bool frameStarted(const FrameEvent& evt)
{
return ExampleFrameListener::frameStarted(evt);
}

bool frameEnded(const FrameEvent& evt)
{
return ExampleFrameListener::frameEnded(evt);
}

};


Called by:
// Create new frame listener
void createFrameListener(void)
{
mFrameListener = new MyListener(mWindow, mCamera);
mRoot->addFrameListener(mFrameListener);
}

User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Post by jacmoe »

Looks alright.
Are you using any CEGUI stuff?
Ogre.log and CEGUI.log, please.
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.

User avatar
morp
Gnoblar
Posts: 20
Joined: Tue May 31, 2005 9:46 pm
Location: Winnipeg, Manitoba, CANADA

Post by morp »

Not using CEGUI stuff. No log for this
Ogre.log is in a previous post

to test I did:

bool frameStarted(const FrameEvent& evt)
{
bool b;
b = ExampleFrameListener::frameStarted(evt);
if(b)
LogManager::getSingleton().logMessage(LML_NORMAL, "DJJ frameStarted:TRUE");
else
LogManager::getSingleton().logMessage(LML_NORMAL, "DJJ frameStarted:FALSE");
..


and the same log as above except for my error message shows
...
12:48:51: Win32Input8: Mouse input in immediate mode initialized.
12:48:51: Win32Input8: DirectInput OK.
12:48:51: DJJ frameStarted:FALSE
12:48:51: *-*-* OGRE Shutdown
12:48:51: Unregistering ResourceManager for type Font
12:48:51: Unregistering ResourceManager for type Skeleton
...

User avatar
discipline
OGRE Community Helper
OGRE Community Helper
Posts: 766
Joined: Mon May 16, 2005 12:09 am

Post by discipline »

Can you post all of your code? Since the samples work and you are extending the ExampleFramework it must be something in your code and what we've seen isn't enough to determine it.

User avatar
morp
Gnoblar
Posts: 20
Joined: Tue May 31, 2005 9:46 pm
Location: Winnipeg, Manitoba, CANADA

Post by morp »

#include "ExampleApplication.h"

#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
#define WIN32_LEAN_AND_MEAN
#include "windows.h"
#endif


class MyListener : public ExampleFrameListener
{
public:
MyListener(RenderWindow* win, Camera* cam)
: ExampleFrameListener(win, cam)
{
}

bool frameStarted(const FrameEvent& evt)
{
bool b;
b = ExampleFrameListener::frameStarted(evt);
if(b)
LogManager::getSingleton().logMessage(LML_NORMAL, "DJJ frameStarted:TRUE");
else
LogManager::getSingleton().logMessage(LML_NORMAL, "DJJ frameStarted:FALSE");
return b;
}

bool frameEnded(const FrameEvent& evt)
{
bool b;
b = ExampleFrameListener::frameEnded(evt);
if(b)
LogManager::getSingleton().logMessage(LML_NORMAL, "DJJ frameEnded:TRUE");
else
LogManager::getSingleton().logMessage(LML_NORMAL, "DJJ frameEnded:FALSE");
return b;
}

};

class MyApplication : public ExampleApplication
{
public:
MyApplication() {}

protected:

void createScene(void)
{
// put your scene creation in here
mSceneMgr->setAmbientLight( ColourValue( 1, 1, 1 ) );
Entity *ent1 = mSceneMgr->createEntity( "Robot", "robot.mesh" );
SceneNode *node1 = mSceneMgr->getRootSceneNode()->createChildSceneNode( "RobotNode" );
node1->attachObject( ent1 );
}

// Create new frame listener
void createFrameListener(void)
{
mFrameListener = new MyListener(mWindow, mCamera);
mRoot->addFrameListener(mFrameListener);
}
};

#ifdef __cplusplus
extern "C" {
#endif

#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
#else
int main(int argc, char **argv)
#endif
{
// Create application object
MyApplication app;

try {
app.go();
} catch( Exception& e ) {
#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
#else
std::cerr << "An exception has occured: " << e.getFullDescription();
#endif
}

return 0;
}

#ifdef __cplusplus
}
#endif

User avatar
discipline
OGRE Community Helper
OGRE Community Helper
Posts: 766
Joined: Mon May 16, 2005 12:09 am

Post by discipline »

That worked fine for me on linux with gcc. I saw a robot hanging out there. Did you compile the demos yourself or were they precompiled? Which platform are you on and which compiler are you using? What are your compiler arguments?

User avatar
morp
Gnoblar
Posts: 20
Joined: Tue May 31, 2005 9:46 pm
Location: Winnipeg, Manitoba, CANADA

Post by morp »

The demos where run as is. This at least tells me the hardware and directX works.

I am on window XP, Visual Studio 2003.

Settings:
/Od /AI "D:\Documents and Settings\My Documents\Visual Studio Projects\SampleApp\Debug" /D "WIN32" /D "_DEBUG" /D "_STLP_DEBUG" /D "_MBCS" /FD /EHsc /MTd /GS /Fo"Debug/" /Fd"Debug/vc70.pdb" /W3 /nologo /c /Zi /clr /TP

Still looking for blame on myself, something maybe not setup quite right.

User avatar
jmonw
Goblin
Posts: 232
Joined: Sat Apr 23, 2005 3:21 am
Location: Atlanta, GA

Post by jmonw »

Just to test, return true and not b from frameStarted and frameEnded in MyFrameListener.

If that doesn't work, something's wrong in ExampleFrameListener. Most likely not the problem, but just to have all the bases covered.

From my experiences, the problem is probably stupid and small. I hate those.

User avatar
morp
Gnoblar
Posts: 20
Joined: Tue May 31, 2005 9:46 pm
Location: Winnipeg, Manitoba, CANADA

Post by morp »

I returned a hardcoded true from both frameStarted and frameEnded, still has no effect. Select DX9 from dialog, few moments of black screen, then quits.

User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Post by jacmoe »

Scrap your project - make a new one from scratch. :wink:
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.

User avatar
morp
Gnoblar
Posts: 20
Joined: Tue May 31, 2005 9:46 pm
Location: Winnipeg, Manitoba, CANADA

Post by morp »

I created a new VC++ .net empty project.
Added the above code as SampleApp.cpp.
Ensured the 'OGRE_HOME' variable was set correctly. (c:\OgreSDK)

I am only setting up Debug mode for now.
Under debug settings, changed Working Directory to C:\OgreSDK\bin\debug
Did not add _STLP_DEBUG since I have .Net 2003
Under Code Generation runtime library = Multithreaded Debug DLL /MTd
Under Linker Additional Dependencies added OgreMain_d.lib

Since I am using SDK:
C/C++ : Additional Include Directories = C:\OgreSDK\include
Linker : Additional Library Directories = C:\OgreSDK\lib

Use Configuration: Debug Win32

Compile and link without errors.
Run it.
Select the rendering system DX9.
The screen goes to full screen black and a mouse cursor is visible.
Without touching any keys or the mouse, the program exits.

User avatar
discipline
OGRE Community Helper
OGRE Community Helper
Posts: 766
Joined: Mon May 16, 2005 12:09 am

Post by discipline »

Ok next things to try:
- Various mode settings - DX9 and opengl, various screen resolutions and color depths, full screen mode and not. I understand the precompiled demos work.
- You have 'Under Code Generation runtime library = Multithreaded Debug DLL /MTd '. Try it with a single threaded debug dll instead.
- You are linking in the debug version of ogre. So use it. Load up the program in a debuger and step through the program one step at a time to see where it is failing. Then back step a little bit and figure out what is causing those conditions (ie a pointer to a scene manager causes the failure, but the previous step returns a NULL assignment to the pointer...)
- You have the latest version of the DirectX SDK?

User avatar
morp
Gnoblar
Posts: 20
Joined: Tue May 31, 2005 9:46 pm
Location: Winnipeg, Manitoba, CANADA

Post by morp »

Most of the video modes work in DX7, I tried up to 1280x768 @ 32 bit, full screen only.
I see the robot for a second and the program exits.

Windowed did not work for DX7, DX9 or OpenGL for resolution of 800x600x16

I have not found any video mode that works in the DX9 or OpenGL yet.
DXDIAG reveals DirectX 9.0C (4.09.0000.0904)

I tried the Demo_CameraTrack.exe in DX7, DX9, and OpenGL at 1280x768 @32 bit, full screen and it worked all the time.

I also tried the 3 modes in windowed mode and all worked at 1280x768 @ 32 bit.

I will look at the other suggestions later.

User avatar
discipline
OGRE Community Helper
OGRE Community Helper
Posts: 766
Joined: Mon May 16, 2005 12:09 am

Post by discipline »

morp wrote:I tried the Demo_CameraTrack.exe in DX7, DX9, and OpenGL at 1280x768 @32 bit, full screen and it worked all the time.
Did you compile this demo? If so, why not start with this as your code base.

User avatar
morp
Gnoblar
Posts: 20
Joined: Tue May 31, 2005 9:46 pm
Location: Winnipeg, Manitoba, CANADA

Post by morp »

No I did not compile the demo.
Is anyone else using the SDK with Visual C++ .NET 2003?
I see it worked before with linux and gcc.

man, I am like a kid in a candy store and I cannot see the candy.
Dang

Post Reply