Making A Playermodel With JUST BLENDER

Post anything to do with editing Nexuiz here. Whether its problems you've had, questions, or if you just want to show off your work.

Moderators: Nexuiz Moderators, Moderators

Making A Playermodel With JUST BLENDER

Postby ihsan » Thu Apr 16, 2009 6:37 pm

As we all know playermodels look better with spikes so here's a quick workflow (not really a tutorial) on how to edit player models (i'm talking ZYMs) with just blender.

This is for people familiar with blender. A noob guide will be posted later.
*added* Learn Blander3D from scratch with a focus on games (Videos). http://iamar.net/subpages/BlenderVids.html

15 mins work total:
Image

========================
Importing
========================

1. Get my blender 3D (*edit* see mirriors in third post for direct downloads) http://www.zshare.net/download/587455656d739739/ or just my scripts folder http://www.zshare.net/download/5874517431294641/. This is a windows workflow but linuxers should be able to follow without problem.

2. Inflate the zym you want to edit and the matching textures from whatever PK3

3. Fire up Blender and click file>import>zymotic (you will have to update menus to see it if you inflated justscripts.zip to your blender scripts folder). There you go, a perfect character with animations.

4 Apply the texture to the model. If there is no texture the final file you export will be textureless and invisible in nexuiz.

5. Add Spikes or just mess around with model to your liking. All animations are imported to the NLA editor. Mess with those also if you like.

Image
====================================
Exporting
====================================

6. To export animations, create a working folder then select the armature and click file>export>Nexuiz(.smd). Select 'animation sequences All!' And export to your working folder. In my example i named my animations nexus simply because i was editing nexus.zym. Now you have a bunch of animation SMD's. You won't have to edit these again unless you change some animations or the armature.

7. To export the geometry, click on the mesh and click file>export>Nexuiz(.smd). Select 'Static mesh..'. Save this as mesh.smd in your working folder.

8. Configure zmodel. From the 'Blender/scripts/new animations' folder copy zmodel.exe, compile-zym.bat and config-zym.txt to your working folder. If you are in linux use wine or compile zmodel from source yourself. It's available online somewhere. Edit config-zym.txt to match your animation filenames. Be sure to set the scale to 1, origin to 0 0 0 and rotate to 0. Here's the beginning of mine, which outputs nexus.zym from mesh.smd.
Code: Select all
output "nexus"
scale 1
origin 0 0 0
rotate 0
mesh mesh.smd
scene nexus_die1.smd fps 10 noloop
scene nexus_die2.smd fps 10 noloop
scene nexus_draw.smd fps 10
...

Once this is done you probably won't be touching any of this again so don't worry about this manual labour 2 much.

9. Double click compile-zym.bat to run zmodel on all your SMDs and hopefully a ZYM will appear in the work folder. Move this to Nexuiz\data\models\player and launch nexuiz. All done.

