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
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.