Game Project – Importing Meshes

20150914: JSON import

I did some modeling with Blender and exported with three.js JSON-exporter.
Then I loaded the mesh with THREE.JSONLoader.
After some testing & tweaking, I finally got it working with textures.

20150915: Collada import

The JSON-loader could only load 1 mesh at the time and I needed to build larger models containing several meshes and materials. I found the THREE.ColladaLoader after some searching and tested to set it up. One important thing I noticed along the way was to set the option “loader.options.convertUpAxis=true”, so that the imported scene has the same XYZ-orientation as the existing 3D-enviroment. Everything seems to be working at the moment.

20150916-20150918: 3D modeling

Mostly 3D modeling and some experiments about creating a building with different parts through loops. For instance when building a floor. By iterating through a buildings width while iterating through its depth, I could put pieces of floor at every point in the loop like this:

floor[x][z]
0,0     1,0     2,0
0,1     1,1     2,1
0,2     1,2     2,2
0,3     1,3     2,3


Modeling a floor


UV-mapping on the surface


UV-mapping on the surface


First try with collada-importer (?)


Collada-importer OK (surface and white-cube is from the same .dae file)


Modeling pipes


Slide went wrong


Modeling pipes


Modeling pipes


Clones


Building foundations


Generating ceilings


Modeling girders

20150919-20150920: Cells and girders

I did some more tests with the creation of buildings and added girders as ceiling on each floor while adjusting the new cell-mesh so that the cell-frame would fit. Then I created pillars for the corners of buildings and added some faint lightning in cells.

Leave a comment

Design a site like this with WordPress.com
Get started