Gamestudio Links
Zorro Links
Newest Posts
Future of ZorroHFT
by TipmyPip. 09/16/26 09:28
What are you working on?
by rayp. 09/16/26 05:24
Fun Arcade Car Physics (nfs style)
by rayp. 09/16/26 05:23
How to Choose a Free Cataract Surgery Centre in Delhi?
by lokkalyansamiti. 09/15/26 08:27
Blind Zorro Window
by Martin_HH. 09/13/26 13:20
Parent/child object
by 3run. 09/11/26 06:21
ZorroGPT
by TipmyPip. 09/09/26 14:35
[MED] Import from FBX (2010) missing!!!
by USER0328. 09/03/26 18:03
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (3run, bigsmack), 2,227 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
lokkalyansamiti, rahulbuilds, speedx, liop, Bauer097
19235 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,117
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,117
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 | 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