sidebar features
sidebar content

Go Back   Blender Artists Forums > General Forums > Python & Plugins

Closed Thread
 
Thread Tools
RipSting's Avatar
RipSting RipSting is offline
Donating Member
 
Join Date: Mar 2002
Location: Oregon, USA
Posts: 1,011
[color=yellow][size=7]Fiber Version 2[/size][/color]
It's here, and these are some of the new features:

Change log
2.03
  • Updates in Blender 2.33 make dynose obsolete.
2.02
  • Auto UV [CARD method] makes texturing easier, also has support for transparency,
    bumpmapping, ect.
2.01
  • Now fully platform-independent
  • GUI is compatible with Blender 2.28, complete with file selector
2.00
  • Use bezier curves to 'comb' hair
  • Wind and animation routines are back in (they were removed from 1.3)
  • Guide Fibers let you control the direction the fibers travel (See images)
  • Automatic detection of vertex paint, so no more errors!
  • All base meshes are stored in a file, so no need to have them selected anymore at runtime!
  • Optimized code runs faster and with fewer possible errors
  • Clumpy hair lets you make dreadlocks, mowhawks





An example of Fiber 2 using Bézier Fiber Guides

I haven't had much time recently to update the script because of school and work, but I'll get around to some major updates soon- I promise! There are still some known bugs in the script- mostly dealing with crashing when trying to rebuild fibers if the existing fibers have a material applied to them.

Download the script here:
http://www.orst.edu/~dennisa/Blender/Fiber2

For example images from my script, head over to http://oregonstate.edu/~dennisa/Blen...2/gallery.html
............................................
The vectors!
The vectors are all wrong!!!
#1   Old 28-Aug-03, 18:51   


DanielP DanielP is offline
Member
 
Join Date: Sep 2002
Location: Northern Germany
Posts: 259
JAH, MAAN! DREADLOCKS!

Downloading. See you all next week, when i finished playng with it..
Screenshot looks great, good work!

Daniel
#2   Old 28-Aug-03, 18:54   
kino kino is offline
 
Join Date: Mar 2002
Location: Italy
Posts: 257

WOOW
amazing

Thank's

kino
............................................
Blender & Opensource Italian community
#3   Old 28-Aug-03, 18:56   
Hippie's Avatar
Hippie Hippie is offline
Member
 
Join Date: Mar 2003
Location: Finland
Posts: 2,193
Great man...

I'm of to try this thing.
#4   Old 28-Aug-03, 19:02   
ezual's Avatar
ezual ezual is offline
 
Join Date: Jun 2003
Posts: 120
Great stuff! One killer script. Thanks

Blend On
#5   Old 28-Aug-03, 19:33   
garbager garbager is offline
Member
 
