ScriptSpot

Script

Collision Map Generator.

By focus-gfx · Credited author: Mohamed Samir · 2007-06-30

Version
1.0
Version requirement
9
Other software required
3dsmax 9 or higher.
Date updated
2007-06-30
Votes
27
Description

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.

Additional Info

Simply run the script from maxscript menu.

Help File Included.

You can watch this demonstration video

http://rapidshare.com/files/40284475/C_Map_Gen.avi.html

Attachments
Comments (20)

focus-gfx · 2010-10-10

mad:
thanks for the tutorial, I'll implement it when I have time.

mad · 2010-10-07

hi
this is really great stuff!!
but can you please implement .net backgroundworker to prevent freezing?
here is tutorial http://lonerobot.net/?p=50

focus-gfx · 2009-12-20

thanks guys, and wicq08..yes I know that I can run it using a macroscipted button, but thanks for your effort.

wicq08 · 2009-12-01

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

Hani Tiby · 2009-12-01

Nice tool, keep it up Samir.

capcaverna · 2009-11-27

Your script is awsome, i like this, sound is goog. i gonna try it. Ty.

thanks " noel_d3" I checked

focus-gfx · 2009-05-18

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

focus-gfx · 2009-03-11

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.

 

Anubis · 2009-03-03

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

focus-gfx · 2007-07-17

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.

focus-gfx · 2007-07-16

Thank you, please if you make anything cool with it inform me.

brittnell · 2007-07-16

Looks VERY promising for quite a few situations I can imagine...  Thanks!

Yeah that's why I recommend

focus-gfx · 2007-07-10

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.

zwick · 2007-07-10

works well, but render/processing times can take a while on slightly more complicated meshes.

Stokes · 2007-07-03

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

fferro · 2007-07-02

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

focus-gfx · 2007-07-02

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

Mir Vadim · 2007-06-30

  • Cool script, never saw anything similar. Thanks.