Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Edgar_Herrera, VoroneTZ, Akow), 973 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Changing Skins #269794
06/04/09 16:28
06/04/09 16:28
Joined: Apr 2009
Posts: 113
Netherlands
D
Dreher Offline OP
Warez Victim
Dreher  Offline OP
Warez Victim
D

Joined: Apr 2009
Posts: 113
Netherlands
Hello,

I've got a model, and that model contains a few skins, 1 for the Model itself, 1 for the 3D Lights that are on that model, and 1 for textured lights.



http://img189.imageshack.us/img189/8585/lightproblem.png

All these lights you see here (I put some black circles around them lights I talk about) I want to let them 'flash' (Like a stroboscoop but not so fast, lol!)

Ok, I've split all these lights on the back, into 3 groups, and assigned a red texture to them, and now I want to let them flash by changing for example, it's ambient every once a second, so it'll look realistic.

Problem by using: my.skin = 5; (for example) it makes my whole model get the colour I assigned to these lights in MED frown

I tried ent_mtlset but I don't get this to work either!

EDIT: So, an example: You have a tree with leafes, they both use a different skin but they are both in one .MDL.
How to ONLY change the skin of the leafes with script, and keep the tree skin unchanged?

Last edited by Dreher; 06/04/09 16:38.

A7 7.77
Re: Changing Skins [Re: Dreher] #269824
06/04/09 19:30
06/04/09 19:30
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline
Serious User
DLively  Offline
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
use 2 models, instead of one? leaves one model, trunk anther model.

not sure what you mean...

Edit: you can use an effect that flashes, and attach it to each vertex on the tips of the lights; but that would use lots of resources.

Last edited by DevoN; 06/04/09 19:32.

A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: Changing Skins [Re: DLively] #269826
06/04/09 19:34
06/04/09 19:34
Joined: Apr 2009
Posts: 113
Netherlands
D
Dreher Offline OP
Warez Victim
Dreher  Offline OP
Warez Victim
D

Joined: Apr 2009
Posts: 113
Netherlands
Originally Posted By: DevoN
use 2 models, instead of one? leaves one model, trunk anther model.

not sure what you mean...

Edit: you can use an effect that flashes, and attach it to each vertex on the tips of the lights; but that would use lots of resources.


If you can help me find that effect, I might give it a try, might aswell use it for something else instead.

Thanks for helping laugh


A7 7.77
Re: Changing Skins [Re: Dreher] #269834
06/04/09 19:58
06/04/09 19:58
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Playing with my.skin is only affecting the FIRST skin as listed in MED.
Thats all it can do. You cant change any of the other skins, as far as I know.

It would possibly be easier, but more CPU hungry, creating all the lights as separate entities and attaching them to the model.
Have three different actions to handle the lights, one action for each "group" of lights that handles the color of that group
and keeps it attached to its parent model.

Its a bit of work, I'll admit, but the coding is simple enough, as the lights could be positioned with a simple
vec_for_vertex from the parent model, and since they should be non-physics, passable entities, they wont interfere
with anything else, AND they could be then given a lightrange to actually emit light too.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Changing Skins [Re: EvilSOB] #269836
06/04/09 20:07
06/04/09 20:07
Joined: Apr 2009
Posts: 113
Netherlands
D
Dreher Offline OP
Warez Victim
Dreher  Offline OP
Warez Victim
D

Joined: Apr 2009
Posts: 113
Netherlands
Originally Posted By: EvilSOB
Playing with my.skin is only affecting the FIRST skin as listed in MED.
Thats all it can do. You cant change any of the other skins, as far as I know.

It would possibly be easier, but more CPU hungry, creating all the lights as separate entities and attaching them to the model.
Have three different actions to handle the lights, one action for each "group" of lights that handles the color of that group
and keeps it attached to its parent model.

Its a bit of work, I'll admit, but the coding is simple enough, as the lights could be positioned with a simple
vec_for_vertex from the parent model, and since they should be non-physics, passable entities, they wont interfere
with anything else, AND they could be then given a lightrange to actually emit light too.




Ok well.. I will stick with a simpel texture on the back of the gondela... Placing real 3D Lights takes too much time, and the Model itself is already pretty heavy, so I will 'give up' on it ^^


A7 7.77
Re: Changing Skins [Re: Dreher] #269839
06/04/09 20:14
06/04/09 20:14
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Dont give up on it, just wait a bit longer.
I dont know everything! Someone else may yet have an answer for you.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Changing Skins [Re: EvilSOB] #269846
06/04/09 20:28
06/04/09 20:28
Joined: Apr 2009
Posts: 113
Netherlands
D
Dreher Offline OP
Warez Victim
Dreher  Offline OP
Warez Victim
D

Joined: Apr 2009
Posts: 113
Netherlands
Originally Posted By: EvilSOB
Dont give up on it, just wait a bit longer.
I dont know everything! Someone else may yet have an answer for you.


I know a guy who did it with ent_mtlset, but I can't get it to work lol, so I guess there isn't much of a choise.

Besides, the model is now at 195.000 poly's, no problem atall, test by several people, but it's a waste ^^


A7 7.77

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