Minimal application project

kallaspriit

21-11-2009 14:27:32

I have created a minimal codebase project aimed at people getting started with OgreNewt that implements the most basic behaviour like FPS camera, Debug graphics, onscreen text and picking in as little code as possible in just a few files. No Ogre example framework is used so there is no need to try to figure out from which file some behaviour is coming from.

For more info, please check out http://www.ogre3d.org/wiki/index.php/OgreNewt_Minimal_Simple_Application_Project.

Project homepage: http://code.google.com/p/minimal-ogrenewt/

Could someone please try setting this up on their computer using the provided guide in INSTALL.txt to find any errors or something I missed. Any comments and improvement suggestions are welcome and will surely be added to the project :P

[attachment=0]1.0.png[/attachment]

kallitokaco

22-11-2009 12:15:21

Nice work.

The precompiled version works without problems.

Compiling/linking the release was quite easy
I've to change only a few things :wink: :

[ScreenWriter:93]
--int size = _vscprintf(format, args);
++int size = printf(format, args);

Linker includes
--$(OGRE_HOME)\lib
--$(OGRENEWT_HOME)\lib
++$(OGRE_HOME)\bin\Release
++$(OGRENEWT_HOME)\bin

LinkingLibarys
++boost_thread-mt

I'm was using Code::blocks, Ogre 1.6.1 with threading 1, Newest OgreNewt & Newton and MinGW toolbox.

But the strange thing is that I've got a Segmenton Fault in Debug if I press ESC( everything else works fine):
#0 01B219F7 std::_List_iterator<Ogre::OverlayContainer*>::operator++(this=0x22fa7c) (C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_list.h:140)
#1 01B46281 std::list<Ogre::OverlayContainer*, std::allocator<Ogre::OverlayContainer*> >::remove(this=0x9bcfa54, __value=@0x22faa4) (C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/list.tcc:180)
#2 0175D42B Ogre::Overlay::remove2D(this=0x9bcfa48, cont=0x9b8f558) (C:/OgreSDK/OgreMain/src/OgreOverlay.cpp:141)
#3 0175E0E7 Ogre::OverlayContainer::~OverlayContainer(this=0x9b8f558) (C:/OgreSDK/OgreMain/src/OgreOverlayContainer.cpp:49)
#4 0176C124 Ogre::PanelOverlayElement::~PanelOverlayElement(this=0x9b8f558) (C:/OgreSDK/OgreMain/src/OgrePanelOverlayElement.cpp:80)
#5 01A5856A Ogre::OverlayElementFactory::destroyOverlayElement(this=0x9b710a8, pElement=0x9b8f558) (../include/OgreOverlayElementFactory.h:60)
#6 0176B286 Ogre::OverlayManager::destroyOverlayElementImpl(this=0x9b70f78, instanceName=@0x9b8f58c, elementMap=@0x9b70fc4) (C:/OgreSDK/OgreMain/src/OgreOverlayManager.cpp:629)
#7 0176ACC6 Ogre::OverlayManager::destroyOverlayElement(this=0x9b70f78, pInstance=0x9b8f558, isTemplate=false) (C:/OgreSDK/OgreMain/src/OgreOverlayManager.cpp:607)
#8 00405231 ScreenWriter::~ScreenWriter(this=0x9b8f3e0) (C:/minogrenewt/source/ScreenWriter.cpp:26)
#9 00407336 Application::~Application(this=0x22fe50) (C:/minogrenewt/source/Application.cpp:64)
#10 004068A8 WinMain(hInst=0x400000, strCmdLine=0x2e2af3 "") (C:/minogrenewt/source/main.cpp:20)
#11 0041BBFA main() (C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iostream:77)

