Anim8or Community

• October 20, 2018, 04:18:49 pm
• Welcome, Guest

News:

An update to Anim8or, v1.00b, is available with a few bug fixes. Get your copy HERE. See the "ReadMe" file for details.

Pages: [1]

AuthorTopic: Magnet Tools Package  (Read 7092 times)

Francesco

• Full Member
• Posts: 182
Magnet Tools Package
« on: November 20, 2008, 02:03:02 am »

[ Last Package Update: 2008, Nov. 20th ]

Well, I think that after releasing this package I could take a break from ASL and dedicate my time to learn modelling, I severely need it.

Sorry for opening another topic, but once again I made quite some changes to the scripts, filenaming included, so I decided to post them separately, to avoid any confusion.

The attached zip contains the following files:
1 - Magnet Sphere.a8s
2 - Magnet Sphere Autodivide.a8s
3 - Magnet Cube.a8s
4 - Magnet Mesh.a8s
5 - Magnet Mesh Autodivide.a8s
6 - Magnet Mesh World.a8s
7 - Magnet Mesh + Origin.a8s
8 - Magnet Mesh + Range.a8s
9 - Align Cube.a8s
10 - Align Mesh.a8s

All the scripts share the same "mag", "mag-xy" etc naming convention.
Align scripts use "ali" instead of "mag".

Some details:

Magnet Sphere.a8s
Magnet Sphere Autodivide.a8s
-- The original spherical magnet, with separate push/pull modes, the second
version subdivides the faces of mesh01 as you enlarge them.

Magnet Cube.a8s
-- The same of the Magnet Sphere, but here you use a cube converted to mesh.
You can n-scale the cube like a plane and use this script to flatten some faces on a mesh. You can also n-scale the cube as a pillar and use it to align some points on a line. Alignments are best done in pull mode, using one axis (to flatten points on a plane) or two axes (to align points on a line).

Align Cube.a8s
--- Same results of the Magnet Cube script except that this one aligns entire meshes by their origins. Align scripts use "ali" instead of "mag".

Both Cube scripts differ from all the others because the changes are made on the cube axes and not on the world coordinates.

These replace the "polimagnet" script:

Magnet Mesh.a8s
-- Checks if the points of mesh01 fall between the magnet's origin and the magnet's faces.

Magnet Mesh Autodivide.a8s
-- Same as above but subdividing "mesh01" in the same way of the Magnet Sphere Autodivide script.

Align Mesh.a8s
-- Same results of the Magnet Mesh but this time moving entire meshes by their origins. I tried it to align a wood of trees on top of a terrain, you can see the picture in the second post of this thread. Align scripts use "ali" instead of "mag".

Magnet Mesh World.a8s
-- Checks if the points of mesh01 fall between the world's origin and the magnet's faces.

Magnet Mesh + Origin.a8s
-- Checks if the points of mesh01 fall between the center of a sphere named "origin" and the magnet's faces.

Magnet Mesh + Range.a8s
-- Checks if the points of mesh01 fall between the center of a sphere named "range" and the magnet's faces, but only points and faces falling into that range sphere are considered.

-- Contains all the instructions to run the scripts.

For the people who is seeing these scripts for the first time, you can take a look to their evolution in this thread:
Old Magnet Tool

There you can find some other ideas which have been implemented on the road but which have been left out in this release. The old, buggy and slow scripts are still there, if you care to know.

Also, that thread contains some examples of what can be done with these scripts.

I hope you'll find this package useful, I look forward to read your comments and critics, as well as to see some snapshot of the works you will eventually make using these tools.

Thank you for your attention, wish you lots of fun with Anim8or.
« Last Edit: November 20, 2008, 05:47:07 pm by Francesco »
Logged

Francesco

• Full Member
• Posts: 182
Re: Magnet Tools Package
« Reply #1 on: November 20, 2008, 05:42:46 pm »

I've updated the package above adding some Magnet scripts and two Align scripts. Here below you can see the render of a wood, where the trees have been fit on the terrain using the Align Mesh script.
Logged

neirao

• Sr. Member
• Posts: 605
• Neirao
Re: Magnet Tools Package
« Reply #2 on: November 20, 2008, 07:56:53 pm »

Hi Francesco.. AHH NOW YEESS!
the "Magnet Tools Package"  is VERY EASY TO UNDERSTAND!

Now you organized and properly explained!
Congratulations!!

my sample, using your script :

I make simple Flash animation of this cloth using one MORPH TARGET:
http://img148.imageshack.us/my.php?image=clothcn1.swf

Congratulations for GREAT SCRIPT..its is very usefull !!
Neirao
« Last Edit: November 20, 2008, 09:45:38 pm by neirao »
Logged

mcheccyb

• Full Member
• Posts: 173
Re: Magnet Tools Package
« Reply #3 on: November 20, 2008, 08:36:05 pm »

it doesn't actually work like cloth though

cloth retains the same surface area, thus causing it to crease instead of stretch
Logged

neirao

• Sr. Member
• Posts: 605
• Neirao
Re: Magnet Tools Package
« Reply #4 on: November 20, 2008, 08:51:51 pm »

yes mcheccyb, no perfect cloth..but we adjust manuality..
dont have "gravity" like a real cloth..

but is usefull for make "Displace Meshs"

neirao
Logged

mcheccyb

• Full Member
• Posts: 173
Re: Magnet Tools Package
« Reply #5 on: November 20, 2008, 09:00:10 pm »

yes, it looks very cool
Logged

Francesco

• Full Member
• Posts: 182
Re: Magnet Tools Package
« Reply #6 on: November 20, 2008, 10:33:56 pm »

Hey Neirao I'm really glad to see your example posted here, thank's a lot my friend, you help me illustrate the way my scripts work, and your images are always source of inspiration for improving the scripts. I'm also glad you found it properly explained and easily useable, seems I hit my purpose.

I do agree with you mcheccyb, this is far from being a real clothing tool, and if I get my hands on the right math surfing the net, I'll do my best to put it in a script.

I believe that works like this could be achieved using the magnet tools - but don't ask me if it can be faster or easier, I have no grip on modelling techniques whatsoever - yeah, some grip on coding, but creating these scripts made me feel dumb.

Looking forward for your feedback, have good time people and thanks again.
« Last Edit: November 20, 2008, 10:37:29 pm by Francesco »
Logged

• Sr. Member
• Posts: 600
Re: Magnet Tools Package
« Reply #7 on: November 24, 2008, 11:59:11 pm »

great work Francesco. I can see it will be good for doing animated footsteps in snow etc.

Thanks again

Logged

Francesco

• Full Member
• Posts: 182
Re: Magnet Tools Package
« Reply #8 on: November 25, 2008, 11:11:10 am »

Thank you headwax, you know, I started all this stuff with the crazy idea of using these tools to model, but after reading the tutorial on box modelling that you pointed out now I realize how silly that idea was. I made some box modelling and I'll show them in the wip forum. Anyway animated footsteps are a nice idea, thank you for pointing out another usage of these scripts, I'm going to give a try at them.
Have fun and thanks again headwax, glad you found the script useful.
Logged
Pages: [1]