Adverti horiz upsell

Voxelizer 1.0.0 for Maya (maya script)

Converts meshes to voxels.

License
Button download
4,290 Downloads

Compatibility

  • 2010, 2009, 2008

Operating Systems

  • Irix
  • Linux
  • Mac
  • Solaris
  • Windows

History

Created:07/03/2010
Last Modified:07/03/2010
File Size: 20.4 KB

Keywords

voxels

Q/A

How to make this script faster for your computer

Date:04/18/2014
Submitted by: Caetano Veyssières Caetano Veyssières
This script is really great, but works only with low resolution, if you use it with more cubes and a 100 frames animation, it blows up your computer.

We could simplify the result :

Let's voxelize this sphere:



Now we can combine the cubes and remove the inner part that we don't see, as this section shows:

comparison between voxelized and simplified sphere

What for the texture?

Let's take this skull model:

3D model

And do the same,  as this section shows :

comparison between voxelized and simplified skull

With a Batch bake, we can make this single texture:

http://img11.hostingpics.net/pics/422850Singleobjectcolor.png

And now we only have one object and one texture per frame instead of hundreds per frame.

The question is: How to script this?

Now it's beyond my knowledge.

Some help would be greatly appreciated.

Replies to this question:

  • Caetano Veyssières

    Caetano Veyssières said almost 11 years ago:

    I think I found another problem in this script : Instead of setting keyframes on "visibility" it keyframes "scale" (zero when invisible), which means that each frame, maya loads every cube, that's why it takes so long to do any modification. I tried to replace "scale" by "visibility" at the right places in the script (not everywhere it's written, for example not in "scaleControl") Then the keys are effectively moved to visibility, but somehow, no cube appears, even if visibility is "on". I don't know why. If someone succeeds let me know. However, I still maintain that this script is great work, and I guess Meetar (the owner) knows about this "scale" stuff and did it for a good reason. Even though, I'd like to know why and how could we improve it.

Post a reply: