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 / Backdrop Problem?

Author
Message
culmor30
17
Years of Service
User Offline
Joined: 16th Jun 2007
Location: In my head.
Posted: 30th Sep 2009 02:04
Hm, I've been trying to turn the backdrop black in this simple program:



For some reason, the backdrop remains very blue. Is there some conflict going on here? I remember it working before I added the Styx antialiasing and anisotropy commands.

I have tried such variations as:

backdrop on
color backdrop rgb(0,0,0)

backdrop on
color backdrop black

(also the above two without "backdrop on")
and

backdrop off

Yet, in every experiment, the backdrop seemed to remain both quite blue and quite on. If I'm just being an idiot, I'm sorry
culmor30
17
Years of Service
User Offline
Joined: 16th Jun 2007
Location: In my head.
Posted: 30th Sep 2009 03:44 Edited at: 30th Sep 2009 03:46
Just did another quick experiment, tried commenting out the line "set antialias level aalevel#". The result:

http://img44.imageshack.us/img44/3645/aaproblem.jpg

Left is with the line included, right is without. Am I making a dumb mistake or is this a bug? I would very much like AA, and it has worked for me in the past. Any and all help is appreciated, thanks in advance.

(There only change to the source that I posted was to add the skysphere, and it's not really important, so I didn't bother updating.)
zeroSlave
15
Years of Service
User Offline
Joined: 13th Jun 2009
Location: Springfield
Posted: 30th Sep 2009 05:26 Edited at: 30th Sep 2009 05:26
From the picture comparison, I wouldn't think that it is the backdrop causing the problem since the planet and the stars seem to disappear as well when you turn it on.

I have never used it before, and when I tried to run your code, I got errors from the:
get maximum antialias level()
get maximum anisotropy level()
set antialias level
set anisotropy level

Maybe I need to update?

There's something in this room that makes you can't speak well.
culmor30
17
Years of Service
User Offline
Joined: 16th Jun 2007
Location: In my head.
Posted: 30th Sep 2009 20:46
Ah, those commands are from this DLL:

http://darkbasicpro.thegamecreators.com/?f=styx

It's not free, but I'll make/post a little AA example program in a second to see what your results are...
culmor30
17
Years of Service
User Offline
Joined: 16th Jun 2007
Location: In my head.
Posted: 30th Sep 2009 23:13 Edited at: 30th Sep 2009 23:22
Alright, here's a compiled sample that uses those AA commands, and the source:



Also, nevermind this thread, I just realized that my AA subroutine had to be called before changing the backdrop color, as I had forgotten that directx requires you to reload resources after applying AA. Thanks anyway

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-24 01:32:29
Your offset time is: 2024-11-24 01:32:29