Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
1 registered members (Grant), 999 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Change textures for more than 1 skin on multi-textured models? #210661
06/12/08 02:55
06/12/08 02:55
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 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 models? [Re: jaknine] #212385
06/22/08 00:54
06/22/08 00:54
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 think this isn't the right section for this so I made a new thread here: http://www.coniserver.net/ubb7/ubbthreads.php?ubb=showflat&Number=212384#Post212384


Moderated by  HeelX, rvL_eXile 

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