Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,435 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Change textures for more than 1 skin on multi-textured models? #212384
06/22/08 00:53
06/22/08 00:53
Joined: Feb 2002
Posts: 288
California, USA
J
jaknine Offline OP
Member
jaknine  Offline OP
Member
J

Joined: Feb 2002
Posts: 288
California, USA
I posted this in the MED\WED section over a week ago and got a bunch of views but no replies. I think maybe it was in the wrong section, so hopefully someone here can shed some light on the issue...

I have a model where the body is textured with skin 1 and the face uses skin 2, each with a different texture.

When I use ent_setskin to change the texture on both the body and the face, I can only get the body to change.



Here is my code:

Code:
ent_setskin(girl,bmap_create ("kate-skin-512.pcx"),1);
ent_setskin(girl,bmap_create ("kate-face-512.pcx"),2);

The first line works fine and changes her body texture, but the second line (which should change the face texture, as it uses skin slot 2) only makes the whole face disappear; not only is no texture loaded but the polygons themselves disappear.

I've tried different textures to see if it's something to do with the texture file, but still no luck. I also tried setting the skin into slot 3 instead of 2, then changing my code accordingly, but no luck.

I'm just starting to get back into coding in this engine and I know there's got to be something simple I'm missing.

So.. how can I dynamically change textures on a model that uses different texture maps in different skin slots?

The eyes and hair are separate models so they shouldn't have anything to do with the texture issue.

Thanks!

Re: Change textures for more than 1 skin on multi-textured model [Re: jaknine] #219726
08/04/08 09:44
08/04/08 09:44
Joined: Jan 2002
Posts: 692
berlin
MB Offline
User
MB  Offline
User

Joined: Jan 2002
Posts: 692
berlin
Correction: The function works, the only thing one has to keep in mind, is that you have to start with the skin no 1.

Last edited by MB; 08/04/08 14:07.

Moderated by  HeelX, Spirit 

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