About Store Forum Documentation Contact



Post Reply 
help! <Display & ambColor()> function Compile Error!
Author Message
lovee Offline
Member

Post: #1
help! <Display & ambColor()> function Compile Error!
hi!
friend!

I accordance with the API Reference use D.ambColor() function,but Compile Error!

"Display & ambColor (Vec &color)
set/get Ambient Color (0..1, default= 0)"

so I tried the following methods:
1.
//**************
D.ambColor(0.18) ;
//***************
2.
//***************
D.ambColor(1,1,1);
//***************

but all Compile Error.

another questions:

is the ambient light color by use D.ambColor() function set or by use sky box texture set?
for example,I want to show the ambient light in the morning or sunset atmosphere.

Please give little tips!
thank you very much!
09-19-2009 06:05 PM
Find all posts by this user Quote this message in a reply
Xerios Offline
Member

Post: #2
Re: help! <Display & ambColor()> function Compile Error!
You have to use vectors for that

like this :

D.ambColor(Vec(0.18)) ;

or

D.ambColor(Vec(1,1,1)) ;
09-19-2009 10:15 PM
Find all posts by this user Quote this message in a reply
Post Reply