Create Your Car Body sample config file

Here you can discuss any car and track mods for VSC, be they published or not.
Posts: 11
Joined: Mon Mar 21, 2016 12:08 pm

Create Your Car Body sample config file

Postby enrico » Tue Aug 22, 2017 7:33 am

Here is the text of the sample config file used in the tutorial Create Your Car Body:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<MODEL>
  <!-- Model type, always "Body" -->
  <TYPE>Body</TYPE>
  <!-- Name of the output binarized model (saved as "<DESTINATION>/<DESTINATION>.model") -->
  <DESTINATION>DemoBody</DESTINATION>
  <!-- Model's properties -->
  <!-- Name - (Mandatory) - Max 20 characters -->
  <PROPERTY Name="VSC Demo Body"/>
  <!-- Configuration - Possible values: "Inline", "Anglewinder", "Sidewinder", "Any" - (Mandatory) -->
  <PROPERTY Configuration="Any"/>
  <!-- Price -->
  <PROPERTY Price="10"/>
  <!-- Required experience -->
  <PROPERTY RequiredExperience="100"/>
  <!-- Category - (Mandatory) - Max 16 characters -->
  <PROPERTY Category="Demo"/>
  <SOURCES>
    <SOURCE>
      <!-- Lod number, always "0.0" -->
      <LOD>0.0</LOD>
      <!-- Name of the file containing the model to binarize -->
      <FILENAME>demo.obj</FILENAME>
      <!-- Orientation matrix from model space to vsc car space -->
      <ORIENTATION_MATRIX>
        <A00>0.0</A00>
        <A01>0.0</A01>
        <A02>1.0</A02>
        <A10>1.0</A10>
        <A11>0.0</A11>
        <A12>0.0</A12>
        <A20>0.0</A20>
        <A21>1.0</A21>
        <A22>0.0</A22>
      </ORIENTATION_MATRIX>
      <!-- Scale factor from model space to vsc car space -->
      <SCALE_FACTOR>
        <UNIFORM>3.125</UNIFORM>
      </SCALE_FACTOR>
      <!-- Wheels are added as proxies -->
      <PROXIES>
        <!-- Front right wheel -->
        <PROXY>
          <!-- Identifier for front wheels, always "front_wheel" -->
          <NAME>front_wheel</NAME>
          <!-- Orientation matrix from wheel space to model space -->
          <ORIENTATION_MATRIX>
            <A00>0.0</A00>
            <A01>0.0</A01>
            <A02>-1.0</A02>
            <A10>0.0</A10>
            <A11>1.0</A11>
            <A12>0.0</A12>
            <A20>1.0</A20>
            <A21>0.0</A21>
            <A22>0.0</A22>
          </ORIENTATION_MATRIX>
          <!-- Center of wheel in model space -->
          <POSITION>
            <X>-1.2</X>
            <Y>0.25</Y>
            <Z>1.3</Z>
          </POSITION>
          <SCALE_FACTOR>
            <!-- Wheel radius in model space -->
            <X>0.5</X>
            <!-- Wheel radius in model space -->
            <Y>0.5</Y>
            <!-- Wheel width in model space -->
            <Z>0.5</Z>
          </SCALE_FACTOR>
        </PROXY>
        <!-- Rear right wheel -->
        <PROXY>
          <!-- Identifier for rear wheels, always "rear_wheel" -->
          <NAME>rear_wheel</NAME>
          <!-- Apply traction to this wheel (apply it to rear wheels only) -->
          <PROPERTY Traction="True"/>
          <!-- Orientation matrix from wheel space to model space -->
          <ORIENTATION_MATRIX>
            <A00>0.0</A00>
            <A01>0.0</A01>
            <A02>-1.0</A02>
            <A10>0.0</A10>
            <A11>1.0</A11>
            <A12>0.0</A12>
            <A20>1.0</A20>
            <A21>0.0</A21>
            <A22>0.0</A22>
          </ORIENTATION_MATRIX>
          <!-- Center of wheel in model space -->
          <POSITION>
            <X>-1.2</X>
            <Y>0.25</Y>
            <Z>-1.5</Z>
          </POSITION>
          <SCALE_FACTOR>
            <!-- Wheel radius in model space -->
            <X>0.5</X>
            <!-- Wheel radius in model space -->
            <Y>0.5</Y>
            <!-- Wheel width in model space -->
            <Z>0.5</Z>
          </SCALE_FACTOR>
        </PROXY>
        <!-- Front left wheel -->
        <PROXY>
          <!-- Identifier for front wheels, always "front_wheel" -->
          <NAME>front_wheel</NAME>
          <!-- Orientation matrix from wheel space to model space -->
          <ORIENTATION_MATRIX>
            <A00>0.0</A00>
            <A01>0.0</A01>
            <A02>1.0</A02>
            <A10>0.0</A10>
            <A11>1.0</A11>
            <A12>0.0</A12>
            <A20>-1.0</A20>
            <A21>0.0</A21>
            <A22>0.0</A22>
          </ORIENTATION_MATRIX>
          <!-- Center of wheel in model space -->
          <POSITION>
            <X>1.2</X>
            <Y>0.25</Y>
            <Z>1.3</Z>
          </POSITION>
          <SCALE_FACTOR>
            <!-- Wheel radius in model space -->
            <X>0.5</X>
            <!-- Wheel radius in model space -->
            <Y>0.5</Y>
            <!-- Wheel width in model space -->
            <Z>0.5</Z>
          </SCALE_FACTOR>
        </PROXY>
        <!-- Rear left wheel -->
        <PROXY>
          <!-- Identifier for rear wheels, always "rear_wheel" -->
          <NAME>rear_wheel</NAME>
          <!-- Apply traction to this wheel (apply it to rear wheels only) -->
          <PROPERTY Traction="True"/>
          <!-- Orientation matrix from wheel space to model space -->
          <ORIENTATION_MATRIX>
            <A00>0.0</A00>
            <A01>0.0</A01>
            <A02>1.0</A02>
            <A10>0.0</A10>
            <A11>1.0</A11>
            <A12>0.0</A12>
            <A20>-1.0</A20>
            <A21>0.0</A21>
            <A22>0.0</A22>
          </ORIENTATION_MATRIX>
          <!-- Center of wheel in model space -->
          <POSITION>
            <X>1.2</X>
            <Y>0.25</Y>
            <Z>-1.5</Z>
          </POSITION>
          <SCALE_FACTOR>
            <!-- Wheel radius in model space -->
            <X>0.5</X>
            <!-- Wheel radius in model space -->
            <Y>0.5</Y>
            <!-- Wheel width in model space -->
            <Z>0.5</Z>
          </SCALE_FACTOR>
        </PROXY>
      </PROXIES>
    </SOURCE>
  </SOURCES>
