Rock Generator

264 votes
Version: 
1.0
Date Updated: 
08/06/2010
Author Name: 
Alessandro Ardolino

aa_rockGen 1.0 - maxscript procedural rock generator for production and real time environments.

Additional Info: 

aa_rockGen 1.0 - maxscript

procedural rock generator for production and real time environments.

-rock presets
-tweak-able parameters
-automatic low poly mesh generation, with bake-ready UVs
-normal and AO map generation

the script is now available for download.
tha script can be used for both personal and commercial purpose,
I you like it and found it useful, just let me know and let me see
some results :)

inspired by a tutorial of Sasha Henrichs published on Autodesk AREA.
you can find the original tutorial here: http://saschahenrichs.blogspot.com/2010/03/3dsmax-environment-modeling-1...

Video URL: 
AttachmentSize
aa_rockgenerator1x0.mse16.04 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
alelink's picture

have you created the low poly

have you created the low poly mesh?

trixian's picture

I have not renamed anything.

I have not renamed anything. I hit create and then bake. Am I the only one that gets this error? It works fine on the stone placement tool.

alelink's picture

wow! what a wonderful color

wow! what a wonderful color texture :)

EvilReFlex's picture

Realy usefull script, thanks

Realy usefull script, thanks for sharing it!

Here is a finished rock what I have made with your script:
http://www.huizkistn.at/rumplkistn/models/rocks_test2_1.jpg

aphexx's picture

great script! thank you

great script! thank you alessandro!

alelink's picture

hello, the script uses the

hello,
the script uses the object's name to performs all the tasks.

So, have you changed the name of the rock? should be rock001 if I'm not wrong...please let me know.

this error does not depends by the current renderer.
Maxscript does not perform any operation after an error, so you need to restart the script...

trixian's picture

Having problems with baking

Having problems with baking maps. Hitting the Bake button throws an error "--No ""select"" function for undefined" and disables any further interaction with the script ui (needs to be closed and restarted).

This happens regardless of what renderer i have assigned, or wether ihave the rock selected or not.

This in using max2011 64bit on xp64.

alelink's picture

@mahreeooce: thanks for the

@mahreeooce:
thanks for the detailed explaination you gave to dreamco.

I've developed the script and tested it only in 3dsMax 2011, maybe it's changed the way the smooth normal modifier is called from max 2009 :)

mahreeooce's picture

@dreamco Copy the script (the

@dreamco

Copy the script (the .mse file) in your 3ds max/ui/macroscripts directory. Then make a new text file in the same directory and paste this in (down to the final bracket):

macroScript RockGenerator category:"aa_stoneworks" buttonText:"RockGenerator" toolTip:"Rock Generator" silenterrors:true
(
on execute do(
filein ((getDir #UI) + "\\MacroScripts\\aa_rockgenerator1x0.mse")
)

)

Save the text file and change it's extension from .txt to .mcr
After this, restart max (in case you had it open), right-click on a toolbar, choose customize (you should already be on the toolbars tab) and find the category "aa_stoneworks" - in that category you should find the script which you can drag onto a toolbar for quick access.

Oh, and thanks, alelink, for this great script. On a side not - it gives an error in max 2009 when trying to generate the low-poly mesh - "Runtime error: No such macro-script: Smooth". It doesn't have this problem in 2011.

dreamco's picture

I can't create a UI button

I can't create a UI button for it :(

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.