This script generates maps based on the collision of an object with another object...i've included a pdf help file with it.
Imagin a dirty character hand touches the wall it will leave some dirt on it...or may be a character walking on sand his feet will leave marks on the ground...you can use it in many things.

Comments (20)
Comment policy
mad:
thanks for the tutorial, I'll implement it when I have time.
hi
this is really great stuff!!
but can you please implement .net backgroundworker to prevent freezing?
here is tutorial http://lonerobot.net/?p=50
thanks guys, and wicq08..yes I know that I can run it using a macroscipted button, but thanks for your effort.
Hi focus-gfx, nice script, but since theres no other way to open it except like in you do it in you video or drag it to the viewport, which are both ways kind of annoying, I make a buttom so we can run the script in a second.
First You have to create a .mcr file which is a macroscript file that calls the .mse file
1. create in the notepad the next text and save it as "Collision Map Generator.mcr" and place it in C:\..\Autodesk\3ds Max 2008\ui\macroscripts (dont create a folder just drop it in the macroscript folfer)
Macroscript text below:
macroScript CMG
category:"CMG"
tooltip:"Collision Map Generator"
buttonText:"CMG"
(on execute do fileIn "$scripts\\Collision Map Generator.mse")
2. copy the "Collision Map Generator.mse" file in C:\..\Autodesk\3ds Max 2008\Scripts (again dont create a folder just drop it in the script folder)
3. run 3ds max
4. GO to Customize/Customize User Interface /click the Toolbars tab/ Category(open the drop down list)/CMG/click on NEW button and give it a name/ hit ok and a button will pop up in any place in the viewport/Drag the text"Collision Map Generator (which you can see in the big space below action) to the new buttom already created/ voila
you have a button that will open the script everytime you hit it. you can place the button below the main toolbar of 3d max so everytime you run 3d max the buttom is lock to the tools and not flying around
Nice tool, keep it up Samir.
Your script is awsome, i like this, sound is goog. i gonna try it. Ty.
thanks " noel_d3" I checked
thanks " noel_d3" I checked the first one "bobo's" and it does not use object polygon's to detect collisions and other links are dead, but thanks..
When I have more time I'll work on it, Now I'm writing a NES wmulator :D
To make your script better you can see :
http://www.scriptspot.com/bobo/mxs2/penpal/
and
http://www.d3coy.com/
and why not also
http://www.scriptspot.com/3ds-max/touch-texture-maker
Best regards,
leon
Anubis
Thanks for your ideas, you can change both colors [BG or brush] to any color and you can take the maps to any compositing software and add blur to it.
2 simple ideas from me --
1. Will be nice to have some grey scale for the maps for better effect.
2. Motion blur or somthing to make trail more solid, not so tear to pieces.
cheers
Bobo's Penpal is using the
Bobo's Penpal is using the object pivot to generate maps but not the polygons itself..and the second one looks similar to mine..but I didn't have the time to try it actually.
How does this differ from Bobo's Penpal (http://www.scriptspot.com/bobo/mxs2/penpal/) ?
Or, Philip Zauffel's Touch Texture Maker ?(http://www.scriptspot.com/3ds-max/touch-texture-maker)
Haven't installed yet R9, so can't compare this to the other ones ... (and sadly this is encrypted 8-(
Thank you, please if you make anything cool with it inform me.
Looks VERY promising for quite a few situations I can imagine... Thanks!
Yeah that's why I recommend
Yeah that's why I recommend using proxy meshes, but you can wait a few minutes to generate your maps ;)..remember what you can do with these maps..you can animate a pen writing something, make spots based rain drops and may be a gun shots...many many things.
works well, but render/processing times can take a while on slightly more complicated meshes.
This is a pretty cool idea!
The site hosting the video has run out of bandwidth... you should post the video on YouTube.
David "Stokes" Stokes
Technical Artist, Blue Fang Games
great!
Could it be modified to do skidmarks?
You know, detect contact between a wheel and a ground plane and only there draw into the map file.
thanks
Fernando
Ofcourse you can do this with it...just select the faces of the tire that will collide with the ground and assign an id to them, then use the "ID" option with your faces ID