no mipmap in irrlicht0.7 with directx9

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
cmoibenlepro
Posts: 237
Joined: Thu May 27, 2004 3:18 pm
Location: Canada

no mipmap in irrlicht0.7 with directx9

Post by cmoibenlepro »

I found why irrlicht0.7 techdemo was really slower than 0.6

you can see thread about investigating the problem here, (I've also did benchmarks and posted my computer specs):
http://irrlicht.sourceforge.net/phpBB2/ ... php?t=3759

As you can see in the screenshots I made:
http://zeldapod.freeunixhost.com/pivot/entry.php?id=8

For a reason I don't know mipmapping is disabled with directx9
so that's why it is so slow.
directx8 just work fine.

now someone need to find why there is that bug (I'm not an advanced coder so I can't find it)
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

And strangely, this only seems to happen on some hardware, not all..
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

@cmoibenlepro:

1. So mipmapping definitely worked in irrlicht 0.6 + DX9?

2. Same (mipmap) problem with 0.6 examples compiled and run with dll 0.7?

3. Did you try with IrrlichtNX?

btw. mipmaps in DX8 are generated by software, an DX9 by hardware..
cmoibenlepro
Posts: 237
Joined: Thu May 27, 2004 3:18 pm
Location: Canada

Post by cmoibenlepro »

1. Yes with irrlicht0.6 both directx8 and directx9 were looking exactly the same (but directx9 was a little bit faster). As you can see in my screenshots, mipmapping worked with 0.6 and now it don't work.

2. Yes finally I found that with examples from 0.6 and example from 0.7, when you compile and run them with irrliicht 0.7, there is no mipsmap with directx9 (so it is really slower)
but in both cases the directx8 mipmapping seems to work and they both look the same.

3. Not yet. It it suppose to change anything?
mipmaps in DX8 are generated by software, an DX9 by hardware
Ok... it might explain it... But why did mipmapping with directx9 work with irrlicht0.6 and now it don't work???
Last edited by cmoibenlepro on Tue Sep 14, 2004 3:29 pm, edited 1 time in total.
cmoibenlepro
Posts: 237
Joined: Thu May 27, 2004 3:18 pm
Location: Canada

Post by cmoibenlepro »

sorry double post :oops:

BTW, my screenshots page seems to have been deleted by my webhosting service! (that's why it show a password page) I will correct it ASAP.
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

cmoibenlepro wrote:As you can see in my screenshots, mipmapping worked with 0.6 and now it don't work.
nope, youre sceenshots are gone (link asks for login)...
cmoibenlepro wrote:3. Not yet. It it suppose to change anything?
you tell me ;)

cmoibenlepro wrote:But why did mipmapping with directx9 work with irrlicht0.6 and now it don't work???
dunno, but at least it's showing that it should work.. that there is a bug that can possibly be fixed...
cmoibenlepro
Posts: 237
Joined: Thu May 27, 2004 3:18 pm
Location: Canada

Post by cmoibenlepro »

It seems that the free webhosting service have problems now.
I can't get my website to work as it did before...

Anyway, I posted my screenshots on my old website on freewebs.com
It seems to work...

So you can see my screenshots here:
http://www.freewebs.com/irrlicht/irrlicht_bugs.html

BTW, you can note the difference of fps between both with directx9 caused by the fact that there is no mipmap with irrlicht 0.7
(it drops from 102 to 29... ouch!)
cmoibenlepro
Posts: 237
Joined: Thu May 27, 2004 3:18 pm
Location: Canada

Post by cmoibenlepro »

BTW, I will try irrlichtNX tomorrow (if I can...) and give you feedback.
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

@cmoibelenpro: why did you blush above when you double posted? Double posting means writing 2 posts in a row? is it Improper?

If so I think I've been the rudest and killed every single rule of netiquette!!!!
Image
cmoibenlepro (unlogged)

Post by cmoibenlepro (unlogged) »

cmoibelenpro: why did you blush above when you double posted? Double posting means writing 2 posts in a row? is it Improper?
In fact I posted exactly the same post 2 times in a row because Internet Explorer froze so I re-clicked on "submit"

So I edited my 2nd post.

that's all.
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

lol! but you erased the 2nd post.

I thought I was being rude.

sorry for getting off topic.
Image
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

cmoibenlepro wrote:BTW, you can note the difference of fps between both with directx9 caused by the fact that there is no mipmap with irrlicht 0.7
(it drops from 102 to 29... ouch!)
I doubt its the lack of mipmapping that causes the slowdown. I have exactly the same framerates with mipmapping on or off in both dx8 and 9 (techdemo)

Mipmapping is more an issue of display quality than performance (i think).

Try this:

Run techdemo with DX8 and mipmapping turned off with this in in CDemo::run():

Code: Select all

driver->setTextureCreationFlag(video::ETCF_CREATE_MIP_MAPS,false);
I'm curious about the result (framerate)...
cmoibenlepro
Posts: 237
Joined: Thu May 27, 2004 3:18 pm
Location: Canada

Post by cmoibenlepro »

Try this:

Run techdemo with DX8 and mipmapping turned off with this in in CDemo::run():


code:
--------------------------------------------------------------------------------

driver->setTextureCreationFlag(video::ETCF_CREATE_MIP_MAPS,false);

--------------------------------------------------------------------------------




I'm curious about the result (framerate)...
I did it. Now I got 28-30 fps with directx8.
So it proves with no doubt that the lack of mipmapping cause the serious slowdown. :(

I tried to build irrlichtNX but I get problems because visualc++ toolkit complains it can't find libci.lib :?: I got also this problem with irrlicht0.7 dll

strange... It worked perfectly before, I will need to fix that.
bal
Posts: 829
Joined: Fri Jun 18, 2004 5:19 pm
Location: Geluwe, Belgium

Post by bal »

cmoibenlepro wrote:I tried to build irrlichtNX but I get problems because visualc++ toolkit complains it can't find libci.lib :?: I got also this problem with irrlicht0.7 dll.
Add that lib to your "Ignore ... Libraries" (Linker->Input).
General Tools List
General FAQ
System: AMD Barton 2600+, 512MB, 9600XT 256MB, WinXP + FC3
cmoibenlepro
Posts: 237
Joined: Thu May 27, 2004 3:18 pm
Location: Canada

Post by cmoibenlepro »

Ok thanks bal! I got irrlichtNX to compile.

And I confirm: mipmaps don't work with directx9 but it works with directx8

Also, I confirm that it is the lack of mipmap that makes the slowdown. With directx8 without mipmaps there is the same drop in fps.

BTW, I found that if I close up the camera on a wall, (so the mipmapping is not used) the fps go up to 150 with directx9, then it drops again to 30 if turn around the camera.


***UPDATE!***
I found (I think) the reason why mipmapping doesn't work with directx9 and irrlicht0.7 while it worked perfectly with irrlicht0.6.
Also I found why it seems to happen only on some hardware.

This is a quote from the changes.txt of irrlicht0.7:
- Hardware mip map level generation of textures is now supported when using D3D9.
So I think that irrlicht0.6 was also using sorftware mipmapping with directx9

But now it use hardware... I suppose that my old graphic card (a geforce2) don't support it.
If it is true, that would explain why directx8 mipmaps still work on my computer (because it's software mipmaps) and directx9 don't.

Is there a command to switch between harware and software mipmaps? So I could see if it solve the problem...
Post Reply