thoughts about bones in weapons.

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

thoughts about bones in weapons.

Postby zuriastrad » Sun Aug 03, 2008 7:52 am

i imported the lazer zym to see how it was done and noticed it only had one bone in it, presumably to locate it on the "bip01 r hand" bone. i'm guessing this means the muzzle flash is located by having some co-ordinates in a config file somewhere. while this approach obviously works it doesn't strike me as the easiest way of doing things. for example, if someone made a new lazer model that had a shorter, higher barrel then they would not only have to alter the model, they would also have to figure out how far the muzzle flash would need to be moved, make a new config file to account for that difference and package it up in the pk3.

a far quicker and easier method would be to have a second bone in the weapon called muzzle, which the game would use to locate the muzzle flash. then if someone wanted to alter the weapon all they would have to do is move the muzzle bone to match their new weapon model.

how difficult would it be to change the code to implement this?
zuriastrad
Alien
 
Posts: 169
Joined: Thu May 15, 2008 4:13 am

Postby zuriastrad » Sun Aug 03, 2008 9:36 am

i decided to give make something in blender to demonstrate what i mean. i imported the lazer's zym and gave it this new skeleton. the bone that locates the bone to the hand is now called "handle" and the bone that locates where the muzzle flash starts from is called "muzzle".

Image

i've made a zym for my laser with it's new bones. i've put it in a pk3 along with the blend file i used to make it. hopefully this will come in useful if anyone wants to try and get the new bones working in nexuiz.

click here to download
zuriastrad
Alien
 
Posts: 169
Joined: Thu May 15, 2008 4:13 am

Postby esteel » Mon Aug 04, 2008 9:21 pm

Thats for sure useful, could you maybe check the other wepaon models and see if they also have muzzle bones? I think some of them have, maybe you can make sure that all guns get a bone with the same name?
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Postby KillaGrunt » Mon Aug 04, 2008 9:23 pm

This is weird zuristrad. When i dowloaded it and out it in the data folder i started playing and the lazer was on my head. Is this supposed to happen?
Image
KillaGrunt
Alien trapper
 
Posts: 315
Joined: Fri Jun 27, 2008 3:35 am
Location: In your X-Box 360 playing halo

Postby [-z-] » Tue Aug 05, 2008 2:24 am

Well.. seeing as how your client doesn't have code to support the model... no, it's not weird.

LOL words, picshore, WANT, zomg pk3 > download to my dir -> start nexuiz -> omgwtf? lol hot dogs. cat goes meow wwhhheeee - wut happend guize?



I think this is a great idea zuriastrad. Well explained too :).
[-z-]
Site Admin and Nexuiz Ninja
 
Posts: 1794
Joined: Mon Nov 13, 2006 12:20 am
Location: Florida

Postby KillaGrunt » Tue Aug 05, 2008 2:31 am

Are you okay [-z-]? Are you on pot?
Image
KillaGrunt
Alien trapper
 
Posts: 315
Joined: Fri Jun 27, 2008 3:35 am
Location: In your X-Box 360 playing halo

Postby zuriastrad » Tue Aug 05, 2008 5:23 am

esteel-
i'll take a look at the weapon models, it would make sense to have all of them with the new bones. i'm guessing i might need to do some scaling too, because the laser looked damn big.

[-z-] :D

killagrunt-
i think you missed the point a bit. i made that weapon with my handle and muzzle bones so that if someone wanted to implement my suggestion then they'd have a weapon to test it on. since the code hasn't been implemented yet it is going to act strangely.
zuriastrad
Alien
 
Posts: 169
Joined: Thu May 15, 2008 4:13 am

Postby KillaGrunt » Tue Aug 05, 2008 2:44 pm

OHHHHHHHHHH. Maybe thats why its on my head. LOL
Image
KillaGrunt
Alien trapper
 
Posts: 315
Joined: Fri Jun 27, 2008 3:35 am
Location: In your X-Box 360 playing halo

Postby zuriastrad » Sun Aug 17, 2008 9:32 am

doesn't look like all of the weapons have muzzle bones.
zuriastrad
Alien
 
Posts: 169
Joined: Thu May 15, 2008 4:13 am


Return to Nexuiz - Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron