View Full Version : Cellular Automata
06-17-2005, 06:10 AM
Does anyone know if it is possible to do a simple cellular automata kind of thing with mel and/or expressions in maya shaders?
Here's some examples of the kind of thing I am talking about:
Any hints, tips, or existing code snippets helpful.
06-17-2005, 07:04 AM
I gues you know the work of Kenneth Huff (http://www.itgoesboing.com/)?
Yu might also read the story on the Body story on www.jackals-forge.com/
and download AM LSystem v3.0 (http://www.highend3d.com/files/dl.3d?group=mayaplugins&file_loc=LSystemV3-Release-v3.0-.zip&file_id=107) from highend3D.
06-17-2005, 07:33 PM
Pretty cool stuff. I havent tried doing anything with Maya shaders, but in my spare time I have written quite a few scripts for creating massive amounts of random geometry in Maya.
Ill post some images and a script or 2 anyone is curious.
06-23-2005, 08:43 AM
As mentioned at a similar post, a 2D fluid should do the trick.
Check out the attached scene.
The densitiy of the fluid is controlled by an expression (sloppy coding, but consider this more a proof of concept then anything done). Frame 0 will populate the "cells" (voxels) of the fluid with red or green randomly (you can set the resolution to anything you like, as long as x/y is equal and larger then 2*2). From frame 1 and out they will battle it out. The "fighting" is basically a flip of a coin between cells of different color (they can make 1 legal move each frame), and the one who wins turns the other into its color.
To show that fluids work as any other texture, the fluid is mapped to incandesans of one shader, and bump of another.
You could of course use the fluid to drive all matter of things...particles...lighs...etc
06-28-2005, 09:09 AM
Thank you so much...this is enlightening. :thumbsup:
06-28-2005, 09:09 AM
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.
vBulletin v3.0.5, Copyright ©2000-2014, Jelsoft Enterprises Ltd.