ugly skybox problem*solved*

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
bearSoft
Posts: 165
Joined: Fri Apr 01, 2005 9:55 pm
Location: Denmark

ugly skybox problem*solved*

Post by bearSoft »

Hallo
This jpg
[img=http://img368.imageshack.us/img368/7292/skyboxirr5qk.th.jpg]

shows a blocky uneven texture on the skybox.
I know i have had it mutch better.
What is it i forget to add to this :

Code: Select all

driver->setTextureCreationFlag(video::ETCF_CREATE_MIP_MAPS, 1);
smgr->addSkyBoxSceneNode(
		driver->getTexture("../../media/skyup.jpg"),
		driver->getTexture("../../media/sky.jpg"),
		driver->getTexture("../../media/sky.jpg"),
		driver->getTexture("../../media/sky.jpg"),
		driver->getTexture("../../media/sky.jpg"),
		driver->getTexture("../../media/sky.jpg"));
//end skybox
tyia.
Last edited by bearSoft on Thu Aug 25, 2005 2:55 pm, edited 1 time in total.
Regards.
Tech: win98se| 320mb ram| abitbe6| 433mhzceleron| atiRadeon7000.64mb| soundblaster125| dx9.0b | devCPP | IRR 0.12.0 |
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Try to disable mip maps...
what size are the textures ???
They have to be in the power of 2 !!!
2 * 2
4 * 4
8 * 8
16 * 16
...
1024 * 1024
or
1024 * 512
...
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
bearSoft
Posts: 165
Joined: Fri Apr 01, 2005 9:55 pm
Location: Denmark

Post by bearSoft »

Hej Acki
Thanks for replying!
removing mipmap did not do anything
the img is 512*512
It is a bit strange because i have seen it mutch better. Now it look like that..
Almost like a hw isue, but nothing else (on the pc) is 'weird'
....i did upgrade irrlicht though... *argh!*
Could irr 9.0 have done this better..
Dont think i have done any skybox-experiments since 9.0
oh dear
Regards.
Tech: win98se| 320mb ram| abitbe6| 433mhzceleron| atiRadeon7000.64mb| soundblaster125| dx9.0b | devCPP | IRR 0.12.0 |
William Finlayson
Posts: 61
Joined: Mon Oct 25, 2004 12:11 am

Post by William Finlayson »

I get image problems like that when my desktop colour depth is set to 16bpp, I havn't really looked into it though, so I can't tell you the whys. I'll have to try it with different image formats to try and see if the problem is with the image loaders themselves, or it could possibly be a problem with the colour conversion for rendering.
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Sometimes jpegs could be a problem, too (because of the compresson)...
Maybe you should try to convert the textures to bmp...
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
MasterD
Posts: 153
Joined: Sun Feb 15, 2004 4:17 pm
Location: Lübeck, Germany
Contact:

Post by MasterD »

With removing mipmap you are talking of this:
driver->setTextureCreationFlag(video::ETCF_CREATE_MIP_MAPS, false);
just to not get you wrong.

In addition to that you can try to
driver->setTextureCreationFlag(video::ETCF_OPTIMIZED_FOR_QUALITY, true);
but in reference to the api:
But please note that the video drivers take this value only as recommendation. It could happen that you enable the ETCM_ALWAYS_16_BIT mode, but the driver creates 32 bit textures.
YASS - Yet another Space Shooter
under Devolpment, see http://yass-engine.de
bearSoft
Posts: 165
Joined: Fri Apr 01, 2005 9:55 pm
Location: Denmark

Post by bearSoft »

unfourtunately already a (big) bmp (should properly have used the textures from the terrain demo but the blue ones showed the problem more clearly)

substituting
driver->setTextureCreationFlag(video::ETCF_CREATE_MIP_MAPS, 1);
with
driver->setTextureCreationFlag(video::ETCF_OPTIMIZED_FOR_QUALITY, true);
did not make any change

i'll try to reinstall some win-bluha-puba is proplerly the reason

thanks for all assistence!
----------------------------
edit -after reinstall it is just fine -added *solved* to topic
..unfourtunately i have no idea what caused the problem -wild gues: windows..
Regards.
Tech: win98se| 320mb ram| abitbe6| 433mhzceleron| atiRadeon7000.64mb| soundblaster125| dx9.0b | devCPP | IRR 0.12.0 |
Post Reply