User Tools

Site Tools


artwork:models_vehicles:bforartist

ShameGuide for Making GearCity Car Bases/Bodies

by MediaevalRocket


Items Used

Installation

  1. Download and Install Bforartist or Blender
  2. Download Ogre Command Line Tools and install it. This includes Ogretoolsxmlconverter.exe and meshmagick.exe.
  3. Download blender2ogre 0.66
  4. Extract blender2ogre into the Bforartist /scripts/addons folder Extract Blender2ogre into Bforartist
  5. Open Bforartist or Blender
  6. Open preferences Search for Ogre and click the tick box
  7. Search for Ogre and click the tick box Search for Ogre and click the tick box
  8. Then toggle the Ogre UI at the top Bforartist toolbar. Then toggle the Ogre UI at the top Bforartist toolbar.
  9. Go into scenes and set and scroll to Ogre Config File and enter the location of OgretoolsXmlConverter.exe and meshmagick.exe
  10. Then Update Config File

Additional tutorials for setting up blender2ogre can be found here

Shape Keying

  1. First you need to create or import a 3D object and set your piviot point to the bottom-centre of your model. This dictates how mirrored objects will appear on your car’s base in the game.
  2. Next click on the Data Object Tab
  3. Scroll to Shape Keys and press “+”.
  4. Press “+” again and now you will have your first Shape Key
  5. Rename your Shape Key to ‘Entire Body_Complete_Length’ (Don’t include the quotation marks)
  6. With the Shape Key still selected change into Edit Mode
  7. Now modify the 3D object to as much as you want (Since this shape key is ‘Entire Body_Complete_Length’ you should at least attempt to make it longer)
  8. Now switch back to object mode and move the value slider up and down. As you should be able to see, your object is changing into the creation that you made in edit mode. This in computer graphics is called “Morphing”, so sometimes these shape key models are called “Morphs”.
  9. Now repeat the shape keying process atleast two more times. Naming one ‘Entire Body_Complete_Width’ and ‘‘Entire Body_Complete_Height’. As their names imply one shape key should modify width and the other height. You can add other shape keys, but ‘Entire Body_Complete_Length’, ‘Entire Body_Complete_Width’ and ‘‘Entire Body_Complete_Height’ are the only ones required by the game to function.
  10. Don’t forget to keep in mind the dimensions. According to the GearCity developer, Eric B., “You have to make sure your unit sizes in blender are setup so that 1Unit = 1CM, Or at least try to test out the size of your models in the game. As the physical dimensions of the vehicle is based on the mesh units.” Also, if your model is the wrong size you can scale it up. Just don’t forget to apply scale!

Here is a link to a very good shape keys tutorial found on YouTube: https://www.youtube.com/watch?v=OITWiN8Dplo

Animation

To put the 3D model into the game you must make a keyframe animation for each shape key.

  1. Go to the bottom of the screen and place your Cursor in between the bottom two toolbars. A drag icon should appear an now pull up. You should now be able to see a timeline. Next, choose the desired shape key.
  2. To create a keyframe first go to the bottom of the screen and push the button shaped like keys. Then you must click on the tab next to it and a list will appear. Select LocRotScale. Make sure that you are at frame zero. Next, while hovering over the shape keys tab push on your keyboard the “I” key. Make sure that you are hovering over the shape keys tab or else it won’t register. This should cause the value slider for your selected shape key to turn yellow. You should also see a yellow mark in the timeline. This is your first key frame.
  3. Now move to frame five, move the value slider up to 100, and push “I” again.
  4. Do the same thing at frame 15, but move the value slider back to zero. Just make sure that you are hovering over the shape keys tab.
  5. Now switch to animation layout
  6. Now that you are in the animation layout click on the NLE button
  7. Now push on the down arrow button
  8. Now change the name of the animation
  9. Afterwards rearrange your animations in the NLE, short for Nonlinear Editor, so that they appear in the your order.
  10. Now return to default layout

Creating a Submesh

A submesh dictates what materials (shaders) can be used on your model in your game. Createing one is important because if you don’t your car base will be unpaintable in the game and stuck being white. Here’s an example:

  1. First go into materials and create a material, as seen in the picture below. Now rename it. According to Steam user mrx_ua, “[The possible names for a submesh in the game are] ’All’ (lets you use any shader), ‘Body’, ‘Glass’, ‘Leather’, [and] ‘Metal.’” As you may assume these names dictate what kind of materials, aka. paints or shaders, can be used on your model. However, the use of ‘All’ should be avoided because it may cause strange graphical issues in-game.
  2. As seen in the picture above you can create multiple submeshes, in most 3D programs they are called materials. If you have only one submesh your car base will be only one material or shader. If you create more submeshes you can have other materials or shaders on your car base. As seen in the picture bellow, for this to work properly you will need to go into edit mode and select the areas of your mesh that are you desire to be your selected material. Then press the assign in the materials tab.

Exporting

  1. Go into the “File” tab on the top-most Bforartist tool bar and find “Export”. In “Export” select Ogre3D.
  2. Now a new window will appear. In the left corner there is export settings look at these to see if there are anything that needs changed.
  3. Now make sure that you are in the directory/folder that you want to export the model to and have the correct name for the file. Now push the “Export Ogre” button.
  4. You should now get a bunch of files in the directory that you selected related to your model. The important one has the file extension “.mesh”.

Putting the Mesh into the Game

Testing

  1. Open GearCity and go into Car Designer
  2. Select your car type.
  3. Now select your model
  4. Now try to add accessories to and paint your car base. The first picture is a car with one submesh and the second one has two.

If the game didn’t instantly crash on you when you selected your car base, the custom model was successfully imported.

Troubleshooting

If you select your car base and the game crashes, you may get an ID-10T error. If this happens please open the game again and put more 710 fluid in your car this time.

Just joking more than likely you forgot a step, but a lot of mechanics and tech support operators probably just cringed at my bad joke, sorry.

To find out what went wrong find Logfile.log.

  1. Now open it in a regular text editor like Notepad.
  2. Now, push “ctrl+f” on your keyboard and search for “EXCEPTIONS”

There is a high chance you forgot to do an Animation. Go back Blender or Bforartist and create the key frame animation you forgot. If this doesn’t solve your problem create a new discussion on Steam Discussions. Eric is the creator/developer of GearCity and he will help you.

artwork/models_vehicles/bforartist.txt · Last modified: 2022/02/15 18:00 by 127.0.0.1