Sunday, April 27, 2014

Creating 3d video games 5 - Completing th farm model.

In the previous tutorial we made the landscape for our farm. Now we want to add in the barns and hay bales to complete the model. Here is a link to the completed model http://sourceforge.net/projects/jmonkeytutorial/files/latest/download?source=directory



I used a prefabricated barn model to save time. To the load the barn into the scene we use the plug-ins import 3ds. The dialogue will ask you to browse to the folder containing the file. You want to leave the other settings at default the select ok. Once the barn is loaded you notice it is a little small. Use the object mode scale to resize the barn to roughly 1/10 the size of the farm. Then press Ctrl + C to copy the barn then press Ctrl+V to paste the copy. Rename them to Barn1 and Barn2 respectively. Use the move and rotate functions under object mode to position to the layout we did in tutorial 2.



Next we create 3 square bales of hay. Select cube under the item creation panel and change default height, width and depth to 56. Using the top or front view make the cube one grid wide. In the materials panel select the hay material we added previously then assign it to the cube. Make two more copies of the cube. Rename each cube to bale1,2, and 3. Now use the move tool to reposition them according to our layout. It doesn't have to be exact just close.

The finished model should look something like this.


In the next tutorial we will load the model into Jmonkey and view the scene.

No comments:

Post a Comment