Real-time fur/hair/grass creation.

Apprentice
Posts: 18
Joined: 2005.10
Post: #1
I stsrted up a thread on this subject over at cgtalk.com in the game modeling thread.It may be of interest to some here.

http://forums.cgsociety.org/showthread.php?t=304996
Quote this message in a reply
Sage
Posts: 1,199
Joined: 2004.10
Post: #2
I wish I knew Japanese.

Anyway, the fur interests me less than a couple other parts. First, how do they do the blurred distant background? Is it pre-rendered? Or are they doing something fancy, like rendering the background into a low-res texture, blurring it, and then drawing it behind everything else?

Same with the bloom effect. I didn't know the PS2 could run a blur on a texture. Of course, I don't know anything about the PS2's hardware, but still, I'm impressed.
Quote this message in a reply
Member
Posts: 269
Joined: 2005.04
Post: #3
TomorrowPlusX Wrote:I wish I knew Japanese.

Anyway, the fur interests me less than a couple other parts. First, how do they do the blurred distant background? Is it pre-rendered? Or are they doing something fancy, like rendering the background into a low-res texture, blurring it, and then drawing it behind everything else?

Same with the bloom effect. I didn't know the PS2 could run a blur on a texture. Of course, I don't know anything about the PS2's hardware, but still, I'm impressed.

http://www.beyond3d.com/forum/showpost.p...stcount=18

None of it is terribly revolutionary. And quite frankly, the fur looks like ass, as that's how all fur done with the shell/fin method looks.
Quote this message in a reply
Member
Posts: 21
Joined: 2003.01
Post: #4
GLSL Shaders anyone? I'm no expert, but I've seen a GLSL pixel shader that made fuzzy fur on any kind of mesh. GLUT fuzzy teapots and all. I found this link for ATI specific extensions but you may be able to work it into GLSL.

http://cgi3.tky.3web.ne.jp/~tkano/
Quote this message in a reply
Moderator
Posts: 771
Joined: 2003.04
Post: #5
Here is another translation, it includes all the pictures & thumbnails of the original article, along with captions, so it is easier to follow than the translation on the forum post.

http://www.dyingduck.com/sotc/making_of_sotc.html

As Bachus says though, nothing really revolutionary - the outdoors scenes look nice, and so does the fur (from a distance), but it is still a pretty "common" set of techniques.
Quote this message in a reply
Sage
Posts: 1,232
Joined: 2002.10
Post: #6
psyba Wrote:GLSL Shaders anyone? I'm no expert, but I've seen a GLSL pixel shader that made fuzzy fur on any kind of mesh.

You can do shells and fins without any sort of shaders. Much less GLSL.
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #7
http://onesadcookie.com/~keith/fur10.zip is a port of a (now ancient) PC fur demo. It ran OK-ish on a Rage 128, so it should scream on anything even relatively recent.

[edit]needs an "unsigned" at the start of line 90 of texture.h to compile with Xcode 2.2. Read the ReadMe for keys. Play with constants near the top of fur.c for amusement value.[/edit]
Quote this message in a reply
Moderator
Posts: 3,577
Joined: 2003.06
Post: #8
Very cool demo! I've never seen fur in real-time that I can recall. It looks surprisingly good. I'm not sure the fins really add anything since the shells seem to do the trick all on their own IMHO.

Strangely (or not so strangely with Xcode sometimes), changing to unsigned char didn't fix the problem right away. For some reason Xcode simply couldn't get it out of its brain that the problem had been fixed. I tried cleaning the project and it still refused to see reality. After trying to build it and changing a couple different lines to trip it up it finally picked up the correction. Weird! I don't think that's the first time I've encountered that happening.
Quote this message in a reply
Member
Posts: 196
Joined: 2003.10
Post: #9
Fun little Demo. Can't wait for TomorrowPlusX to implement this. Seems he always manages to get way cool generative graphics effects working in his engine.
Quote this message in a reply
Moderator
Posts: 1,140
Joined: 2005.07
Post: #10
I can't compile it in XCode. It says that
Command /Developer/Private/jam failed with exit code 1

This is with XCode 2.2 on OS X 10.4.4. I looked through all the build settings, but I don't know what it's breaking on. Sad
Quote this message in a reply
Moderator
Posts: 522
Joined: 2002.04
Post: #11
What do the detailed build results say?
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #12
It's got -Werror set, and contains a warning (new for GCC 4.x I think), therefore doesn't build. See the edit to my original post for the fix.
Quote this message in a reply
Apprentice
Posts: 18
Joined: 2005.10
Post: #13
http://www.gamasutra.com/education/these...d_01.shtml

There is a 50+ page pdf at the link on realtime fur creation, including the coding on making a few creation and viewer apps.Very interesting.
Quote this message in a reply
Moderator
Posts: 1,140
Joined: 2005.07
Post: #14
Works now. Quite a nice effect.
Quote this message in a reply
Apprentice
Posts: 18
Joined: 2005.10
Post: #15
They used that type of fur creation for the new KingKong videogame as well, not as good looking as in Shadows of the colossus though.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  what kind of tool did they use for toca boca hair salon 2 ? asweare 0 2,357 Aug 29, 2013 02:13 AM
Last Post: asweare
  2D graphics creation ferum 13 7,973 Mar 5, 2008 03:29 PM
Last Post: Frank C.
  2D image creation? BinarySpike 8 5,013 Jul 27, 2005 05:31 PM
Last Post: Buzzboy_109
  Font creation. Shivers 6 3,903 Oct 5, 2003 09:16 PM
Last Post: Shivers