Setting up this the first time is a bit touchy but after you get it working the first time you will be cranking out playermodels at a lightening pace. I was considering completing the zym export script (it's was never completed) but the fps and looping parameters just make everything messy in blender since there is no good place to hold this data. Furthermore having the animations separate from mesh data is actually great for workflow.


P.S. http://www.easy-share.com/ really sux so i changed the links to zShare. Somebody please mirror these files somewhere better. Thanks to all you who wrote these scripts and blender itself. You all rock.
Last edited by ihsan on Sun Apr 19, 2009 12:55 am, edited 2 times in total.
ihsan
Alien trapper
 
Posts: 305
Joined: Fri Mar 03, 2006 3:33 pm
Location: Trinidad (Where Obama met Chavez)

Postby timotity » Thu Apr 16, 2009 7:28 pm

why not filefront or mediashare? anyway... good job!
timotity
Member
 
Posts: 24
Joined: Mon Mar 23, 2009 2:18 am

Postby Taiyo.uk » Fri Apr 17, 2009 2:55 pm

Taiyo.uk
Alien trapper
 
Posts: 436
Joined: Mon Apr 17, 2006 8:48 pm
Location: Reading, IN-GER-LUND!!!

Postby C.Brutail » Sat Apr 18, 2009 12:48 pm

Also, when planetnexuiz.de comes online again, I'll mirror it there too.
"One should strive to achieve; not sit in bitter regret."
WE ARE NEXUIZ.
Image
Image
C.Brutail
Laidback mapper
 
Posts: 2357
Joined: Tue Feb 28, 2006 7:26 pm
Location: Ironforge

Postby [-z-] » Sat Apr 18, 2009 3:08 pm

I was wondering who posted those pictures on pics.nn! :-P

I've mirrored the files for you as well:

http://toolz.nexuizninjaz.com/modeling/ ... cripts.zip
http://toolz.nexuizninjaz.com/modeling/ ... lender.zip

4a990247982ab06f7fabe6d2c2593b07 justscripts.zip 2.2M
2905bb2848776247e554ac3daa602b00 NexuizBlender.zip 13M

Taiyo.uk, the ones I downloaded from your mirror were corrupt, I had to grab them from that horrid share site, :me shudders:.


Can we download that exported, packaged model anywhere?
[-z-]
Site Admin and Nexuiz Ninja
 
Posts: 1794
Joined: Mon Nov 13, 2006 12:20 am
Location: Florida

Postby ihsan » Mon Apr 20, 2009 10:43 pm

[-z-] wrote:Can we download that exported, packaged model anywhere?

(didn't notice you wanted it)

It's almost pointless to put just 1 file in a pk3 so here's just the zym. Just drop it in Nexuiz/data/models/player/ and nexus has some surprisingly cool spikes. This was done so quickly that I didn't even bother to save the blend file so don't ask me 4 that.

Download from zshare http://www.zshare.net/download/58940512c90c3f8f/
ihsan
Alien trapper
 
Posts: 305
Joined: Fri Mar 03, 2006 3:33 pm
Location: Trinidad (Where Obama met Chavez)

Postby Taiyo.uk » Tue Apr 21, 2009 11:11 am

[-z-] wrote:I was wondering who posted those pictures on pics.nn! :-P
Taiyo.uk, the ones I downloaded from your mirror were corrupt, I had to grab them from that horrid share site, :me shudders:.

Oh bollocks!
I'll try uploading them again. :x

Edit:
Oh ffs. Filesizes are different when I upload them from work (ftp command in DOS prompt), I'll try again when I get a chance.
Taiyo.uk
Alien trapper
 
Posts: 436
Joined: Mon Apr 17, 2006 8:48 pm
Location: Reading, IN-GER-LUND!!!

Postby FruitieX » Mon Jul 20, 2009 12:55 pm

Someone stickify, maybe commit the scripts to svn if you get permission. They are extremely useful for mapping and modelling. :)
FruitieX
Keyboard killer
 
Posts: 588
Joined: Mon Nov 13, 2006 4:47 pm
Location: Finland

Postby ihsan » Tue Jul 21, 2009 6:31 pm

As far as I remember all the code I started with was GPL. It would be great if this was committed. Throw in the basePyria blender file also.
ihsan
Alien trapper
 
Posts: 305
Joined: Fri Mar 03, 2006 3:33 pm
Location: Trinidad (Where Obama met Chavez)

Postby toneddu2000 » Wed Jul 22, 2009 9:13 am

I think there's a lot of confusion about exporting zym's. I found somewhere(really, I can't remember where I downloaded! :D ) a script created by f0rqu3 that selects player and exports directly from blender in zym format!
It seems to work so my question is: is even necessary to use zmodel? Is not simpler just export player with this script?Masters please answer :D
toneddu2000
Alien trapper
 
Posts: 251
Joined: Mon Mar 09, 2009 7:56 pm
Location: Italy

Next

Return to Nexuiz - Editing

Who is online

Users browsing this forum: No registered users and 1 guest

cron