The Globes and the Dimples
 1-20  21-40  41-44

Next
 From:  anthony
979.1 
I always wanted to model a golfball with nurbs (instead of plain old polygons) and, thanks to MoI, finally got around to doing it.

Here's the mandatory object-in-the-cornell-box, global-illumination render that lets the viewer get a feel for the object. Sunflow's render time was only 4 minutes, with one-bounce path-tracing. There's no need for a multi-day, unbiased MLT render (like Maxwell or Indigo) in this situation.


Here's the money-shot, complete with focal blur and GI. This scene has about 17 million faces. I modified the export script to handle Blender's linked-duplicates. Render time was around 23 minutes with Sunflow (SVN version).


I wrote a custom import script that handles true normals and real-time UV coords. It also adds some pretty cool vertex colors that simulates the global-illumination from a hemisphere. The light value is calculated from the true vertex normal not the average of the face normals that surround a vertex. Most graphic cards can do this calculation in real-time. Too bad MoI doesn't have this vertex shader yet.


The animated GIF below shows the difference between my importer and the standard ones that ignore MoI's true normals. This may be an extreme case, but it clearly illustrates the importance of using the actual normals. Warning: Do not edit your imported mesh (i.e., press TAB) or the normals will be recalculated.

I highly recommend the use of my importer when using Blender & MoI. You can download it for free here:
http://home.comcast.net/~gamma-ray/moi/import_moi.py

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
979.2 In reply to 979.1 
Hi Anthony - thanks for sharing all this, wow those are some gorgeous looking results! Great shot with the focal blur.

The simulated hemisphere lighting looks really nice, I want to try several different display options for v2, I should be able to incorporate something along those lines.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Marc (TELLIER)
979.3 
Thanks for the script, looks great!

How did you construct your ball, with arrays?

EDITED: 3 Oct 2007 by TELLIER

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  TwinSnakes
979.4 
Thanks what I was wondering too, how did you make the golf ball?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  anthony
979.5 In reply to 979.4 
It's hard to describe with words, but here goes.

Base Shape
The ball was constructed by first creating an icosahedron from scratch. I used the arc tool with the center at the origin, the start at 0,0,1 and the end at 2,0,1. This gives you a perfect arc along one edge of an icosahedron with an angle of atan(0.5) or 26.565 degrees. Then just array these arcs into place.

Dimples
Next create one dimple by scaling a small sphere along one axis. Then use curve-array and select one of the arcs to arrange the dimple along that path. You'll need some more arcs that cross over the surface from one edge to the next. And do some more "curve-arraying" to create the dimples in the middle.

Cutting
Once all the dimples are in place do a boolean subtract with a unit sphere to cut them out. This operation took about 10 minutes on my PC and it looked as if MoI locked up, but it was actually working hard to calculate all the intersections and stuff like that. This operation failed to include all the dimples -- some were simply ignored for some reason. I was able to resolve this by scaling up by a factor of 10. I read this tip in one of the posts here.

Smoothing
Then, and this is important, select the sharp edges and fillet them with a G2 Blend not Circular. This rounds off the edges and makes the ball look better. I also had problems here because the fillet would fail with the radius that I needed. And some dimples were ignored again even with a very small radius. And those dimples didn't lie on a visible border either.

I may have left out a few things, but that's the basic workflow. In the end I resorted to modeling one section (i.e., one face of the icosahedron) and arraying them into place. After joining all 20 pieces, boolean ops no longer worked. This is not what I wanted. I'll have to go back and try to model it as one piece so I can do a cut-away rendering.

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
979.6 In reply to 979.5 
Just a little question for a newbee golfer:)
All golf ball have the same number of dimples or there exist some different model?

Else cool tut!
I will try to find another solution for the fun :)
---
Pilou
Is beautiful that please without concept!
My Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  anthony
979.7 In reply to 979.6 
They have different numbers and different patterns.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Marc (TELLIER)
979.8 
Wow, this is quite impressive!

Thanks for taking the time to describe your process.

