Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 16,005 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Did you know this way to change ambient etc? #12142
03/20/03 02:49
03/20/03 02:49
Joined: Jan 2003
Posts: 710
T
Templar Offline OP
Developer
Templar  Offline OP
Developer
T

Joined: Jan 2003
Posts: 710
Hi guys,

i've just found out a way to make setting ambient, albedo and RGB (if the entity is lit by itself) easier. I'm not sure however if it is not old news so if all of you know and use this - sorry for wasting your time [Wink]

In my level I have many entities (models and sprites) and i need to experiment with their ambient and albedo so that they fit their surroundings or to to change their color (when they're my.light = on) to make them "blend" with their background (sprites on ground etc.) If I have a patch of dirt that i put on grass, by altering its color slightly i can make a copy of it that looks fine on sand etc.

Until now i had to a) set it in wed, compile the map, run engine, see how it looks and start over again b) assign it an action so that i could call it right from engine (after TAB) but i would have to do it for each entity.

So i wrote a little script (2 functions, an action and a panel) that does this:

It shows five horizontal sliders and their values (for ambient, albedo, Red, Green and Blue). After I assign the action to all the entities that i want to play with, i run the engine and from there i click with mouse cursor on any of this entity and - seeing how it looks when lighted and textured - i can edit these values on-fly and see how they change instantly. The only weakness of this is that the values are lost after you quit engine so you have to write them down when you're satisfied with them and set them in wed or script.

So i was wondering if any of you use this? Also if any of you find this interesting and are unable to script it themselves, i can post the code.

T.

Re: Did you know this way to change ambient etc? #12143
03/21/03 00:40
03/21/03 00:40
Joined: Mar 2003
Posts: 78
Germany
T
TheMatrix Offline
Junior Member
TheMatrix  Offline
Junior Member
T

Joined: Mar 2003
Posts: 78
Germany
Well done.
Though I don't need the code myself, I think it could be very useful and -of course- good for newbies [Cool]


Nur ein Mensch.
-Nur ein Agent *wegpust*

(MATRIX)
Re: Did you know this way to change ambient etc? #12144
03/21/03 04:11
03/21/03 04:11
Joined: Aug 2002
Posts: 906
the future
N
nuclear_winter Offline
User
nuclear_winter  Offline
User
N

Joined: Aug 2002
Posts: 906
the future
I'm having similar dificulties when putting together my levels.
I would greatly appreciate if you post the code since i'm a code idiot!

Thanx


Moderated by  HeelX, Spirit 

Gamestudio download | 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