Open Glavin001 opened 11 years ago
I recommend taking a look at: http://stackoverflow.com/questions/15067455/how-to-render-a-building-using-webgl-three-js-extrusion-method
Take a look at the following article discussion lighting and surface materials: http://japhr.blogspot.ca/2012/07/lights-and-materials-in-threejs.html
And for casting shadows: http://learningthreejs.com/blog/2012/01/20/casting-shadows/
Screenshots of the previous commit.
Other 3D projects/examples worth taking a look at: WebGL_Geometry_Minecraft Example: http://mrdoob.github.com/three.js/examples/webgl_geometry_minecraft.html WebGLCraft: http://danielribeiro.github.com/WebGLCraft/ WebGL City: http://alteredqualia.com/three/examples/webgl_city.html
See Buildings documentation: http://wiki.openstreetmap.org/wiki/Buildings
Indoor mapping: http://wiki.openstreetmap.org/wiki/Indoor_Mapping
Simply 3D buildings: http://wiki.openstreetmap.org/wiki/Simple_3D_Buildings
3D Development using Open Street Maps data: http://wiki.openstreetmap.org/wiki/3D_Development
Very cool project: http://xplane.cz/en/2011/05/30/xht-projekt-odtajnen/
Another building, texture, lighting demo: http://codeflow.org/webgl/deferred-irradiance-volumes/www/
Shadows: http://stemkoski.github.com/Three.js/Shadow.html Repeating textures on wall: http://stemkoski.github.com/Three.js/Texture-Repeat.html
Another amazing example of buildings in 3D: http://www.jabtunes.com/labs/boidsnbuildings/ It's very cool.
That IS verry cool.
Building extrusion causes the following phenomenon. Need to fix.
Yes, those grey blobs in the sky are Halifax's buildings... a little bit out of place ;).
Extrusion of buildings no longer makes sense: you want players to be able to enter, therefore a wall-based building object makes more sense than this extruded "solid" building. Not to mention, it's easier as it was working before and now the extrusion is up in the air ;)!
Initially only use the vertices given from the Open Street Maps data and then a fixed height for all building walls. Worry about realistic / dynamic buildings later, once more data is accumulated.