View Full Version : 3D Grid Effect

denisT
06 June 2011, 11:47 AM
i would use a script to create the spline geometry, and skin or ffd modifier to animate its deformation.

Furball89
06 June 2011, 12:06 PM
Thanks for the reply!
yea I am using splines! the script creates splines and then uses linked xform modifier to link the splines knot points to point helpers (i got the idea from maxscript help file topic "Passing SplineShape Knot Selections Up The Stack" but this method takes lot of time to create the stack for multiple knot points, isn't there any fast way to link a knot point to a point helper?)! i tried using spline ik modifier but the problem with it is, you have to create separate point helpers for each spline!... Will give animating the FDD vertices a shot! i think the "animate vertex" or something method is used for that (have to check mx help!).

elT
06 June 2011, 12:39 PM
Not that i want to discourage you from scripting it, by all means, go ahead and have fun!

But, have you tried using box primitives and adding lattice modifier?

I've just tested it, the trick is to use symmetry modifier wisely and position the mirror precisely.

Try it on a simple 2x2x2 grid and if you like the result, expand as needed.

Create a box dimensions: h:10, w: 20, l: 10, segments: h:1, w: 2, l:1
position x:0, y: 5, z: 0
add modifier lattice: adjust radius and segments, turn of joints
collapse the stack
add symmetry modifer, use Y axis, positon the mirror to [0,0,0] in world space
add another symetry, use Z axis, positon the miror to [0,0,5] in world space.
collapse stack.

And you've got your 2x2x2 grid.

For larger grids and more segments simply create a wider box primitve with more segments and use additional symmetry modifier to reach the full volume.

just my 2 cents.

Cheers!

elT
06 June 2011, 12:51 PM
Even better, you can use a plane, extrude it by polygon and add lattice on top. Collapse stack and it's done. :)

Furball89
06 June 2011, 12:54 PM
Thanks for the reply!

please watch the link i posted in my first post, i want to animate the grid expanding radially as well, lattice modifier will only give me the grid! i tried using the "spherify" modifier, it obviously din't work, heh i have tried so many methods for this simple effect lol! been playing with fdd now, some problems i am facing, the control points are offset! i.e they are not centered to the origin (and they are normalized too!!) by default even though the object and the lattice transforms are set to (matrix3 1, or identity matrix) :S (no big deal can perform my computation and re transform the fdd points back, i guess!) also how can i loop through each control point !?! i am using the execute method like so:

fddSize = 3
for i = 1 to (fddSize*fddSize*fddSize) do (
cp = execute ("\$.modifiers[1].control_point_" + (i as string))
point pos:(cp * [140,140,140])
)

but there is an easier, more elegant, way right!? (i am modifying the control points directly for testing, i will write the positions to there controllers later, oh or better still, just use the animate context)

thanks for the help :)

elT
06 June 2011, 01:23 PM
After modeling the grid, you should reset x form, center the pivot, align to world and definitely collapse the stack. You can then easily use ffd to expand it any way you want it.

This was done in 5 minutes.

http://imageshack.us/photo/my-images/215/gridy.png/

A 20x20x20 grid.

Created a plane 200x200, segments 20x20. Selected all edged and clicked split. Selected all polygons, and extruded by polygon, 10 units, clicked apply 20 times. Selected all vertices, click weld. Collapse stack. Add Lattice, use Struts only, radius 0.1. Collapse stack, reset x form, collapse again, apply 3x3x3 FFD and deform. Works like a charm.

Just saying.

Furball89
06 June 2011, 01:54 PM
Thanks for the reply!

Created a plane 200x200, segments 20x20. Selected all edged and clicked split. Selected all polygons, and extruded by polygon, 10 units, clicked apply 20 times. Selected all vertices, click weld. Collapse stack. Add Lattice, use Struts only, radius 0.1. Collapse stack, reset x form, collapse again, apply 3x3x3 FFD and deform. Works like a charm.

Thanks for this! you the best! :thumbsup:.

elT
06 June 2011, 02:03 PM
Glad I could help. :)

MatanH
06 June 2011, 04:34 PM
You could use a displace object with sphere mapping and decay

CGTalk Moderation
06 June 2011, 04:34 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.

1