Join Date: Mar 2002
Posts: 219
INCREDIBLE !!!
I'm speechless in front of such a wonder !!
It contains EVERYTHING I wanted to see in a new version !
But (cause there's always a "but"), I've got a problem with the sliders.
I can't enter numéric value throught manual input. And also the sliders aren't following mouse cursor. they just increase of few decimals, then stop. So I have to move the sliders about an hundred time to increase of 20, for example.
Indication : I'm using Blender 2.28a, Python 2.23, and XP family version.
I hope it helps. Anyway, let me congratulate you for this AWESOME script. I had a lot of pleasure when using it on my first project.
I can say I'll get even more pleasure with it with my second...ooops...I've said nothing
GRATS GRATS GRATS again !!!!
#6   Old 28-Aug-03, 19:33   
RipSting's Avatar
RipSting RipSting is offline
Donating Member
 
Join Date: Mar 2002
Location: Oregon, USA
Posts: 1,011
Quote:
Originally Posted by garbager
I can't enter numéric value throught manual input
This is the only compatability problem I know of with 2.28. I wrote this script in 2.23, but the GUI doesn't like my code... The easiest solution for now is to download 2.23 from Blenderwars.

http://www.blenderwars.com/content.php?module=blenderdl
............................................
The vectors!
The vectors are all wrong!!!
#7   Old 28-Aug-03, 19:36   
garbager garbager is offline
Member
 
Join Date: Mar 2002
Posts: 219
It works fine with Blender 2.23 !
But is there any chance someday you'll make it compatible with 2.28a?
someday...?
plllleaaaaasssse ???
#8   Old 28-Aug-03, 19:49   
RipSting's Avatar
RipSting RipSting is offline
Donating Member
 
Join Date: Mar 2002
Location: Oregon, USA
Posts: 1,011
I'm definitly trying to find the cause of the problem. I'm trying to make it 100% compatible with 2.28, but I'm not sure how I'll have to change my code in order for it to work.
............................................
The vectors!
The vectors are all wrong!!!
#9   Old 28-Aug-03, 20:04   
garbager garbager is offline
Member
 
Join Date: Mar 2002
Posts: 219
Thanx Ripsting, that's wonderful !
#10   Old 28-Aug-03, 20:09   
DanielP DanielP is offline
Member
 
Join Date: Sep 2002
Location: Northern Germany
Posts: 259
when i try the demo-blend, select the grass.fib, hit create i get:

1494 faces predicted
Unable to read parameters. Please run the GUI first and make sure you have file creation permissions.
Traceback (most recent call last):
File "/home/daniel/Programme/blender-creator-2.23-linux-glibc2.1.2-i386-static/Fiber2GUI.py", line 195, in bevent
RunFiber()
File "/home/daniel/Programme/blender-creator-2.23-linux-glibc2.1.2-i386-static/Fiber2.py", line 381, in RunFiber
LoadPreset()
File "/home/daniel/Programme/blender-creator-2.23-linux-glibc2.1.2-i386-static/Fiber2.py", line 54, in LoadPreset
FVersion = readfloat(f)
UnboundLocalError: Local variable 'f' referenced before assignment


I tried every Blender from 223 to 228, python path is set...
Am i dumb?
#11   Old 28-Aug-03, 20:26   
Burt.S.'s Avatar
Burt.S. Burt.S. is offline
Member
 
Join Date: Aug 2003
Location: Europe
Posts: 826
Wonderfull job!

Now i can make good hairs for my warior.
#12   Old 28-Aug-03, 20:53   
paradox's Avatar
paradox paradox is offline
 
Join Date: Mar 2002
Location: Utah
Posts: 1,171
Great I'll be trying this soon. On the conversion to 228.a, jms has updated several scripts to 228 including, including the yablex and obj import script, maybe he can help you out. Thanks
Paradox
............................................
I listen to the beat of a different drummer.
#13   Old 28-Aug-03, 20:56   
jms's Avatar
jms jms is offline
Member
 
Join Date: Mar 2002
Location: PACA, France
Posts: 3,261
Quote:
Originally Posted by paradox
Great I'll be trying this soon. On the conversion to 228.a, jms has updated several scripts to 228 including, including the yablex and obj import script, maybe he can help you out. Thanks
Paradox
No need for help :
the script works perfectly well on 2.28a, just think to load the script
dynoise.py too and add a zero,

,0

at the end of each slider declaration.
............................................
Ze French Group : ZOO-Blender | Starter Kit Blender (livre en français)
Daily updated Bpy API | Ze best french tutorials site.
#14   Old 28-Aug-03, 22:33   
ilac ilac is offline
Member
 
Join Date: Mar 2002
Location: A little island... :o)
Posts: 267
Nice! The control curves realy do a nice job! Still have to try wind though!


You never said whether adding uv along the fibers would be possible on generation?



Anyway, Thanks! Really great stuff!
#15   Old 28-Aug-03, 23:18   
zaz zaz is offline
 
Join Date: Aug 2003
Posts: 265
Nice utility, thanks for your work.

A couple comments. First, if you could use os.sep instead of "\\" to do your path/filename manipulations, that'd make it a tad more platform independent. This would need to be changed in two places if you want to do it, Fiber2GUI.py and
Fiber2.py have similar sections of code:

#Get the current path and filename
a = Blender.Get("filename")
b = Blender.sys.dirname(a)
a = a.split("\\")[len(a.split("\\")) -1]
fname = b +"\\" + str(a.split(".")[0]) + ".fib"

add an "import os" to these files and change them similarly to:

