Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (Nymphodora, AndrewAMD, Quad, TipmyPip), 889 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
get bone vertices #473491
07/13/18 23:40
07/13/18 23:40
Joined: Apr 2017
Posts: 106
3
3dgamelight Offline OP
Member
3dgamelight  Offline OP
Member
3

Joined: Apr 2017
Posts: 106
How to get all vertices assigned to a bone?

Re: get bone vertices [Re: 3dgamelight] #473492
07/14/18 18:30
07/14/18 18:30
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
txesmi Offline
Serious User
txesmi  Offline
Serious User

Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
I am afraid it is not possible

Re: get bone vertices [Re: txesmi] #473493
07/14/18 20:50
07/14/18 20:50
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)


"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: get bone vertices [Re: Superku] #473494
07/14/18 22:20
07/14/18 22:20
Joined: Apr 2017
Posts: 106
3
3dgamelight Offline OP
Member
3dgamelight  Offline OP
Member
3

Joined: Apr 2017
Posts: 106
I looked at this function. But I do not know how to use it to get all bones controlling a vertex. I suppose if I look for it's parents/children, I will get more vertices than those assigned to a single bone.

Re: get bone vertices [Re: 3dgamelight] #473495
07/14/18 22:49
07/14/18 22:49
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Maybe you can get total amount of vertices of the model (ent_status), then cycle through all of them via 'for' loop with use of 'ent_bonename' to get the name of the bones and save all results? Just a quick idea.

Best regards!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: get bone vertices [Re: 3run] #473496
07/15/18 08:18
07/15/18 08:18
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
txesmi Offline
Serious User
txesmi  Offline
Serious User

Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
ups, true.

Re: get bone vertices [Re: txesmi] #473497
07/15/18 10:37
07/15/18 10:37
Joined: Apr 2017
Posts: 106
3
3dgamelight Offline OP
Member
3dgamelight  Offline OP
Member
3

Joined: Apr 2017
Posts: 106
Originally Posted By: 3run
Maybe you can get total amount of vertices of the model (ent_status), then cycle through all of them via 'for' loop with use of 'ent_bonename' to get the name of the bones and save all results? Just a quick idea.

How to make this work when a vertex is assigned to more than one bone?

Originally Posted By: txesmi
ups, true.

What you mean? You mean you previous answer is true and it is not possible?

Last edited by 3dgamelight; 07/15/18 10:58.
Re: get bone vertices [Re: 3dgamelight] #473498
07/15/18 11:31
07/15/18 11:31
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
txesmi Offline
Serious User
txesmi  Offline
Serious User

Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
I meant that I did not remember ent_bonename. But it returns a single bone by vertex, so it seems it is not possible at the end, but my word is in question grin

Re: get bone vertices [Re: 3dgamelight] #473499
07/15/18 11:53
07/15/18 11:53
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Originally Posted By: 3dgamelight
How to get all vertices assigned to a bone?
You asked about ONE bone, and you got solution for that.

As for multiple bones, I don't think that will be possible, since Acknex's tools don't support such things out of the box (f.e. in MED it's not possible to rig model assigning vertices to several bones). For your solution, saving stuff by hand might be the only way.

Greets


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: get bone vertices [Re: 3run] #473500
07/15/18 13:36
07/15/18 13:36
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Yeah, multiple bones will get difficult. You could file_load the mdl, then look at the bytes if you really want to do this by script but this probably won't be done in an hour, probably not even a day.


"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

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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