Problem with collision demo and I'm not sure why or a fix

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
darkraven
Posts: 29
Joined: Sat Mar 06, 2004 5:54 am
Location: Florida
Contact:

Problem with collision demo and I'm not sure why or a fix

Post by darkraven »

Hi, I'm working with dev cpp and finally got the examples to work with directx and stuff on dev cpp but when I compile the collision demo as an example - it seems to do it on all of them but this easier to do screen shots of. DirectX8 compile and OPENGL compile seems to work fine but when I set the driver type to Directx9 I get black areas. (see the screen shots) Any one know why and what I can do to fix this if there is a fix for it. Its not really all that big of a deal since Directx8 seems to work but I would like to know if there is something I need to do to get it to work since directx9 is the current version. I'm just happy that I finally go directx to work with a compile from dev c++.

OPENGL Screenshot
Image


DIRECTX8 Screenshot
Image


DIRECTX9 Screenshot
Image
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Wow, what's that!? Seems that in DX9, you've got no mipmap levels. Could you please post what is printed out into the console? Are there any error messages, which say, that no mip maps could be created? What hardware do you use? (Also printed out into the log)
Rat
Posts: 51
Joined: Wed Mar 10, 2004 7:05 am

Post by Rat »

also you should post your system, i.e. what kind of video card, and if its a agp, or pci type of vid card, the ram it has on the vid card, and other things like cpu, RAM etc. I have seen various cards puke with directX version 9.x
darkraven
Posts: 29
Joined: Sat Mar 06, 2004 5:54 am
Location: Florida
Contact:

Post by darkraven »

niko wrote:Wow, what's that!? Seems that in DX9, you've got no mipmap levels. Could you please post what is printed out into the console? Are there any error messages, which say, that no mip maps could be created? What hardware do you use? (Also printed out into the log)
DEV C++ COMPILED
--------------------------------------------------------------------------------
Irrlicht Engine version 0.6
Microsoft Windows XP Professional Service Pack 1 (Build 2600)
DirectX9 Renderer
ALL-IN-WONDER RADEON ati2dvag.dll 6.14.10.6422
Could not create direct3d mip map levels.
Loaded texture: #DefaultFont
Could not find texture in Q3 .bsp: textures/common/caulk
Could not create direct3d mip map levels.
Loaded texture: e7walldesign01b.jpg
Could not create direct3d mip map levels.
Loaded texture: e7steptop2.jpg
Could not find texture in Q3 .bsp: noshader
Could not create direct3d mip map levels.
Loaded texture: e7dimfloor.jpg
Could not create direct3d mip map levels.
Loaded texture: e7brickfloor01.jpg
Could not create direct3d mip map levels.
Loaded texture: e7bmtrim.jpg
Could not create direct3d mip map levels.
Loaded texture: e7sbrickfloor.jpg
Could not create direct3d mip map levels.
Loaded texture: e7brnmetal.jpg
Could not find texture in Q3 .bsp: textures/common/clip
Could not create direct3d mip map levels.
Loaded texture: e7beam02_red.jpg
Could not create direct3d mip map levels.
Loaded texture: e7swindow.jpg
Could not create direct3d mip map levels.
Loaded texture: e7bigwall.jpg
Could not create direct3d mip map levels.
Loaded texture: e7panelwood.jpg
Could not create direct3d mip map levels.
Loaded texture: e7beam01.jpg
Could not create direct3d mip map levels.
Loaded texture: xstepborder5.jpg
Could not find texture in Q3 .bsp: textures/liquids/lavahell
Could not create direct3d mip map levels.
Loaded texture: e7steptop.jpg
Could not find texture in Q3 .bsp: textures/gothic_trim/metalblackwave01
Could not find texture in Q3 .bsp: textures/stone/pjrock1
Could not find texture in Q3 .bsp: textures/skies/tim_hell
Could not find texture in Q3 .bsp: textures/common/hint
Could not find texture in Q3 .bsp: models/mapobjects/timlamp/timlamp
Could not find texture in Q3 .bsp: textures/sfx/flame1side
Could not find texture in Q3 .bsp: textures/sfx/flame2
Could not find texture in Q3 .bsp: models/mapobjects/gratelamp/gratetorch2
Could not find texture in Q3 .bsp: models/mapobjects/gratelamp/gratetorch2b
Loaded mesh: 20kdm2.bsp
------------------------------------------------------------------------------

VC++ 6 Pro
------------------------------------------------------------------------------
Irrlicht Engine version 0.6
Microsoft Windows XP Professional Service Pack 1 (Build 2600)
DirectX9 Renderer
ALL-IN-WONDER RADEON ati2dvag.dll 6.14.10.6422
Loaded texture: #DefaultFont
Could not find texture in Q3 .bsp: textures/common/caulk
Loaded texture: e7walldesign01b.jpg
Loaded texture: e7steptop2.jpg
Could not find texture in Q3 .bsp: noshader
Loaded texture: e7dimfloor.jpg
Loaded texture: e7brickfloor01.jpg
Loaded texture: e7bmtrim.jpg
Loaded texture: e7sbrickfloor.jpg
Loaded texture: e7brnmetal.jpg
Could not find texture in Q3 .bsp: textures/common/clip
Loaded texture: e7beam02_red.jpg
Loaded texture: e7swindow.jpg
Loaded texture: e7bigwall.jpg
Loaded texture: e7panelwood.jpg
Loaded texture: e7beam01.jpg
Loaded texture: xstepborder5.jpg
Could not find texture in Q3 .bsp: textures/liquids/lavahell
Loaded texture: e7steptop.jpg
Could not find texture in Q3 .bsp: textures/gothic_trim/metalblackwave01
Could not find texture in Q3 .bsp: textures/stone/pjrock1
Could not find texture in Q3 .bsp: textures/skies/tim_hell
Could not find texture in Q3 .bsp: textures/common/hint
Could not find texture in Q3 .bsp: models/mapobjects/timlamp/timlamp
Could not find texture in Q3 .bsp: textures/sfx/flame1side
Could not find texture in Q3 .bsp: textures/sfx/flame2
Could not find texture in Q3 .bsp: models/mapobjects/gratelamp/gratetorch2
Could not find texture in Q3 .bsp: models/mapobjects/gratelamp/gratetorch2b
Loaded mesh: 20kdm2.bsp
Needed 50ms to create OctTree SceneNode.(318 nodes, 7753 polys)
Needed 243ms to create OctTreeTriangleSelector.(145 nodes, 7753 polys)
Loaded texture: ../../media/particle.bmp
Loaded texture: ../../media/faerie2.bmp
Loaded mesh: ../../media/faerie.md2
Press any key to continue
-----------------------------------------------------------------------------------
Same program compiled with vc ++ 6. Its the same source code that I used to compile the example in dev c++.

Image

I did recompile the irrlicht .6 in dev cpp but didn't touch any of the source code. The only thing I did was follow the instructions from:

http://irrlicht.sourceforge.net/phpBB2/ ... php?t=1700

But from the information produced from the dev c++ compile it having a problem creating the mips so is there something I can do to get this fixed.
darkraven
Posts: 29
Joined: Sat Mar 06, 2004 5:54 am
Location: Florida
Contact:

Post by darkraven »

any one know why the direct3d mip map levels aren't being created when I set the device type to Directx9 when using dev c++ to compile. I know its not hardware cause the same program works when I compile with vc6.
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

It could be that the d3dx9 library is not or wrongly linked to your project.
Post Reply