</MODEL>

Posts: 14
Joined: Wed Jul 19, 2017 5:02 am
Location: Netherlands (near Zwolle)

Re: Create Your Car Body sample config file

Postby Hans213 » Sat Aug 26, 2017 7:35 am

Hi Enrico,

I also need the my_body.fbx and the my_body.png to make the car.
Can you e-mail them to me?

And how and where to put the names of the my_body.cfg .fbx .png or .jpg files in the assetsbuilder.cfg? Because the .lastbuild is always empty!

Btw which 3D program is best to make my own cars?

Thanks

Posts: 37
Joined: Sun Mar 20, 2016 2:21 pm
Location: Prague

Re: Create Your Car Body sample config file

Postby Zayfod » Tue Aug 29, 2017 9:48 am

Hi Hans :)
I believe the demo car body and texture was provided to you by Enrico, I saw your screen shots on the VSC Steam forums. I must say it is really great to see the modding tools used and tested, don't hold back ;). To answer your question about what modelling app to use, well, in our experience it depends on your background and what works for you. We are not experts in modelling, but what we made sure of was that VSC was able to import models from the most popular exported file formats that we could see being OBJ and FBX. Blender is free and seems to provide the required solution to many people. We wanted to make sure that the game was open to modding from as many people as possible, since not many can afford the professional alternatives. I'm sure if you do some online snooping you will be able to find the pros and cons of Blender vs 3D Studio Max vs Maya, not to mention the many others out there. All of them surely fit the bill, it's down to personal taste and budget, and if they can export to the afore mentioned formats.


Return to “Modding”

Who is online

Users browsing this forum: No registered users and 1 guest

 

 

cron