Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,225 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19056 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
changing color (skin) of an objet #127622
05/02/07 07:37
05/02/07 07:37
Joined: Jun 2005
Posts: 59
M
maxxoros Offline OP
Junior Member
maxxoros  Offline OP
Junior Member
M

Joined: Jun 2005
Posts: 59
How could I change color, skin of an object when playing the game...
Is it possible in the engine right now?
Thanks for any helps

Re: changing color (skin) of an objet [Re: maxxoros] #127623
05/02/07 09:04
05/02/07 09:04
Joined: Oct 2003
Posts: 702
Z
zazang Offline
User
zazang  Offline
User
Z

Joined: Oct 2003
Posts: 702
Add your skins in MED(model editor).
Ingame when you want to see a skin on a model,just enter its number

my.skin = 1;//displays first skin

similarly this will display skin 5

my.skin = 5;

Another method is to assign a material to the model.
Then adjust material parameter's rgb values.

For more info and details read the manual !


I like good 'views' because they have no 'strings' attached..
Re: changing color (skin) of an objet [Re: zazang] #127624
05/02/07 09:17
05/02/07 09:17
Joined: Jun 2005
Posts: 59
M
maxxoros Offline OP
Junior Member
maxxoros  Offline OP
Junior Member
M

Joined: Jun 2005
Posts: 59
Quote:

Another method is to assign a material to the model.
Then adjust material parameter's rgb values.



I am more curious in this method, could you explain more clearly
Thanks alot for reading my post

Re: changing color (skin) of an objet [Re: maxxoros] #127625
05/02/07 09:33
05/02/07 09:33
Joined: Oct 2003
Posts: 702
Z
zazang Offline
User
zazang  Offline
User
Z

Joined: Oct 2003
Posts: 702
You can read the chapter on Materials in the latest manual.
A material definition looks like this :-

material mat_smaragd
{
ambient_blue = 100;
ambient_green = 255;
ambient_red = 100;
diffuse_blue = 0;
diffuse_green = 100;
diffuse_blue = 0;
specular_blue = 255;
specular_green = 255;
specular_red = 255;
power = 10;
}

then it can be assigned to an entity like :-

...
my.material = mat_smaragd;
....


I like good 'views' because they have no 'strings' attached..
Re: changing color (skin) of an objet [Re: zazang] #127626
05/02/07 09:55
05/02/07 09:55
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline
Expert
fogman  Offline
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
You can download "MatsEd2" from my signature, itīs a material editor. It will write out the material as script, so you can copy and paste it in your code. Atm MatsEd works only with models with only one skin and no groups. But a default model is included.

Beside materials you can use self illumination:

action colour_me
{
my.red = 255;
my.green = 255;
my.blue = 0;
// yellow colour
my.light = on;
my.lightrange = 0;
}

Self illumination is not a dynamic light. You can illuminate as much as entities as you need.


no science involved

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