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.

Newcomers DBPro Corner / Bad graphics with sprites

Author
Message
Oliver
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Switzerland
Posted: 26th Jul 2003 17:29 Edited at: 26th Jul 2003 19:14
Hey, I was wondering if anyone could explain this...

Image opened in a image program (paintshop)
[img][/img]

Image opened and then used as a sprite in DBP
[img][/img]

The image is saved as a PNG.
The color depth is set to True Color (24 to 32bit).
The sprite is not resized.
This is also true for loading images, and then pasteing them.

I have been trying to fix this for a while now , any help is greatly preciated !

Thanks
andrew11
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 26th Jul 2003 18:26 Edited at: 26th Jul 2003 18:27
When loading the image add a "1" after the image number.

Use:
Load image "Image.png",1,1
Instead of:
Load image "Image.png",1

"All programmers are playwrites and all computers are lousy actors" -Anon
Oliver
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Switzerland
Posted: 26th Jul 2003 19:06
THANK YOU!!! It's Perfect!!!
Oliver
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Switzerland
Posted: 26th Jul 2003 19:09
Perhaps they should explain that in the help files?
Anyway, thanks again!
andrew11
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 26th Jul 2003 19:27
Yes, they should

"All programmers are playwrites and all computers are lousy actors" -Anon
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 27th Jul 2003 17:00
It does say this in the updated help file for U5:

"A Texture Flag of zero will treat the image as a texture and load to fill a texture surface in memory. A value of one will preserve the image without adding mipmaps, scaling or filtering and so retaining its pixel perfect quality."

So, problem solved come that release (providing people read it of course).

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
New DBS Web Sites Coming Soon - All Change

Login to post a reply

Server time is: 2024-09-20 17:42:53
Your offset time is: 2024-09-20 17:42:53