Waooo, its so amazing, create heightMap on blender.

Hahaha, today is free time to code..

I’m interest with heightMap on blender…and boaallaa…

veryExicited

 

and load the texture heightMap on ThreeJs

HeightMap

 


var jsonLoader = new THREE.JSONLoader();
 jsonLoader.load( "resource/heightmap/terrainBaru.js", addModelToScene );

and functions is


function addModelToScene( geometry, materials )
 {

 var material = new THREE.MeshFaceMaterial( materials );
 terrain = new THREE.Mesh( geometry, material );
 terrain.scale.set(256,256,256);
 scene.add( terrain );

}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s