Maxscript Help - Final Year Project:- Voxel Explosion

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  03 March 2013
Post Maxscript Help - Final Year Project:- Voxel Explosion

Hi there guys,
I'm new here and definitely a newbie when it comes to MAX Scripting. I'm current undertaking my final year in University and require assistance for my required script to help me animate my Final Major Project.

My protagonist is chased, as as he flee's the environment around him combusts into voxels, similar to the deaths in "Disney's TRON".
See here: http://www.youtube.com/watch?v=twEiQxxEyog @ 1:30

The environment is build out of hundreds cubes and thus I require each cube to explode into miniature cubes. Here is my proposed idea but i'm not sure how to go about scripting it:

Create a box

Name that Box "ParentBox"

Create 30 boxes inside of "ParentBox"

Name those Boxes "ChildBox_n" where n = PreviousBox + 1

/Eg. Childbox_14 = ChildBox_13 + 1



Animate ParentBox to Shrink for 50 frames

Delete ParentBox

Animate ChildBoxes to Translate, Rotate and Scale in X,Y,Z Axis for 100 Frames

Translate = 0 +/- 30 Units
Rotate = 0 +/- 360 Degrees
Scale = 0 +/- 2 Units

Delete ChildBoxes after 100 Frames

End Script


Any help or advice would be much appreciated and credited appropriately in my animation. (Unless you want to remain anonymous)

Many thanks,
Ryan a.k.a. StripySniper
 
  03 March 2013
I think you can do this easier, unless using maxscript is a requirement, you can fill a volume (your environemt objects) with small cubes using particle flow and then just set a wind force in the middle of it all to a high value and cubes will fly around..

If you want correct physics you can use particleflow as well, if you on subs (or wait for max2014 to become availabe) you can use mParticles to create a physical correct animation as seen in the end of your example where it all falls to the floor. Things like this: http://www.youtube.com/watch?v=pEmNDj3QljM are quite an easy thing to do actually.

(edit: So your quickly swap your solid environment with the filled voxel volumes at time of explosion.)


And check scriptspot.com, there are numerous voxel scripts around there to get some inspiration from.
__________________
The GPU revolution will not be rasterized! - http://www.jdbgraphics.nl

Last edited by jonadb : 03 March 2013 at 07:11 PM.
 
  03 March 2013
Also some inspirations you can find here
__________________
Looking in the right side. [bgaTools]
 
  03 March 2013
Thread automatically closed

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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 07:36 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.