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
2 registered members (Akow, SBGuy), 1,423 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Getting black to white model color #428389
08/26/13 18:49
08/26/13 18:49
Joined: Apr 2006
Posts: 159
Latvija
Arrovs Offline OP
Member
Arrovs  Offline OP
Member

Joined: Apr 2006
Posts: 159
Latvija
I remember when i used c-script i could make neutral color on 128 and 0 was black or 255 was white, but now in lite-c it seems only adding on texture already existing color so there is no black color because at 0 its neutral texture color. So is there way to get this coloring on texture or i will need use some material?

Im speaking about:
set(my, LIGHT);
vec_fill(my.blue, 0);//or any value

Last edited by Arrovs; 08/27/13 16:31.

Arrovs once will publish game
Re: Getting black to white model color [Re: Arrovs] #428445
08/27/13 14:53
08/27/13 14:53
Joined: Jul 2008
Posts: 2,107
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,107
Germany
Do u mean this ?
Code:
set (my, LIGHT);
my.red = 128;
my.green = 128;
my.blue = 128;

This should color the entity. Sorry if i miss understood your question. Maybe check "skin propereties" in med. Maybe theres a color predefined already.


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: Getting black to white model color [Re: Arrovs] #430227
09/25/13 21:45
09/25/13 21:45
Joined: Dec 2012
Posts: 3
S
SashB Offline
Guest
SashB  Offline
Guest
S

Joined: Dec 2012
Posts: 3
try:

vec_set(my.blue,vector(-255,-255,-255)); //pure black
vec_set(my.blue,vector(0,0,0)); //grey
vec_set(my.blue,vector(255,255,255)); //full white

hope, that was what u asking for wink


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