Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. Gameplay
      2. Missions
      3. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Arena War
      2. After Hours
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA Next

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. News

    2. Forum Support

    3. Site Suggestions

Sign in to follow this  
Kam

Exporting Collision File from Max & GMax

Recommended Posts

Kam

Updated on 11Mar05

 

Tools you need:

COL_IO_V02 script for both Max & GMax

DFF_IO_43b script, GMax Version (no necessary)

 

HTML version of this tutorial HERE

for the tools update,Please visit here

 

1. Create your model in MAX.

 

- Remember : to use all my tools, the Back side is equal to the Front ingame!

 

2. Export you models as dff. In my case, I call it 'dragonst.dff'.

 

user posted image

 

3. Time to create the collision file. I am going to use a simple box for the base. And simple mesh(124 faces) for the dragon.

 

-Collision Mesh must be editable-mesh! (No point to be a primitive,right!?) So be sure to convert it to editable-mesh.

 

Hint: I can't see why people need more than 1000 face to create collision mesh, It just slow down the game! In my case 124 is enough even too many! I just no time to optimize it! Study the original collision file and you will learn it!

 

user posted image

 

4. Hide or delete the original models(the dff export one), so you won't mess up with collision objects!

 

5. Now lanuch my 'COL_IO_1b.ms' script. Go to 'Surface Parameters' rollout. You have to set Surface for all your collision meshes(box,sphere).

 

6. In my case, the base box will be Rock and the dragon will be Steel!

 

-Select the box, and select Rock in the 1st listbox. Press the 'Set Surface' button.

 

Hint: You can use the 'Get Info.' button to see what's properities there!

 

user posted image

 

7. Select the dragon mesh, and Steel in 1st listbox. Press 'Set Surface' again.

 

user posted image

 

Step 8 is now Optional!

8. Your Collision file is almost done. GTA Engine need bounding box and sphere for every collision file! So select ALL the collision objects (dragon and box in my case) Press 'Create Boundings', You will see a box and sphere are create for you.

 

user posted image

 

9. Now is time for export your collision file! Open the 'IO Parameters' rollout, type the name of the collision file in the bottom box.

 

-Remember GTA Engine need it to be the same as your dff file. So in my case, it is call 'dragonst'. Select ALL collision objects (optional)include bounding box and sphere.

-Since I am going to create a new file, so press 'Save as'. Give it the name and it is done!

 

user posted image

 

 

If you want to edit a ready made collision file. Use the 'Open Collision File' and 'Load' button to import the collision objects into max. Edit whatever you want and then re-export again!

 

 

By Kam.

Edited by Kam

Share this post


Link to post
Share on other sites
Cobra142

Collision file IO Script for 3dmax? Perfect, just what I needed. I couldn't find any info in the tutorial about which max version should be used though, with 7 I had to edit the col script a bit to make it run, but now it works. Great tutorial, thank you. smile.gif

Share this post


Link to post
Share on other sites
DexX
Collision file IO Script for 3dmax? Perfect, just what I needed. I couldn't find any info in the tutorial about which max version should be used though, with 7 I had to edit the col script a bit to make it run, but now it works. Great tutorial, thank you. smile.gif

/* @ Cobra, what did you have to edit, to make the script work?

 

@ Kam, for my col exporter, i just calculate the boundings around the selected object(s) when the col mesh is exported and write it to the file. is there any advantage to having ....."bounding objects", in the scene ? */

Share this post


Link to post
Share on other sites
Cobra142

 

/* @ Cobra, what did you have to edit, to make the script work?

I just fixed something that looked like a typo and removed a couple of unimportant lines about the id tag of the objects that gave an error. I'll send my version to Kam, he can then see if he'll approve of it and release it.

Share this post


Link to post
Share on other sites
ocram88

I use max 4.2 and have an error.

for that reason i search in the.ms and found this line

 

	button CreBBS "Create Boundings" width:120 align:center tooltip:"Create bounding Sphere and Box for selections"

 

 

i've change this line and now it works on 4.2 smile.gif

 

	button CreBBS "Create Boundings" width:120 [b]align:#center[/b] tooltip:"Create bounding Sphere and Box for selections"

 

 

Share this post


Link to post
Share on other sites
Kam

ashdexx, you are right! Not many people need to change anything or fine tunning for 'bounding objects'. So I updated the script + bug fix.

 

It should now works for all version of Max!

Share this post


Link to post
Share on other sites
TRN4L
I've tried exporting the COL for my lot from here but there seems to only export the bounding box and sphere and no actual col geometry....

Share this post


Link to post
Share on other sites
Kam

 

-Collision Mesh must be editable-mesh! (No point to be a primitive,right!?) So be sure to convert it to editable-mesh. 

 

dozingoff.gif !?

Share this post


Link to post
Share on other sites
TRN4L
-Collision Mesh must be editable-mesh! (No point to be a primitive,right!?) So be sure to convert it to editable-mesh. 

 

dozingoff.gif !?

I'm not that stupid Kam... The object IS an editable mesh... I also have problems with the DFF exporter and multi/sub-object materials, but i havnt tried redoing all the materials, so i cant rule out a bad/corrupt material.

Share this post


Link to post
Share on other sites
Ryan_

I find you MUST press the set surface button in order to get your col to work.

Share this post


Link to post
Share on other sites
leviatan1001

Hi guys.KAM IS GOD and it works is amazing. I did some models for san andreas, and after lots of tryings, it works, so i have a problem with invisible walls. I model with Rhinoceros, texturing in sketchup, and 3Ds MAX to add material and export. I have done lots of models, and almost of them has got invisible walls or surfaces. I did them for san andreas. So when i did it for vice city ,without 3d max, it didnt happen. So i guees the problem is in kam scripts. PLEASE, HELP

Share this post


Link to post
Share on other sites
leviatan1001
Updated on 11Mar05

 

Tools you need:

COL_IO_V02 script for both Max & GMax

DFF_IO_43b script, GMax Version (no necessary)

 

.......

I did some models for san andreas, and after lots of tryings, it works, so i have a problem with invisible walls. I model with Rhinoceros, texturing in sketchup, and 3Ds MAX to add material and export. I have done lots of models, and almost of them has got invisible walls or surfaces. I did them for san andreas. So when i did it for vice city ,without 3d max, it didnt happen. So i guees the problem is in kam scripts. PLEASE, HELP

Share this post


Link to post
Share on other sites
Grant

The problem is sketchup, it exports with settings that cause invisible walls, as of yet the only full proof way to remove the walls is by rebuilding the col file. Yeah i know it is indeed a very irritating task as i have to do it with basically everything i make. Sadly, i've never managed to get anything into SA with KAM's scripts, i've followed lot's of tutorials with 0% progress, i can get things into VC without a hitch, but SA, just bogs me down, usually i get a crash at the loading screen. Sometimes my col only has the boundings, other times i get the col but not the dff, it is very annoying. I just gave up a few months ago after months and months of trying. I think most likely the reason is the way sketchup models work in MAX, something happens that appears to make them incompatible, i have no idea why. I think i'll continue my Mod in VC for now, untill i can begin to make some progress with SA's enhanced engine and get my objects ingame without problems on a regular basis.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • 2 Users Currently Viewing
    0 members, 0 Anonymous, 2 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.