#Get the current path and filename
a = Blender.Get("filename")
b = Blender.sys.dirname(a)
a = a.split(os.sep)[len(a.split(os.sep)) -1]
fname = b +os.sep + str(a.split(".")[0]) + ".fib"

Those changes ran under linux for me, but I didn't take the time to boot up a windoze box and try it out there.

The script seems to be very dependent on the actual size of the object. The model I tried it on was modeled at one blender unit == one foot. It didn't appear possible to get good results with my scalp at this scale. Scaling the scalp up by a factor of 10 and then applying Fiber2 against it made things work much better. There must be some assumed units to the density value as well as some other parameters. I'm not sure what the ultimate solution to this would be, unless perhaps you added a texture space button or something that would somewhat associate the density and other factors with the scale of the object.

Again, this can be worked around in most circumstances. I'm only trying to give you feedback on my use of the script.

I am running this under 2.28a and while the script works, I gave up on using the GUI directly. Doing SHIFT-LeftClick to assign variables and/or moving the sliders produces unpredictable, or at least unexpected, results. Sometimes variables other than what you are setting are modified, sometimes several are modified. Sorry, I haven't looked into this at all yet as it wasn't a show stopper for me, .

Since the load and save preset buttons worked, I edited the .fib file in emacs to change my parameters and was able to get it to work.
#16   Old 29-Aug-03, 01:28   
Metal3d's Avatar
Metal3d Metal3d is offline
Member
 
Join Date: Oct 2002
Location: Lyon (France)
Posts: 32
Donesn't works on Linux
228a and 2.25 tested

228a :
Path to fname not configured
lot of errors on console, when i give a name to fname:
Code:
Using a clean Global Dictionary. In Object_GetSelected() 1494 faces predicted RipSting's Fiber Generator v2.0, running on 1 object(s) Traceback (most recent call last): File "Fiber2GUI.py", line 195, in bevent RunFiber() File "/home/metal3d/blender2.28/blender/Fiber2.py", line 530, in RunFiber for x in range (FpF[fnum]): #loop for density in each poly IndexError: list index out of range
good luck
............................................
and Blender will ...
#17   Old 29-Aug-03, 01:29   
youngbatcat youngbatcat is offline
Member
 
Join Date: Mar 2002
Posts: 2,037
OSX 2.28 and 2.28a

Error Totblck: 2
button string len: 520 0x25878dc
button string len: 48 0x24e5cec

Blender quit
Using a clean Global Dictionary.
imported from text buffer...
In Object_GetSelected()
1494 faces predicted
Unable to read parameters. Please run the GUI first and make sure you have file creation permissions.
Traceback (most recent call last):
File "Fiber2GUI.py", line 195, in bevent
File "Fiber2.py", line 381, in RunFiber
File "Fiber2.py", line 54, in LoadPreset
UnboundLocalError: local variable 'f' referenced before assignment




Fiber 1.3 DID work after I but the diana.py file in the blender program. Did the same for this yet does not work...

^v^
#18   Old 29-Aug-03, 04:21   
EnV's Avatar
EnV EnV is offline
Member
 
Join Date: Sep 2002
Location: Back to Verona, Italy
Posts: 1,062
Amazing! Thanks RipSting!

Env
............................................
EnV
------------------------------------------------------
Time to start to change my signature and... err...
#19   Old 29-Aug-03, 05:46   
S68's Avatar
S68 S68 is offline
Member
 
Join Date: Mar 2002
Location: Florence - Italy
Posts: 5,663
Cool

Thanx a lot

Stefano
............................................
** You cannot make foolproof stuff - fools are too smart. **
#20   Old 29-Aug-03, 07:45   
Closed Thread

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 11:21.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Logo and website design copyright © 2006 by froodee design bureau. All rights reserved.
Other Blender Sites
new icon Blender Homepage »
The official Blender homepage
new icon BlenderNation »
Fresh Blender News, Every Day
new icon Blenderart Magazine »
Blender articles, tutorials and images.
Blender Headlines
Featured Artwork
Short animation: Barrel by Phlopper
Woolly mammoth by sebastian_k
Photorealistic classic furniture by eMirage
Social BlenderArtists