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 (1 invisible), 1,374 guests, and 7 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
Models with Multiple Meshes #423561
06/01/13 05:28
06/01/13 05:28
Joined: Jul 2008
Posts: 168
8
82RJZAE Offline OP
Member
82RJZAE  Offline OP
Member
8

Joined: Jul 2008
Posts: 168
Hi, how easy is it to swap out models with multiple meshes? I know it's possible to attach models to each other via vertex attachment, but how can I swap out certain meshes in a model without removing them from the model itself (ie: hide/show meshes by script)?

Re: Models with Multiple Meshes [Re: 82RJZAE] #423562
06/01/13 05:47
06/01/13 05:47
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
I've used vmask ( http://www.conitec.net/beta/vmask.htm ) before and it works pretty well, just give it a try:

if(key_1) my.vmask = 0; // reset
if(key_2) my.vmask |= (1<<0); // hide meshes that have the 1st skin attached
if(key_3) my.vmask |= (1<<1); // 2nd skin
...


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Models with Multiple Meshes [Re: Superku] #423564
06/01/13 06:27
06/01/13 06:27
Joined: Jul 2008
Posts: 168
8
82RJZAE Offline OP
Member
82RJZAE  Offline OP
Member
8

Joined: Jul 2008
Posts: 168
Thanks Superku! Can meshes be removed at runtime to save memory? I have a large model with high res textures & many meshes and they will not need to be active all at once.

I have not worked with models with multiple meshes before and I'm a little uncertain how to best approach this one. I noticed ent_setmesh but my model is animated and it says in the remarks that "meshes can be set only for nonanimated entities."


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