Difference between revisions of "Modeling with 3D Editor"

From Custom Mario Kart
Jump to navigation Jump to search
(Improved the whole article and removed nerd talk.)
Line 6: Line 6:
 
== Using a 3D modeling program ==
 
== Using a 3D modeling program ==
  
If you have never made a 3D model before, it is recommended to download Google Sketchup (the free
+
If you have never made a 3D model before, it is recommended to use Google Sketchup 8, which is free and easy to learn to use.
  
 
=== Google Sketchup ===
 
=== Google Sketchup ===
  
 
First, you will need to download Google Sketchup if you do not already have it here: [http://sketchup.google.com/ Google Sketchup 8 Download]
 
First, you will need to download Google Sketchup if you do not already have it here: [http://sketchup.google.com/ Google Sketchup 8 Download]
 +
 
You will also need this plug-in: [http://www.mediafire.com/?qh8hgo16ujvoi0h OBJ Exporter download]. Put the .rb file in the Plugins folder of GSU (found in your Program Files folder).
 
You will also need this plug-in: [http://www.mediafire.com/?qh8hgo16ujvoi0h OBJ Exporter download]. Put the .rb file in the Plugins folder of GSU (found in your Program Files folder).
  
Line 17: Line 18:
 
Now, it is time to create the track using the information you learned in the video tutorials. However, there are some important rules not listed in the video that you must follow for the model to be Mario Kart Wii compatible:
 
Now, it is time to create the track using the information you learned in the video tutorials. However, there are some important rules not listed in the video that you must follow for the model to be Mario Kart Wii compatible:
  
Make sure that the track uses the white faces for culling.
+
* As a general rule, the road should be about 15,000' across (you can use the Tape Measure tool to measure this, but make sure you are using the Simple Feet and Inches template). This is the approximate width that an ideal road would have (for example, the width of the road at [[Fishdom Island]]). If the model is too small you will need to use the scale tool to make it all bigger.
 
+
* The whole drivable road must be above the red and green axis in Sketchup. Mario Kart Wii enforces a fall boundary below these axis even if it is not in the course.kcl file. If you were to build a road on or below these axis you will respawn (be picked up by Lakitu) over and over again.
After the model is done, you still have to scale it to a new size. You have two choices:
+
* The exporter below only exports the front (white) faces of the model. Make sure the white faces are pointing in the direction you want to see them. If they aren't, right click on them and click "Reverse Faces." Of course, if the faces are textured you cannot see which way they are facing, so click "Entity Info" to check which side(s) are textured. If you want a face to be visible from both sides, you will have to add depth to it.
* Comparing your model to one of Nintendo's tracks (only with GSU Pro)
+
* Lines in Sketchup will not be visible in Mario Kart Wii; only faces appear.
* Comparing your model to one of [[BigOto2]]'s tracks (you can use any version of GSU)
+
* The OBJ file format does not support many of Sketchup's built in features such as camera animation, fog, shadows, or non-photo textures. These will not show up within Mario Kart Wii as they are controlled differently there. NEVER use solid colors unless they are an actual photo; they will appear black in-game.
 
+
* To test the size and scale of your track in-game, use moon jump hacks (on Dolphin or with Riivolution and a Wii) or simply add solidity to the road portions of the track. You will also need to move the start position over the track. 1 unit in Mario Kart Wii (used within the KMP editor) is equal to 3.2813 feet in Sketchup.
If you chose the first option (meaning you have GSU Pro), you can either extract the OBJ models from Nintendo's tracks (File-->Export, in SZS Modifier's Model Editor), or download the model of N64 Mario Raceway [http://www.mediafire.com/?u79z7g2taawp605] and import into Sketchup using the built-in OBJ importer.
 
 
 
If you chose the second option, you can download one of BigOto2's track models in the Sketchup 3D warehouse: [[Fishdom Island]], [[Lunar Speedway]], [[Sunset Desert]] and [[Volcanic Skyway]] are some of then.
 
 
 
After having one of the models in Google Sketchup, you'll notice that the new model is huge, compared to what your current model might look like. But that's the correct size. Scale your track up until it matches the size you want it to look like ingame. After it's scaled up and in the right size, delete the imported model, move your track so that it's lowest point is just above the point where the three colored lines meet and save. Make sure the model does not go below the red and green axis, as there is an in-game fall boundary that will force you to respawn if your kart goes below that level.
 
  
Now, export the model into an OBJ file.
+
If you still need help scaling your track to the correct size, you can download any other Sketchup file for a custom track from the internet. All of BigOto2's track models are available on the Sketchup 3D warehouse: [[Fishdom Island]] and [[Volcanic Skyway]] are some of them. You can then compare your track's scale to these other custom tracks.
  
 
=== Another 3D Model Editor ===
 
=== Another 3D Model Editor ===

Revision as of 17:53, 25 June 2011

Under Construction
This article is not finished. Help improve it by adding accurate information or correcting grammar and spelling.

This is part of the Custom Track tutorial.

Back to the main tutorial page

Using a 3D modeling program

If you have never made a 3D model before, it is recommended to use Google Sketchup 8, which is free and easy to learn to use.

Google Sketchup

First, you will need to download Google Sketchup if you do not already have it here: Google Sketchup 8 Download

You will also need this plug-in: OBJ Exporter download. Put the .rb file in the Plugins folder of GSU (found in your Program Files folder).

If you have never used Google Sketchup before, you should watch the video tutorials found here: Google Sketchup Video Tutorials

Now, it is time to create the track using the information you learned in the video tutorials. However, there are some important rules not listed in the video that you must follow for the model to be Mario Kart Wii compatible:

  • As a general rule, the road should be about 15,000' across (you can use the Tape Measure tool to measure this, but make sure you are using the Simple Feet and Inches template). This is the approximate width that an ideal road would have (for example, the width of the road at Fishdom Island). If the model is too small you will need to use the scale tool to make it all bigger.
  • The whole drivable road must be above the red and green axis in Sketchup. Mario Kart Wii enforces a fall boundary below these axis even if it is not in the course.kcl file. If you were to build a road on or below these axis you will respawn (be picked up by Lakitu) over and over again.
  • The exporter below only exports the front (white) faces of the model. Make sure the white faces are pointing in the direction you want to see them. If they aren't, right click on them and click "Reverse Faces." Of course, if the faces are textured you cannot see which way they are facing, so click "Entity Info" to check which side(s) are textured. If you want a face to be visible from both sides, you will have to add depth to it.
  • Lines in Sketchup will not be visible in Mario Kart Wii; only faces appear.
  • The OBJ file format does not support many of Sketchup's built in features such as camera animation, fog, shadows, or non-photo textures. These will not show up within Mario Kart Wii as they are controlled differently there. NEVER use solid colors unless they are an actual photo; they will appear black in-game.
  • To test the size and scale of your track in-game, use moon jump hacks (on Dolphin or with Riivolution and a Wii) or simply add solidity to the road portions of the track. You will also need to move the start position over the track. 1 unit in Mario Kart Wii (used within the KMP editor) is equal to 3.2813 feet in Sketchup.

If you still need help scaling your track to the correct size, you can download any other Sketchup file for a custom track from the internet. All of BigOto2's track models are available on the Sketchup 3D warehouse: Fishdom Island and Volcanic Skyway are some of them. You can then compare your track's scale to these other custom tracks.

Another 3D Model Editor

If you made your model in a 3d model editor that isn't Google Sketchup, you have to do something more for it to work. Follow the same steps you did to make the model in Sketchup, but after you export the OBJ file, you must run it through Blender (that means importing into it and exporting after) for then to be right. In Blender's Import and Export dialogs, remember to set the "Blender Exports Objects as OBJ" to "Material Groups". That should do it.

Importing Your Model

CTools Pack

Open the CTools Pack's BRRES Editor and click File-->New. The click File-->Import-->Wavefront OBJ. Use the '...' button next to the file path to open the .obj model file.

If there is a problem with the .obj file, a message should appear explaining what is wrong. If it is to do with materials, you can disable them using the Load Materials checkbox - but you'll have to import each texture manually later on. (the texture mapping goes OK, just the actual texture goes wrong)

If everything worked, you should now have more options. If you are making a course model, be sure to check the Course Model box, and if you are making the map, check the Map Model box, otherwise, don't check either box. Normally you can leave all of the other settings alone, however they can be used to correct problems.

If your model is too big or small, use the scale feature to increase or decrease it's size. Typically Mario Kart Wii courses are about 100000 units across.

If your model appears rotated, or lying on its side, use the swap Y and Z check box to correct this problem. By convention, Mario Kart Wii uses Y for vertical, but other programs use Z.

If your model shows only the back sides, it may be because you have the cull mode incorrect. Set it to the opposite mode to the default. If it is on automatic and did not work, consider going back to your modeling program and inverting normals.

After the OBJ model is imported, save the file as/over "course_model.brres" inside the SZS.

After The Model Is Done

Now, you follow the Texturing tutorial to see how to fix the colors of the track so that they're the way you want to.

Links