ambient kight

Posted By: DAVIDMORETON

ambient kight - 06/23/15 16:45

Hi Folks,
I am using A7 and C-script.
PROBLEM:-
I want to lower the ambient light in a room so that MY lights work better.
I have put camera.ambient=25; (as per 'example' in manual
BUT get keyword unknown camera.ambient
??? what am I doing wrong please?
Posted By: Anonymous

Re: ambient kight - 06/23/15 23:19

camera.ambient=25;

runs under A8 and Lite-C leading me to believe it is not a c-script and/or a7 command.

Please check which manual you are using?
Posted By: Anonymous

Re: ambient kight - 06/23/15 23:23

Other possible causes - missing #include <acknex.h>
Posted By: DAVIDMORETON

Re: ambient light - 06/24/15 09:42

Hello Malice,
Thanks for your reply and advice.
You suggest I include acknex.h - I thought that was for lite_c only? (tried using it, but got the same result -not known !)

The command camera.ambient=100; also appears in A6.40, which I thought was using C-script.
Using C-script, how would you lower the ambient light in a room please?
Hopefully, David
Posted By: Anonymous

Re: ambient light - 06/24/15 13:26

Sorry David, I got no solution for c-script.
Posted By: rayp

Re: ambient light - 06/24/15 13:30

Maybe "sun_light" is an option.
Posted By: Superku

Re: ambient light - 06/25/15 17:18

I am pretty sure camera ambient used to work in old versions/ C-script, too. I used to use it for my own projects.
Maybe the error lies somewhere else (line above/ below camera.ambient, maybe you wrote it outside of a function like a var definition?).
Posted By: rayp

Re: ambient light - 06/25/15 17:22

camera.ambient even compiles in lite-c without errors btw
Posted By: DAVIDMORETON

Re: ambient light - 06/29/15 15:59

Thanks for all your help you guys - much appreciated.
The problem was solved by putting my own lights in the room scene - and the 'ambient' disappeared !!!

Thanks again for you suggestions,
David
© 2024 lite-C Forums