Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 945 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
ambient kight #452737
06/23/15 16:45
06/23/15 16:45
Joined: Jan 2005
Posts: 282
devon UK
D
DAVIDMORETON Offline OP
Member
DAVIDMORETON  Offline OP
Member
D

Joined: Jan 2005
Posts: 282
devon UK
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?

Re: ambient kight [Re: DAVIDMORETON] #452749
06/23/15 23:19
06/23/15 23:19

M
Malice
Unregistered
Malice
Unregistered
M



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?

Re: ambient kight [Re: ] #452750
06/23/15 23:23
06/23/15 23:23

M
Malice
Unregistered
Malice
Unregistered
M



Other possible causes - missing #include <acknex.h>

Re: ambient light [Re: ] #452754
06/24/15 09:42
06/24/15 09:42
Joined: Jan 2005
Posts: 282
devon UK
D
DAVIDMORETON Offline OP
Member
DAVIDMORETON  Offline OP
Member
D

Joined: Jan 2005
Posts: 282
devon UK
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

Re: ambient light [Re: DAVIDMORETON] #452756
06/24/15 13:26
06/24/15 13:26

M
Malice
Unregistered
Malice
Unregistered
M



Sorry David, I got no solution for c-script.

Re: ambient light [Re: ] #452757
06/24/15 13:30
06/24/15 13:30
Joined: Jul 2008
Posts: 2,107
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,107
Germany
Maybe "sun_light" is an option.


Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
Re: ambient light [Re: rayp] #452798
06/25/15 17:18
06/25/15 17:18
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
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?).


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: ambient light [Re: Superku] #452799
06/25/15 17:22
06/25/15 17:22
Joined: Jul 2008
Posts: 2,107
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,107
Germany
camera.ambient even compiles in lite-c without errors btw


Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
Re: ambient light [Re: rayp] #452877
06/29/15 15:59
06/29/15 15:59
Joined: Jan 2005
Posts: 282
devon UK
D
DAVIDMORETON Offline OP
Member
DAVIDMORETON  Offline OP
Member
D

Joined: Jan 2005
Posts: 282
devon UK
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


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1