LOG:
12:57:02: Creating resource group General
12:57:02: Creating resource group Internal
12:57:02: Creating resource group Autodetect
12:57:02: SceneManagerFactory for type 'DefaultSceneManager' registered.
12:57:02: Registering ResourceManager for type Material
12:57:02: Registering ResourceManager for type Mesh
12:57:02: Registering ResourceManager for type Skeleton
12:57:02: MovableObjectFactory for type 'ParticleSystem' registered.
12:57:02: OverlayElementFactory for type Panel registered.
12:57:02: OverlayElementFactory for type BorderPanel registered.
12:57:02: OverlayElementFactory for type TextArea registered.
12:57:02: Registering ResourceManager for type Font
12:57:02: ArchiveFactory for archive type FileSystem registered.
12:57:02: ArchiveFactory for archive type Zip registered.
12:57:02: FreeImage version: 3.9.3
12:57:02: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
12:57:02: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi
12:57:02: DDS codec registering
12:57:02: Registering ResourceManager for type HighLevelGpuProgram
12:57:02: Registering ResourceManager for type Compositor
12:57:02: MovableObjectFactory for type 'Entity' registered.
12:57:02: MovableObjectFactory for type 'Light' registered.
12:57:02: MovableObjectFactory for type 'BillboardSet' registered.
12:57:02: MovableObjectFactory for type 'ManualObject' registered.
12:57:02: MovableObjectFactory for type 'BillboardChain' registered.
12:57:02: MovableObjectFactory for type 'RibbonTrail' registered.
12:57:02: *-*-* OGRE Initialising
12:57:02: *-*-* Version 1.6.0 (Shoggoth)
12:57:02: Loading library RenderSystem_Direct3D9_d
12:57:02: Installing plugin: D3D9 RenderSystem
12:57:02: D3D9 : Direct3D9 Rendering Subsystem created.
12:57:02: D3D9: Driver Detection Starts
12:57:02: D3D9: Driver Detection Ends
12:57:02: Plugin successfully installed
12:57:02: Loading library RenderSystem_GL_d
12:57:02: Installing plugin: GL RenderSystem
12:57:02: OpenGL Rendering Subsystem created.
12:57:03: Plugin successfully installed
12:57:03: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
12:57:03: D3D9 : RenderSystem Option: Anti aliasing = None
12:57:03: D3D9 : RenderSystem Option: Floating-point mode = Fastest
12:57:03: D3D9 : RenderSystem Option: Full Screen = No
12:57:03: D3D9 : RenderSystem Option: Rendering Device = NVIDIA GeForce 8600M GS
12:57:03: D3D9 : RenderSystem Option: VSync = No
12:57:03: D3D9 : RenderSystem Option: Video Mode = 800 x 600 @ 32-bit colour
12:57:03: D3D9 : RenderSystem Option: sRGB Gamma Conversion = No
12:57:04: CPU Identifier & Features
12:57:04: -------------------------
12:57:04: * CPU ID: GenuineIntel: Intel(R) Core(TM)2 Duo CPU T8100 @ 2.10GHz
12:57:04: * SSE: yes
12:57:04: * SSE2: yes
12:57:04: * SSE3: yes
12:57:04: * MMX: yes
12:57:04: * MMXEXT: yes
12:57:04: * 3DNOW: no
12:57:04: * 3DNOWEXT: no
12:57:04: * CMOV: yes
12:57:04: * TSC: yes
12:57:04: * FPU: yes
12:57:04: * PRO: yes
12:57:04: * HT: no
12:57:04: -------------------------
12:57:04: D3D9 : Subsystem Initialising
12:57:04: D3D9RenderSystem::_createRenderWindow "OgreNewt Minimal Application", 800x600 windowed miscParams: FSAA=0 FSAAQuality=0 colourDepth=32 gamma=false useNVPerfHUD=false vsync=false
12:57:04: D3D9 : Created D3D9 Rendering Window 'OgreNewt Minimal Application' : 800x600, 32bpp
12:57:04: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
12:57:04: Registering ResourceManager for type Texture
12:57:04: Registering ResourceManager for type GpuProgram
12:57:04: D3D9: Vertex texture format supported - PF_FLOAT16_RGB
12:57:04: D3D9: Vertex texture format supported - PF_FLOAT16_RGBA
12:57:04: D3D9: Vertex texture format supported - PF_FLOAT32_RGB
12:57:04: D3D9: Vertex texture format supported - PF_FLOAT32_RGBA
12:57:04: D3D9: Vertex texture format supported - PF_FLOAT16_R
12:57:04: D3D9: Vertex texture format supported - PF_FLOAT32_R
12:57:04: D3D9: Vertex texture format supported - PF_FLOAT16_GR
12:57:04: D3D9: Vertex texture format supported - PF_FLOAT32_GR
12:57:04: RenderSystem capabilities
12:57:04: -------------------------
12:57:04: RenderSystem Name: Direct3D9 Rendering Subsystem
12:57:04: GPU Vendor: nvidia
12:57:04: Device Name: NVIDIA GeForce 8600M GS
12:57:04: Driver Version: 8.16.11.8681
12:57:04: * Fixed function pipeline: yes
12:57:04: * Hardware generation of mipmaps: yes
12:57:04: * Texture blending: yes
12:57:04: * Anisotropic texture filtering: yes
12:57:04: * Dot product texture operation: yes
12:57:04: * Cube mapping: yes
12:57:04: * Hardware stencil buffer: yes
12:57:04: - Stencil depth: 8
12:57:04: - Two sided stencil support: yes
12:57:04: - Wrap stencil values: yes
12:57:04: * Hardware vertex / index buffers: yes
12:57:04: * Vertex programs: yes
12:57:04: * Fragment programs: yes
12:57:04: * Geometry programs: no
12:57:04: * Supported Shader Profiles: hlsl ps_1_1 ps_1_2 ps_1_3 ps_1_4 ps_2_0 ps_2_a ps_2_b ps_2_x ps_3_0 vs_1_1 vs_2_0 vs_2_a vs_2_x vs_3_0
12:57:04: * Texture Compression: yes
12:57:04: - DXT: yes
12:57:04: - VTC: no
12:57:04: * Scissor Rectangle: yes
12:57:04: * Hardware Occlusion Query: yes
12:57:04: * User clip planes: yes
12:57:04: * VET_UBYTE4 vertex element type: yes
12:57:04: * Infinite far plane projection: yes
12:57:04: * Hardware render-to-texture: yes
12:57:04: * Floating point textures: yes
12:57:04: * Non-power-of-two textures: yes
12:57:04: * Volume textures: yes
12:57:04: * Multiple Render Targets: 4
12:57:04: - With different bit depths: yes
12:57:04: * Point Sprites: yes
12:57:04: * Extended point parameters: yes
12:57:04: * Max Point Size: 8192
12:57:04: * Vertex texture fetch: yes
12:57:04: - Max vertex textures: 4
12:57:04: - Vertex textures shared: no
12:57:04: * Render to Vertex Buffer : no
12:57:04: * DirectX per stage constants: yes
12:57:04: ***************************************
12:57:04: *** D3D9 : Subsystem Initialised OK ***
12:57:04: ***************************************
12:57:04: ResourceBackgroundQueue - threading enabled, starting own thread
12:57:04: ResourceBackgroundQueue - thread starting.
12:57:04: Particle Renderer Type 'billboard' registered
12:57:04: Loading library Plugin_CgProgramManager_d
12:57:04: Installing plugin: Cg Program Manager
12:57:04: Plugin successfully installed
12:57:04: Loading library Plugin_OctreeSceneManager_d
12:57:04: Installing plugin: Octree & Terrain Scene Manager
12:57:04: SceneManagerFactory for type 'OctreeSceneManager' registered.
12:57:04: SceneManagerFactory for type 'TerrainSceneManager' registered.
12:57:04: Plugin successfully installed
12:57:04: Added resource location 'media/gui' of type 'FileSystem' to resource group 'General'
12:57:04: Added resource location 'media/materials/scripts' of type 'FileSystem' to resource group 'General'
12:57:04: Added resource location 'media/fonts' of type 'FileSystem' to resource group 'General'
12:57:04: Added resource location 'media/primitives' of type 'FileSystem' to resource group 'General'
12:57:04: Initialising resource group General
12:57:04: Parsing scripts for resource group General
12:57:04: Parsing script debug.material
12:57:04: Parsing script debug.fontdef
12:57:04: Finished parsing scripts for resource group General
12:57:04: Texture: cursor.png: Loading 1 faces(PF_A8R8G8B8,16x16x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,16x16x1.
12:57:04: Font DebugTextusing texture size 256x256
12:57:04: Info: Freetype returned null for character 160 in font DebugText
12:57:04: Texture: DebugTextTexture: Loading 1 faces(PF_BYTE_LA,256x256x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,256x256x1.
12:57:04: Mesh: Loading box.mesh.
12:57:04: Can't assign material Primitive/Box to SubEntity of Floor because this Material does not exist. Have you forgotten to define it in a .material script?
12:57:04: Mesh: Loading ellipsoid.mesh.
12:57:04: Can't assign material Primitive/Ellipsoid to SubEntity of Ellipsoid because this Material does not exist. Have you forgotten to define it in a .material script?


Release gives me the same error if I press ESC. In addition I got the Error with MovableText::setFontName() (But I think this is my mistake or a ogrenewt bug, whereever it may be):
#0 6C558329 OgreNewt::OgreAddons::MovableText::setFontName() (C:\minogrenewt\libOgreNewt.dll:??)
#1 6C557502 OgreNewt::OgreAddons::MovableText::MovableText() (C:\minogrenewt\libOgreNewt.dll:??)
#2 6C5501EE _fu121___ZN4Ogre11ColourValue5WhiteE() (C:\minogrenewt\libOgreNewt.dll:??)
#3 00000000 0x07ccddb8 in ??() (??:??)
#4 00000000 0x0022fa60 in ??() (??:??)
#5 00000000 0x0022fa70 in ??() (??:??)
#6 00000000 0x0022fa30 in ??() (??:??)
#7 00000000 0x3f000000 in ??() (??:??)
#8 00000000 0x00b80710 in Ogre::ColourValue::Black() (??:??)
#9 00000000 0x07cce238 in ??() (??:??)
#10 00000000 0x01000014 in ??() (??:??)
#11 00000000 0x0022f870 in ??() (??:??)
#12 00000000 0x08afcca8 in ??() (??:??)
#13 00000000 0x0022f97c in ??() (??:??)
#14 77D3D74D ntdll!RtlAllocateMemoryZone() (ntdll.dll:??)
#15 00000000 0x0b57659b in ??() (??:??)
#16 00000000 0xfffffffe in ??() (??:??)
#17 77DE517E ntdll!RtlpSetUserPreferredUILanguages() (ntdll.dll:??)
#18 77DA7D96 ntdll!RtlTraceDatabaseValidate() (ntdll.dll:??)
#19 00000000 0x07cc0000 in ??() (??:??)
#20 00000000 0x50000163 in ??() (??:??)
#21 77D7349F ntdll!RtlUnicodeStringToOemString() (ntdll.dll:??)
#22 00000000 0x7ca28cbf in ??() (??:??)
#23 00000000 0x00000014 in ??() (??:??)
#24 00000000 ??() (??:??)
#25 00000000 0x07ccddb8 in ??() (??:??)
#26 00000000 0x0022fa30 in ??() (??:??)
#27 00000000 0x0022fa70 in ??() (??:??)
#28 00000000 0x0022fa60 in ??() (??:??)
#29 00000000 0x08b2d83c in ??() (??:??)

LOG:
13:04:57: Creating resource group General
13:04:57: Creating resource group Internal
13:04:57: Creating resource group Autodetect
13:04:57: SceneManagerFactory for type 'DefaultSceneManager' registered.
13:04:57: Registering ResourceManager for type Material
13:04:57: Registering ResourceManager for type Mesh
13:04:57: Registering ResourceManager for type Skeleton
13:04:57: MovableObjectFactory for type 'ParticleSystem' registered.
13:04:57: OverlayElementFactory for type Panel registered.
13:04:57: OverlayElementFactory for type BorderPanel registered.
13:04:57: OverlayElementFactory for type TextArea registered.
13:04:57: Registering ResourceManager for type Font
13:04:57: ArchiveFactory for archive type FileSystem registered.
13:04:57: ArchiveFactory for archive type Zip registered.
13:04:57: FreeImage version: 3.9.3
13:04:57: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
13:04:57: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi
13:04:57: DDS codec registering
13:04:57: Registering ResourceManager for type HighLevelGpuProgram
13:04:57: Registering ResourceManager for type Compositor
13:04:57: MovableObjectFactory for type 'Entity' registered.
13:04:57: MovableObjectFactory for type 'Light' registered.
13:04:57: MovableObjectFactory for type 'BillboardSet' registered.
13:04:57: MovableObjectFactory for type 'ManualObject' registered.
13:04:57: MovableObjectFactory for type 'BillboardChain' registered.
13:04:57: MovableObjectFactory for type 'RibbonTrail' registered.
13:04:57: *-*-* OGRE Initialising
13:04:57: *-*-* Version 1.6.0 (Shoggoth)
13:04:57: Loading library RenderSystem_Direct3D9
13:04:57: Installing plugin: D3D9 RenderSystem
13:04:57: D3D9 : Direct3D9 Rendering Subsystem created.
13:04:57: D3D9: Driver Detection Starts
13:04:57: D3D9: Driver Detection Ends
13:04:57: Plugin successfully installed
13:04:57: Loading library RenderSystem_GL
13:04:57: Installing plugin: GL RenderSystem
13:04:57: OpenGL Rendering Subsystem created.
13:04:58: Plugin successfully installed
13:04:58: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
13:04:58: D3D9 : RenderSystem Option: Anti aliasing = None
13:04:58: D3D9 : RenderSystem Option: Floating-point mode = Fastest
13:04:58: D3D9 : RenderSystem Option: Full Screen = No
13:04:58: D3D9 : RenderSystem Option: Rendering Device = NVIDIA GeForce 8600M GS
13:04:58: D3D9 : RenderSystem Option: VSync = No
13:04:58: D3D9 : RenderSystem Option: Video Mode = 800 x 600 @ 32-bit colour
13:04:58: D3D9 : RenderSystem Option: sRGB Gamma Conversion = No
13:05:00: *** Stopping Win32GL Subsystem ***
13:05:00: CPU Identifier & Features
13:05:00: -------------------------
13:05:00: * CPU ID: GenuineIntel: Intel(R) Core(TM)2 Duo CPU T8100 @ 2.10GHz
13:05:00: * SSE: yes
13:05:00: * SSE2: yes
13:05:00: * SSE3: yes
13:05:00: * MMX: yes
13:05:00: * MMXEXT: yes
13:05:00: * 3DNOW: no
13:05:00: * 3DNOWEXT: no
13:05:00: * CMOV: yes
13:05:00: * TSC: yes
13:05:00: * FPU: yes
13:05:00: * PRO: yes
13:05:00: * HT: no
13:05:00: -------------------------
13:05:00: D3D9 : Subsystem Initialising
13:05:00: D3D9RenderSystem::_createRenderWindow "OgreNewt Minimal Application", 800x600 windowed miscParams: FSAA=0 FSAAQuality=0 colourDepth=32 gamma=false useNVPerfHUD=false vsync=false
13:05:00: D3D9 : Created D3D9 Rendering Window 'OgreNewt Minimal Application' : 800x600, 32bpp
13:05:00: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
13:05:00: Registering ResourceManager for type Texture
13:05:00: Registering ResourceManager for type GpuProgram
13:05:00: D3D9: Vertex texture format supported - PF_FLOAT16_RGB
13:05:00: D3D9: Vertex texture format supported - PF_FLOAT16_RGBA
13:05:00: D3D9: Vertex texture format supported - PF_FLOAT32_RGB
13:05:00: D3D9: Vertex texture format supported - PF_FLOAT32_RGBA
13:05:00: D3D9: Vertex texture format supported - PF_FLOAT16_R
13:05:00: D3D9: Vertex texture format supported - PF_FLOAT32_R
13:05:00: D3D9: Vertex texture format supported - PF_FLOAT16_GR
13:05:00: D3D9: Vertex texture format supported - PF_FLOAT32_GR
13:05:00: RenderSystem capabilities
13:05:00: -------------------------
13:05:00: RenderSystem Name: Direct3D9 Rendering Subsystem
13:05:00: GPU Vendor: nvidia
13:05:00: Device Name: NVIDIA GeForce 8600M GS
13:05:00: Driver Version: 8.16.11.8681
13:05:00: * Fixed function pipeline: yes
13:05:00: * Hardware generation of mipmaps: yes
13:05:00: * Texture blending: yes
13:05:00: * Anisotropic texture filtering: yes
13:05:00: * Dot product texture operation: yes
13:05:00: * Cube mapping: yes
13:05:00: * Hardware stencil buffer: yes
13:05:00: - Stencil depth: 8
13:05:00: - Two sided stencil support: yes
13:05:00: - Wrap stencil values: yes
13:05:00: * Hardware vertex / index buffers: yes
13:05:00: * Vertex programs: yes
13:05:00: * Fragment programs: yes
13:05:00: * Geometry programs: no
13:05:00: * Supported Shader Profiles: hlsl ps_1_1 ps_1_2 ps_1_3 ps_1_4 ps_2_0 ps_2_a ps_2_b ps_2_x ps_3_0 vs_1_1 vs_2_0 vs_2_a vs_2_x vs_3_0
13:05:00: * Texture Compression: yes
13:05:00: - DXT: yes
13:05:00: - VTC: no
13:05:00: * Scissor Rectangle: yes
13:05:00: * Hardware Occlusion Query: yes
13:05:00: * User clip planes: yes
13:05:00: * VET_UBYTE4 vertex element type: yes
13:05:00: * Infinite far plane projection: yes
13:05:00: * Hardware render-to-texture: yes
13:05:00: * Floating point textures: yes
13:05:00: * Non-power-of-two textures: yes
13:05:00: * Volume textures: yes
13:05:00: * Multiple Render Targets: 4
13:05:00: - With different bit depths: yes
13:05:00: * Point Sprites: yes
13:05:00: * Extended point parameters: yes
13:05:00: * Max Point Size: 8192
13:05:00: * Vertex texture fetch: yes
13:05:00: - Max vertex textures: 4
13:05:00: - Vertex textures shared: no
13:05:00: * Render to Vertex Buffer : no
13:05:00: * DirectX per stage constants: yes
13:05:00: ***************************************
13:05:00: *** D3D9 : Subsystem Initialised OK ***
13:05:00: ***************************************
13:05:00: ResourceBackgroundQueue - threading enabled, starting own thread
13:05:00: ResourceBackgroundQueue - thread starting.
13:05:00: Particle Renderer Type 'billboard' registered
13:05:00: Loading library Plugin_CgProgramManager
13:05:00: Installing plugin: Cg Program Manager
13:05:00: Plugin successfully installed
13:05:00: Loading library Plugin_OctreeSceneManager
13:05:00: Installing plugin: Octree & Terrain Scene Manager
13:05:00: SceneManagerFactory for type 'OctreeSceneManager' registered.
13:05:00: SceneManagerFactory for type 'TerrainSceneManager' registered.
13:05:00: Plugin successfully installed
13:05:00: Added resource location 'media/gui' of type 'FileSystem' to resource group 'General'
13:05:00: Added resource location 'media/materials/scripts' of type 'FileSystem' to resource group 'General'
13:05:00: Added resource location 'media/fonts' of type 'FileSystem' to resource group 'General'
13:05:00: Added resource location 'media/primitives' of type 'FileSystem' to resource group 'General'
13:05:00: Initialising resource group General
13:05:00: Parsing scripts for resource group General
13:05:00: Parsing script debug.material
13:05:00: Parsing script debug.fontdef
13:05:00: Finished parsing scripts for resource group General
13:05:00: Texture: cursor.png: Loading 1 faces(PF_A8R8G8B8,16x16x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,16x16x1.
13:05:00: Font DebugTextusing texture size 256x256
13:05:00: Info: Freetype returned null for character 160 in font DebugText
13:05:00: Texture: DebugTextTexture: Loading 1 faces(PF_BYTE_LA,256x256x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,256x256x1.
13:05:00: Mesh: Loading box.mesh.
13:05:00: Can't assign material Primitive/Box to SubEntity of Floor because this Material does not exist. Have you forgotten to define it in a .material script?
13:05:00: Mesh: Loading ellipsoid.mesh.
13:05:00: Can't assign material Primitive/Ellipsoid to SubEntity of Ellipsoid because this Material does not exist. Have you forgotten to define it in a .material script?


Futhermore, I have only 2FPS in Debug and 6 in Release but the precompiled version have ~1300FPS.
(My selfcompiled Ogre demo-projects render with ~1000FPS )
I think my Mingw ogre/ogrenewt has some essential errors, even though I haven't changed a line (except threading 1) and I don't know why... :(

I hope this helps you.

kallaspriit

22-11-2009 19:47:45

Thanks for the feedback :P

1. Changed _vscprintf to simple printf

2. The includes, I have compiled Ogre myself and thats where the libs were created, I guess this differs when you use the precompiled Ogre. Will it work to add both directories?

3. Where is boost_thread-mt and why is it necessary? Is it Code::Blocks specific? I thought it was just templates.

4. Weird error. Try commenting out line 26 of ScreenWriter.cpp or replace the destroy call with one that uses the name:

//Ogre::OverlayManager::getSingleton().destroyOverlayElement(panel);
Ogre::OverlayManager::getSingleton().destroyOverlayElement("DebugTextPanel");

Does it help?

Cant imagine why would you be getting such low FPS, should be some issue on your side. Can you provide the Code::Blocks project file that uses the enviroment variables when you get this to work?

kallitokaco

23-11-2009 08:06:32

2. Code::Blocks ignores not existing include/lib paths. But the libs have to exists :wink: I don't know how it is handled by VC.

3. If I build ogre with threadsupport ogre needs the boost-thread libary. Every application which is build by my ogre, needs to be linked against this dll.

4.
I commited:
-ScreenWriter.cpp line 27
-MouseCursor.cpp line 26
-Application.cpp line 100

And it works^^. Theres definitely something wrong with my ogre. ... :? (-> ignore this)


mfg

kallitokaco

kamaliang

03-02-2010 02:50:50

thanks...it's very cool !