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 / any way of turning anti aliasing on

Author
Message
falcon33
20
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: none
Posted: 26th Mar 2010 17:19
models always have jaggy edges so i want to use anti aliasing but can't find any commands to turn it on, my display mode is set at 1024,768

none
James H
17
Years of Service
User Offline
Joined: 21st Apr 2007
Location: St Helens
Posted: 26th Mar 2010 17:48
From the help files;
SET DISPLAY MODE Width, Height, Depth, VSyncOn, Multisampling Factor, Multimonitor Mode

Multisampling Factor

Integer
Set Multisampling Factor to map direct to the D3DMULTISAMPLE_TYPE format in DirectX, ideal for setting multisampling screens for anitaliasing


*it may be the case that you have to ensure your card settings are set to "Application Controlled" in your graphics control panel, I`m not sure and haven`t tested*
falcon33
20
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: none
Posted: 26th Mar 2010 19:20
cool that worked fine

none
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 26th Mar 2010 23:42
Any ideas why this will not work?


If the multisampling factor is set to anything besides 0 and I have the get image command afterwards it just says illegal object surface or something similar. Without the get image it works no problem.

http://s6.bitefight.org/c.php?uid=103081
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 27th Mar 2010 02:59
I think the problem is that you are trying to read from a bitmap that doesn't exist..... I think what you are wanting to do is copy the scene to an image.


The fastest code is the code never written.
Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 28th Mar 2010 21:40 Edited at: 28th Mar 2010 21:40
You can't use 'get image' on a multisample surface. (DirectX limitation)

Even if it did work it would be unusably slow (it has to perform the multisampling again) and you shouldn't need to use 'get image' anyway.

Login to post a reply

Server time is: 2024-05-17 06:19:02
Your offset time is: 2024-05-17 06:19:02