I imagine there is many ways to do this, I initially though you have used small spheres in an array following 3d spiral curve.

It interested me because I have a white cell (immune system) project to illustrate, which somewhat share a similar construction, being objects scattered around a sphere.

I'll probably end up drawing it manually... :-)

-Marc
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Message 979.9 deleted 5 Oct 2007 by SK2K

Previous
Next
 From:  anthony
979.10 In reply to 979.8 
Thanks. The spiral curve approach could work, but I haven't seen that pattern on a real golfball. But it may eliminate most of the problems I had during modeling.

You could also use MoI. Just model the cell, then snap lil spheres to the surface. Here's a post by MG that shows how to make a blobby-cel shape:

http://www.moi3d.com/forum/index.php?webtag=MOI&msg=415.2
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  andras
979.11 In reply to 979.1 
helo

Why do I get "check console" blender message?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
979.12 In reply to 979.11 
Hi Andras, I think that Anthony's blender import script needs to have the "Weld vertices along edges" option in MoI turned off when you export, otherwise it will try to put up a warning message. My guess is that is what is happening to you.

In MoI expand the mesh options dialog by using the arrow in the lower-left corner, and uncheck that option, and then you should be able to use that mesh data with Anthony's script.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  rob (WAVEZ)
979.13 
This is really fantastic. It looks like I just might be using this importer script for my characters. To get OBJ imported models to look right I learned that I had to give the model an Edge Split modifier, which helped a lot.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  anthony
979.14 In reply to 979.13 
Thanks. Just remember that if you apply the EdgeSplit or any other modifier, the true normals will be deleted, and averaged normals will be calculated. This will defeat the purpose of my script.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  andras
979.15 In reply to 979.12 
Thanks Michael it is work.
(just if I use only N-gons some faces will be missed but if I use only Triangles than it is perfect)
thanks!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Richard (RUSIRIUS)
979.16 
Sweet plug-in anthony! Works great.

Thank you :)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Alain
979.17 
Hi Anthony
Thanks for this plugin.

It seems that I'm to stupid to get good results with it.
I just tested it with a freeform surface, used "N-gons" and turned off "weld vertices along edges" and "Angle" is 12 (degree?), see "Freiflaechentest_N-Gones_001.jpg".
One test is with "triangles only" insteat of "N-gons", see "Freiflaechentest_only_triangles_002.jpg".

I love Moi but it would be useless for me if I never can import proper models from moi into another 3d software like blender.

I hope somebody can help me for a proper export-import process ?


Kind regards
Alain











  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
979.18 In reply to 979.17 
Hi Alain, that's the kind of shading problems that you can see if vertex normals are not being imported properly.

Are you sure you are using Anthony's importer?

One thing to note is that after installing Anthony's importer, you must pick it off of the import list separate from the default LWO importer which will still show up there.

Anthony's one is labeled MoI with Normals, as shown below. Make sure to pick that one and not the default LWO importer.

Also if you can post the 3DM model file of the thing you are trying to export, that would make it easier for me to test with it directly and show you what to do.



- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
979.19 In reply to 979.17 
Hi Alain, also you can try the OBJ importer from this post:
http://moi3d.com/forum/index.php?webtag=MOI&msg=3164.11

The default OBJ importer for Blender was throwing away the vertex normals at the end of the load, I modified the one in the post above to maintain the vertex normals which helps to get much nicer smooth shading.


You may also want to use the "Divide larger than" parameter in the meshing options, to force some additional divisions of the polygons in your model there. When you have triangles that span a pretty large length of the model that can tend to make for more rendering artifacts.

If you enter in a distance value for "Divide larger than", any polygons larger than that distance will be broken down into smaller pieces which tends to render better even without vertex normals being present.

If you post your model, I'll show you an example with it.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Alain
979.20 
Hi Michael

Thanks for your quick answer :)

Yes I use the importscript as you discribed it.
Here is the *.3dm file.

I hope it helps.


Alain

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
Show messages:  1-20  21-40  41-44