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 Professional Discussion / Disable Anti-Aliasing

Author
Message
The Great Poe
User Deleted
Posted: 22nd Aug 2004 11:09
How does one disable anti-aliasing so sprites don't look all funky?
aprilfan
22
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Hell
Posted: 22nd Aug 2004 11:20 Edited at: 22nd Aug 2004 11:20
I don't think anti-aliasing is on by default, and I'm not sure if darkbasic has commands that turn it on or off, just how do the sprites look? Funky isn't enough information.

Do they have white borders?
Are they blurry?
Are they inverted?

Just what is wrong with them? (the sprites)
The Great Poe
User Deleted
Posted: 22nd Aug 2004 12:11
They're blurred.

Sprites are in the 3D environment, so anti-aliasing is applied.
(I read the book. )

Do you know the command that turns it off?
Ilya
21
Years of Service
User Offline
Joined: 10th Aug 2003
Location:
Posted: 22nd Aug 2004 12:14
A custom DLL might.

NathanF
21
Years of Service
User Offline
Joined: 24th Mar 2004
Location:
Posted: 22nd Aug 2004 12:16
Strait from the help files:

LOAD IMAGE file$,imgno,1
Quote: "
A value of one will preserve the image without adding mipmaps,
scaling or filtering and so retaining its pixel perfect quality.
"


Not sure if this is what your looking for.

"I....I like rice?"
The Great Poe
User Deleted
Posted: 22nd Aug 2004 15:50
Hmmm... that might be what I'm looking for.

*goes to test it*
Lost in Thought
21
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 22nd Aug 2004 16:12
Also .dds textures seem to be clearer to me.

The Great Poe
User Deleted
Posted: 22nd Aug 2004 17:31
Okay. It worked. Thanks.
Dreq934
21
Years of Service
User Offline
Joined: 15th Dec 2003
Location: SC, USA
Posted: 22nd Aug 2004 17:33
Don't feel bad, I had similar issues myself which were also solved by that flag

Dark Basic Professional
NathanF
21
Years of Service
User Offline
Joined: 24th Mar 2004
Location:
Posted: 22nd Aug 2004 19:29
I use it with all of my images, and it get pretty annoying. They should really make it no filtering by default - and on with the flag.

"I....I like rice?"
Emperor Baal
21
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 22nd Aug 2004 20:36
Quote: "They're blurred.

Sprites are in the 3D environment, so anti-aliasing is applied.
(I read the book. )
"


DBpro doesn't do anti-aliasing, only texture-filtering. And anti-aliasing should not blur the texture, it only filters sharp edges (the quinqunx anti-alias method does blur the edges)



The Great Poe
User Deleted
Posted: 23rd Aug 2004 07:12
So how does one disable the texture filtering?
The Great Poe
User Deleted
Posted: 24th Aug 2004 05:30
Anyone?
eat much pie
21
Years of Service
User Offline
Joined: 9th Apr 2004
Location: Within the mind of a lowly mortal...
Posted: 24th Aug 2004 05:32
SET OBJECT TEXTURE Object_Number, Texturing_Mode, Mipmap_Flag


[href]Checkpoint Router[/href]: My AI Routing Program
Sam Wright
The Great Poe
User Deleted
Posted: 24th Aug 2004 07:09
But does that work for sprites?
eat much pie
21
Years of Service
User Offline
Joined: 9th Apr 2004
Location: Within the mind of a lowly mortal...
Posted: 24th Aug 2004 07:24
Oops! sorry, only read the last post.

No, I don't think there are any commands for doing that with sprites.


[href]Checkpoint Router[/href]: My AI Routing Program
Sam Wright
The Great Poe
User Deleted
Posted: 24th Aug 2004 08:33
No, that can't be. That would make a sprite-based game impossible.
I'ma see if I can find it.

Login to post a reply

Server time is: 2025-06-10 05:38:05
Your offset time is: 2025-06-10 05:38:05