Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / "load image" corrupts my textures

Author
Message
Kelebrindae
21
Years of Service
User Offline
Joined: 15th Sep 2003
Location: Where cheeses are scarier than dragons.
Posted: 12th May 2004 16:14
Hi

I've used "Load image '[filename]',n,1" to load the textures of my models. When the last parameter (called "texture mode") is set to 1, the texture is supposed to be loaded directly into Video memory, rather than having the system automatically do it later on.

Though it works well most of the time, I've noticed that sometimes the texture is corrupted (transparency is lost, colors are altered). This occurs mainly with large textures (more than 500x500 pixels) or/and old graphic cards, but it's still annoying.

Has anyone else encountered this problem?

The solution is easy: do not use the last parameter of "load image". But does someone know if the performance hit is heavy ?

Ideas: memories of things which did not occur yet...
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 12th May 2004 18:16
Quote: "Has anyone else encountered this problem?"

Nope

The last parameter is for mip-mapping actually.


The place for all great plug-ins.
Keep your friends close, and your cats even closer.
Kelebrindae
21
Years of Service
User Offline
Joined: 15th Sep 2003
Location: Where cheeses are scarier than dragons.
Posted: 13th May 2004 12:04
Well, that's not what they say in the help files:

"The optional Texture Mode value is used to control the texture capabilities of the image. If you set the Texture Mode value to 1 you will load the image directly into Video memory, rather than having the system automatically do it later on. If you set the Texture Mode to 2 you will ask that the image be compressed when used as a texture."

Did I misunderstand ?

Ideas: memories of things which did not occur yet...

Login to post a reply

Server time is: 2025-05-23 20:14:49
Your offset time is: 2025-05-23 20:14:49