javascript - Never-ending floor in THREE.JS scene -


what best way create continuous-in-every-direction floor in canvas three.js scene?

would better attach three.planegeometry camera position, travels camera.

or there way of texturing floor of scene texture.

i'm having trouble visibility of planegeometry, reason have distance see it.

/* floor  */     var geometry = new three.planegeometry( 1000, 1000, 1, 1 ); var material = new three.meshbasicmaterial( { color: 0x0000ff } ); var floor = new three.mesh( geometry, material ); floor.material.side = three.doubleside; floor.rotation.x = de2ra(90); scene.add( floor ); 

open techniques!

i have infinite ocean floor in top-down game. reposition camera's xy-coordinates (keeping distance z). modify texture's offset property appears floor moving though it's glued camera.

regarding "trouble visibility of planegeometry", hit camera's near or far projection planes (distances) - closer near or further far clipped, i.e. culled, i.e. invisible. can configure in camera's constructor.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -