User:PeterEdlin/Farming-Simulator modding help-page/Make youre first mod from scratch

This section will describe how to make a real simple model from scratch. If you know how to make basic vechicle then you can start improving it and add more fuction to it.

Before you start reading this chapter you already need to be familiar with a 3d modeller program and have setup a working enviorement. (installed the giants editor and a 3d modeller program with the exporters..etc)

THIS PAGE AND ITS INFORMATION IS TILL UNDER DEVELOPMENT, SO THING MABY BE CORRECTED

'For this project ill use Blender as a 3d modeler program.

Strat youre 3d-modeler program and make a cube with the dimensions: x=2,y=5,z=2. It's orgin needs to be at 0,0,0. Then you make a cylinder with dimensions: radius 1,depth 1, vertices 12. Make sure that the cylinder is next to the cube so you can see it. Now you have to add a material to the two objects so you can see them in giants-editor later on. Check youre 3d-modeller program documentation on how to do this.

Now save the two objects with a proper name. Next you need to select the two object and export them with the giants exporter.(keep the same name,example: "scratchtMcar")

Now we have exported our first shapes we can open them with the Giants-editor. If you opened them they will showup with the material you chosen earlyer.

Next select the cube in giants-editor and go to atributes window. Then check the "rigid body" box and choose "dynamic" insted of "static". Also make sure that the collision box is checked. Now you select the cylinder and rotate it untill it looks like a wheel of the cube. If this is the case you type in the translatoin boxes; x=2,y=-1,z=2. Just make sure the wheel is at the place you would like it to be. The following step is to keep the cylinder selected and choose "cut" from the "edit"menu. Then you select the cube a gain in youre scenergraph and choose "paste"from the "edit" menu. Now the cylinder has become a child of the cube. After this step we to rename the cube to chassis and the cylinder to wheel.

Now select the cylinder and check the rigidbody boxe and choose dynamic. After this choose "copy" from the "edit" menu then select the chassis and choose "paste" from the "edit" menu. Now we got two wheels as childeren of the chassis. Repeat these steps until you got four wheels. Then edit the translation boxes until the four wheels are at symetric places around the chassis. You can give them the names wheelFrontRight, etc.

The following step is used to make thing a litle easyer. Select the chassis then choose "import" from the "file" menu and browse to "C:\Program Files\Farming Simulator 2011\sdk\sampleMod" and select the lizard2000.i3d file. After you imported it select the following objects: "camaras", "size" , "exitpoint" , "farmer" , "collisiontrigger1". Choose "copy" from the "edit" menu then select our chassis and choose "paste" from the "edit" menu. Now those object also apear under our chassis. Move the farmer around so it is just above oure chassis.

Its time to save youre work. Select the chassis in the scenergrapf and choose "save" from the "file" menu.

Youre first model is ready, it now needs the proper .xml files

THIS PAGE AND ITS INFORMATION IS TILL UNDER DEVELOPMENT, SO THING MABY BE CORRECTED