Gamestudio Links
Zorro Links
Newest Posts
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 (Ayumi), 662 guests, and 3 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
Page 1 of 2 1 2
Multiple skins, change-able ingame? #177755
01/13/08 19:50
01/13/08 19:50
Joined: Jan 2008
Posts: 5
P
Prooi Offline OP
Newbie
Prooi  Offline OP
Newbie
P

Joined: Jan 2008
Posts: 5
Hi everyone, I'm new to Gamestudio and started out with the free MED and Lite-C to see what i can do with it, now i bumped on the following problem:

How can someone (if possible) change textures ingame & does the model needs to be "prepared" for it

example:

I have a simple human, textured and all (with multiple textures).

Made a texture for:

1 the hands
2 Sleeves & torso
3 pants
4 boots


Is it possible to change 1 of these textures if certain conditions are met?

like when you equip gloves only the hand texture would change
or when you equip a vest that the sleeves & torso texture would change?

Is this possible? and if so, does anyone know a tutorial?

Thanks for reading

Re: Multiple skins, change-able ingame? [Re: Prooi] #177756
01/14/08 11:38
01/14/08 11:38
Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
i dont know if it works just for a spesific group of model but you can change the skin by

my.skin=2; or something but i think this will change the skin of whole model.

You may try making hands,torso etc. spare models but its harder to bring things together and keep them there. And it doesnt look good.

i wonder this too if its possible to change only a group's skin not the whole model.?

(maybe my.group1.skin ? i dont think so but..)


3333333333
Re: Multiple skins, change-able ingame? [Re: Quad] #177757
01/14/08 13:56
01/14/08 13:56
Joined: Jan 2008
Posts: 5
P
Prooi Offline OP
Newbie
Prooi  Offline OP
Newbie
P

Joined: Jan 2008
Posts: 5
it certainly would help improve framerate for RPG games, with loads of equipment

Re: Multiple skins, change-able ingame? [Re: Quad] #177758
01/14/08 14:41
01/14/08 14:41
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Nidhogg Offline
Serious User
Nidhogg  Offline
Serious User

Joined: Dec 2006
Posts: 1,086
Queensland - Australia
I think the only way possible would be to create a different full
skin with the change of the clothing you want.
eg: skin0 - would be the original skin
skin1 - would be skin0 with the modification
skin2 - would be skin0 with next modification
and so on and so on until you've got all the skins you need.

In your code you'd have something like

In cscript
Code:
  if (event == switch1) {my.skin = 2;} //Change to skin1



I think that's right but check it anyways...

Good luck



Last edited by Nidhogg; 01/14/08 14:41.

Windows XP SP3
Intel Dual Core CPU: E5200 @ 2.5GHz
4.00GB DDR3 Ram
ASUS P5G41T-M LX
PCIE x16 GeForce GTS 450 1Gb
SB Audigy 4
Spyware Doctor with AntiVirus
Re: Multiple skins, change-able ingame? [Re: Nidhogg] #177759
01/14/08 15:59
01/14/08 15:59
Joined: Jan 2008
Posts: 5
P
Prooi Offline OP
Newbie
Prooi  Offline OP
Newbie
P

Joined: Jan 2008
Posts: 5
soo if you have
10 different chest pieces
10 different gloves
10 different pants

you need 10x10x10= 1000 different textures, oi!

Last edited by Prooi; 01/14/08 16:00.
Re: Multiple skins, change-able ingame? [Re: Prooi] #177760
01/14/08 16:21
01/14/08 16:21
Joined: Dec 2007
Posts: 17
Mare Offline
Newbie
Mare  Offline
Newbie

Joined: Dec 2007
Posts: 17
Hmmm.. thats not the right way to do it (I think ) You should make your model naked, and then attach separate models for the chest gloves or pants, as your character collects them in the game. But that leads to another problem:
You would have to animate all the collectable models with all animation frames of your character separately. But i think thats how its done in many games on the market

good luck,
cheers!

Re: Multiple skins, change-able ingame? [Re: Mare] #177761
01/14/08 16:31
01/14/08 16:31
Joined: Aug 2005
Posts: 312
Sweden
tindust Offline
Senior Member
tindust  Offline
Senior Member

Joined: Aug 2005
Posts: 312
Sweden
Mare is right, but you don't have to animate each piece of clothing separately but attach it and have each clothing model follow certain vertices on the player model. Look under "attach" in the manual. Each clothing model can then change its skin individually.

cheers

Re: Multiple skins, change-able ingame? [Re: Prooi] #177762
01/14/08 17:17
01/14/08 17:17
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Nidhogg Offline
Serious User
Nidhogg  Offline
Serious User

Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Quote:

soo if you have
10 different chest pieces
10 different gloves
10 different pants

you need 10x10x10= 1000 different textures, oi!




hahahaha I didn't think of that. I was thinking along the lines
of an extra set of each. Maybe this is better answered by someone who has done an RPG or simular. Or even if he can get hold of some code that some kind person has contributed...


Windows XP SP3
Intel Dual Core CPU: E5200 @ 2.5GHz
4.00GB DDR3 Ram
ASUS P5G41T-M LX
PCIE x16 GeForce GTS 450 1Gb
SB Audigy 4
Spyware Doctor with AntiVirus
Re: Multiple skins, change-able ingame? [Re: Nidhogg] #177763
01/14/08 17:23
01/14/08 17:23
Joined: Jan 2008
Posts: 5
P
Prooi Offline OP
Newbie
Prooi  Offline OP
Newbie
P

Joined: Jan 2008
Posts: 5
i was trying to avoid extra models attachments on the player model to reduce the polygons rendered at the scene and therefor have more models

Re: Multiple skins, change-able ingame? [Re: Prooi] #177764
01/15/08 10:17
01/15/08 10:17
Joined: Dec 2003
Posts: 129
Osnabrück, Germany
Ready Offline
Member
Ready  Offline
Member

Joined: Dec 2003
Posts: 129
Osnabrück, Germany
Well its technically the same ammount of polys.
Take your base player model and split it into several objects... then you can change each skin for each model individually.
Never tryed something like this but I'll have to soon ^^


Do not underestimate people because they have a low post count... :0
Page 1 of 2 1 2

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