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 / I'm stuck and embarrassed to have to ask this BUT how do I create pure color objects?

Author
Message
The Weeping Corpse
14
Years of Service
User Offline
Joined: 19th Sep 2011
Location: United Kingdom
Posted: 18th Oct 2012 00:11
I want a pure red cube rgb(255,0,0), a pure green cube rgb(0,255,0) and a pure blue cube rgb(0,0,255).

I don't want to use any kind of shading at all, just the pure colors.

but I can't find the right sequence of commands to setup the lighting.



just gives me three pure white cubes, I've overlooked something simple!!!!

Sergey K
22
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 18th Oct 2012 00:13
in that case, you have to set object light AND fog off
set object light Obj,0
set object fog Obj,0

good luck

Advanced Updater for your games!
The Weeping Corpse
14
Years of Service
User Offline
Joined: 19th Sep 2011
Location: United Kingdom
Posted: 18th Oct 2012 00:21 Edited at: 18th Oct 2012 00:22
Sergey K
22
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 18th Oct 2012 00:38
ahh i remember this one.
you LIGHT command works only on textured models.
wich means you have to create pure color texture for your object.

try this one i made quick for you:



Advanced Updater for your games!
The Weeping Corpse
14
Years of Service
User Offline
Joined: 19th Sep 2011
Location: United Kingdom
Posted: 18th Oct 2012 00:41 Edited at: 18th Oct 2012 00:41
yep that would work, but I found another way.

Create a black ambient light (LOL I know that doesn't make sense)

and use the set object emissive command



Thanks for the help Sergey

The man
20
Years of Service
User Offline
Joined: 30th Jan 2006
Location:
Posted: 18th Oct 2012 20:50
Well if you set the objects to be fully emissive, they will appear as to be lighted evenly. Similar to the "fullbright" effect of some game hacks.

-The man-

Login to post a reply

Server time is: 2026-07-08 10:16:40
Your offset time is: 2026-07-08 10:16:40