Gamestudio Links
Zorro Links
Newest Posts
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,314 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 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