Gamestudio Links
Zorro Links
Newest Posts
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
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AbrahamR), 717 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
dynamic skin change #42070
03/05/05 04:19
03/05/05 04:19
Joined: Mar 2002
Posts: 492
Tirana/Albania
fuxerz Offline OP
Senior Member
fuxerz  Offline OP
Senior Member

Joined: Mar 2002
Posts: 492
Tirana/Albania
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.

Re: dynamic skin change [Re: fuxerz] #42071
03/06/05 21:13
03/06/05 21:13
Joined: Mar 2002
Posts: 492
Tirana/Albania
fuxerz Offline OP
Senior Member
fuxerz  Offline OP
Senior Member

Joined: Mar 2002
Posts: 492
Tirana/Albania
hmmm anyone?

Re: dynamic skin change [Re: fuxerz] #42072
03/07/05 02:48
03/07/05 02:48
Joined: Mar 2001
Posts: 3,298
Beverly, Massachusetts
Rhuarc Offline
Expert
Rhuarc  Offline
Expert

Joined: Mar 2001
Posts: 3,298
Beverly, Massachusetts
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");





I no longer post on these forums, keep in touch with me via:
Linkedin.com
My MSDN blog
Re: dynamic skin change [Re: Rhuarc] #42073
03/07/05 05:00
03/07/05 05:00
Joined: Mar 2002
Posts: 492
Tirana/Albania
fuxerz Offline OP
Senior Member
fuxerz  Offline OP
Senior Member

Joined: Mar 2002
Posts: 492
Tirana/Albania
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.

Re: dynamic skin change [Re: fuxerz] #42074
03/07/05 05:49
03/07/05 05:49
Joined: Oct 2000
Posts: 1,543
Germany
A
Alexander Esslinger Offline
Senior Developer
Alexander Esslinger  Offline
Senior Developer
A

Joined: Oct 2000
Posts: 1,543
Germany
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 .

Re: dynamic skin change [Re: Alexander Esslinger] #42075
03/07/05 21:11
03/07/05 21:11
Joined: Mar 2002
Posts: 492
Tirana/Albania
fuxerz Offline OP
Senior Member
fuxerz  Offline OP
Senior Member

Joined: Mar 2002
Posts: 492
Tirana/Albania
Hey Alexander,Thanks man!
i am going to download icq right now.Please pm me your icq number

Re: dynamic skin change [Re: fuxerz] #42076
03/08/05 12:20
03/08/05 12:20
Joined: Oct 2002
Posts: 2,256
Oz
L
Locoweed Offline
Expert
Locoweed  Offline
Expert
L

Joined: Oct 2002
Posts: 2,256
Oz
Hi Alexander,

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

Thanks,
Loco


Professional A8.30
Spoils of War - East Coast Games

Moderated by  Blink, Hummel, Superku 

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