PDA

View Full Version : Zbrush fibers to splines in 3ds Max


moonjam
31-01-2012, 02:47 AM
Hello!

I've written a little macroscript for 3ds Max that converts the exported fiber geometry from Zbrush 4 R2b to splines.

http://www.moonjam.com/wp-content/gallery/fibermesh/fm_001.jpg
http://www.moonjam.com/wp-content/gallery/fibermesh/fm_002.jpg
http://www.moonjam.com/wp-content/gallery/fibermesh/fm_003.jpg

http://www.moonjam.com/CG/FiberMAX/AJ_FiberMesh.zip

To install it, either place the Macrosript in your 3ds Max scripts folder, or drag it onto your open 3ds Max window. Right click on a toolbar & choose ‘Customise’ from there you should find a new category titled ‘Zbrush4 R2b’ and in that an Action called ‘FiberMesh to Splines’, which you can then drag to a toolbar.

Once you’ve exported the fibers from Zbrush to 3ds Max via GoZ (or exporting), press the button on the toolbar & it should (hopefully) convert the polys to splines. I’m afraid I’ve only tested this in 3ds Max 2011 so far, so can’t guarantee it will work in other versions.

I'm not a coder so it's not very well written but hopefully useful to someone. Also, if someone who actually knows what they're doing wants to edit it to make it work faster/better then be my guest :D

Cheers!

AJ

nfuchs
31-01-2012, 04:59 AM
As I know, you are the 3rd one to provide a script/plugin to do this in Max...and the 2nd one to give it to the people for free.
Thank you! :)

Spatz
31-01-2012, 09:19 AM
thanks! :thumbsup:

moonjam
31-01-2012, 09:50 PM
As I know, you are the 3rd one to provide a script/plugin to do this in Max...and the 2nd one to give it to the people for free.Yep, I realise one more might seem like overkill :) but I liked the idea that a tool like this should be free & Wayne's script doesn't quite work how I'd peronally want it to (i.e. the splines are created from an edge - not the center of each fiber & the 'root' of each spline has an extra edge at 90 degrees to the surface). It's also little cumbersome/slow on denser meshes, so this one should be slightly faster (hopefully!).

Storm
31-01-2012, 09:56 PM
This is awesome, now we just need a brilliant mind to make a maya version :)

moonjam
31-01-2012, 10:29 PM
Tada!

http://www.zbrushcentral.com/showthread.php?165778-Fibermesh-script-for-maya-%28slow-but-free%29

http://www.zbrushcentral.com/showthread.php?165789-Fibers-to-Maya-curves-%28python-plugin%29

:D

Storm
31-01-2012, 11:00 PM
Haha, awesome thanks!
Been working with shave and hair around one week now, but I don't think I can afford a license for my home computer, so hopefully this could be a solution :D

Aleph
01-02-2012, 05:50 AM
Thanks moonjam for your generosity!

Edit: Have any tips for rendering FiberMesh in vray? Having trouble getting it to look exactly like it does in zbrush. Thanks.

moonjam
02-02-2012, 02:27 AM
Hi Emanuel,

I'm afraid I've not had much experience rendering hair in V-ray. I'm hoping to give Ornatrix a go soon - what hair solution are you using?

Aleph
02-02-2012, 12:58 PM
Well haven't tried any 3rd party hair solutions yet. Was just seeing if there was a easy way to render out the hair with vray. Maybe i'll check out Ornatrix 1.8.

phrenzy84
02-02-2012, 06:44 PM
Are there any version that just convert them into obj format?I use Houdini primarily.

moonjam
02-02-2012, 09:03 PM
Marius Silaghi has written a standalone converter

http://www.mariussilaghi.com/fibermeshsplinesstanalone.htm

However it's €20 & I'm not sure if Houdini can import OBJ splines.

phrenzy84
03-02-2012, 01:02 AM
Ahh thanks. I will check it out.

Yep Hoduini can import obj spines :). I did it with blenders Hair system, i did rebuild the curves so they were nurbs curves instead of polyspines, but thats easy for H to do procedurally. :)