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 / how to make anitalias work

Author
Message
nruser
18
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 3rd Nov 2010 00:47
i can't make antialias function work, my card supports this function but i don't know how to mkae this work, can someone show me how to do this on a simple cube exapmle?
MegaByte
15
Years of Service
User Offline
Joined: 1st Nov 2010
Location:
Posted: 3rd Nov 2010 01:11
sync on
sync rate 60

set display mode 800, 600, 32, 0, 8, 0
// numbers are width, height, colours, vsync , AA, Multimon

make object cube 1, 100

do

sync

loop

Do you ever feel, in your caves of steel, The chill of an ancient fear?
Do you shudder and say, when you pass this way,
A human once walked here?
swissolo
16
Years of Service
User Offline
Joined: 9th Jan 2010
Location:
Posted: 3rd Nov 2010 02:20

That should work. The main thing is just the set display mode _, _, _, _, AA, _
Also, make sure your GPU isn't set to force a specific AA setting (make sure it's set to controlled by application in your Catalist Control center or Nvidia Control Panel or whatever you have)

swis
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 3rd Nov 2010 12:34
Also isn't there a bug that if you use sprites AA gets turned off?

thenerd
17
Years of Service
User Offline
Joined: 9th Mar 2009
Location: Boston, USA
Posted: 3rd Nov 2010 12:39
Quote: "Also isn't there a bug that if you use sprites AA gets turned off?"
There was, not sure if it is still there.
The only problem with AA being turned on is that all 2d commands including paste image and text will no longer work, so you'll have to use alternatives such as cloggy's d3d plugin.

baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 3rd Nov 2010 14:02
Quote: "so you'll have to use alternatives such as cloggy's d3d plugin."

It's a great plugin anyway, I use it all the time

IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 3rd Nov 2010 15:24
Quote: "Also isn't there a bug that if you use sprites AA gets turned off?"

Fixed in 7.5

Quote: "The only problem with AA being turned on is that all 2d commands including paste image and text will no longer work"

Can you back that up? I've just tried a quick and dirty check on my laptop and that works fine in every mode I've tried it in.

Utility plug-ins (26-JUL-2010)
I'm applying terms of use that require you to wear a red nose and honk a horn whenever you use the Internet
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 3rd Nov 2010 16:14
Quote: "Fixed in 7.5"

Great! I missed that fix...

nruser
18
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 3rd Nov 2010 20:08
ok, but i don't see any changes, there is a cube in swissolo's code but it looks the same no matter what is the value of antialias
Neuro Fuzzy
19
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 3rd Nov 2010 20:30
Quote: "ok, but i don't see any changes, there is a cube in swissolo's code but it looks the same no matter what is the value of antialias "

do what swissolo said: Check your graphics card settings. For example, I have an nvidia card, so...
running windows vista, I go to
start -> control panel
and search "nvidia"
In the nvidia control panel, there's a setting "antialiasing - mode", that if turned "off", stops the application from using anti-aliasing:



thenerd
17
Years of Service
User Offline
Joined: 9th Mar 2009
Location: Boston, USA
Posted: 3rd Nov 2010 20:44
Quote: "Can you back that up? I've just tried a quick and dirty check on my laptop and that works fine in every mode I've tried it in."

Hm, unfortunately not, because now AA doesn't seem to at all! My graphics card is pretty old, that might be the problem, but I've never had it not work before.
Actually, it doesn't seem to be working in any games now...

nruser
18
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 3rd Nov 2010 21:01
i did check and my graphics card is set to antialiasing-mode to off and it still doesn't work
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 3rd Nov 2010 21:24
That's because you've switched it off
Switch it to application controlled, as per the graphic that Neuro Fuzzy posted.

Utility plug-ins (26-JUL-2010)
I'm applying terms of use that require you to wear a red nose and honk a horn whenever you use the Internet
thenerd
17
Years of Service
User Offline
Joined: 9th Mar 2009
Location: Boston, USA
Posted: 3rd Nov 2010 21:25
No, it's on application controlled...

Neuro Fuzzy
19
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 3rd Nov 2010 21:48
Quote: "No, it's on application controlled..."

mines on application controlled, his is set to off!

thenerd
17
Years of Service
User Offline
Joined: 9th Mar 2009
Location: Boston, USA
Posted: 3rd Nov 2010 21:53
Oh, I didn't see his post and thought IanM was talking to me...

nruser
18
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 4th Nov 2010 00:23
i have set it to application controlled but same result
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 4th Nov 2010 01:15
wait a sec, since when did DB support automatic AA? Have I missed something?


"Any sufficiently advanced technology is indistinguishable from magic" ~ Arthur C. Clarke

Login to post a reply

Server time is: 2026-07-26 05:03:50
Your offset time is: 2026-07-26 05:03:50