dynamic skin change

Posted By: fuxerz

dynamic skin change - 03/05/05 04:19

Hey shaders guru
I need to ask you if this is possible.
I would need a shader to dynamicaly change the skin of the model (or it can use external bitmaps for it)
What i really need is this.I want to bake all the shadows and colors on the entity 1st skin,then have the 2nd skin with only a color map in it.
When the player's flashlights hits the wall,the shadow map in that round spot fades and the color map is more visible,otherwise all around this round spot is the shadow map + color(so its the first skin)
Any idea?
thanks for your time.
Posted By: fuxerz

Re: dynamic skin change - 03/06/05 21:13

hmmm anyone?
Posted By: Rhuarc

Re: dynamic skin change - 03/07/05 02:48

Considered this?

Quote:

ent_morphskin(entity,string filename);
Loads a new skin for a model entity from a separate file at runtime. Only the given entity will change it's skin, other entities with the same model remain unchanged.

Parameters:
entity the model entity whose skin is about to change
filename the name of the new skin image (pcx, bmp, or tga)

Remarks:
Speed:
Medium
Note:
The instruction only affects level entities, not view entities. The skin image must exist in the local resource file or the local game folder. The new skin must have the same size as the entities' original model skin. Video memory for the new skin is only allocated when the entity is visible. The new skin can be accessed with the bmap_for_entity function. If the instruction is executed on the server, it is sent to all clients (however the skin image witself won't be sent). This can be prevented by setting the entities' nosend or nosend_attach flag.
This instruction was sponsored by Ross Systems for the Pro Edition.

Edition:
P
Example:
ent_morphskin(my,"newskin.pcx");



Posted By: fuxerz

Re: dynamic skin change - 03/07/05 05:00

heh Ruharc,that is a solution but it wont work in this case because i need the spotlight emited from the player to change the skin so the skin without shadows is visible only in the circle that is created when the spotlight collides with the wall.
Posted By: Alexander Esslinger

Re: dynamic skin change - 03/07/05 05:49

Fuxerz, you have ICQ? Creating such a shader wouldn't be too hard, but I didn't really got what you want, so a realtime chat would speed things up .
Posted By: fuxerz

Re: dynamic skin change - 03/07/05 21:11

Hey Alexander,Thanks man!
i am going to download icq right now.Please pm me your icq number
Posted By: Locoweed

Re: dynamic skin change - 03/08/05 12:20

Hi Alexander,

I downloaded ICQ and my ICQ number is in my profile if you need to talk with me.

Thanks,
Loco
© 2024 lite-C Forums