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.

2D All the way! / Blur effect

Author
Message
inF1n1ty
21
Years of Service
User Offline
Joined: 8th Nov 2003
Location:
Posted: 8th Nov 2003 12:23
Hello all!!!

How to disable blur effect of sprites in Dark Basic Pro???

Thanks!!!
Easily Confused
22
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 8th Nov 2003 21:36
Hmmm, sprites looking a bit blury are they?

well, you may not know this, but when using Load Image or Get Image there is an extra <texture flag> parameter you can use on the end.

Get Image <image number>, <left>, <top>, <right>, <bottom>, <texture flag>
Load Image <filename>, <image number>, <texture flag>

Quote from the help file:
"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 when getting or loading images for sprites, best set the texture flag to 1.

Hope this helps

Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.
inF1n1ty
21
Years of Service
User Offline
Joined: 8th Nov 2003
Location:
Posted: 9th Nov 2003 08:16
Thank you! I don`t know about this...

Login to post a reply

Server time is: 2025-06-30 02:24:27
Your offset time is: 2025-06-30 02:24:27