tim-speed / openmap-gta

Old styled GTA game using open map data
13 stars 1 forks source link

Add 3D Buildings to Scene #3

Open Glavin001 opened 11 years ago

Glavin001 commented 11 years ago

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.

Glavin001 commented 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

Glavin001 commented 11 years ago

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/

Glavin001 commented 11 years ago

Screenshots of the previous commit.

first-person-inside-close first-person-inside-far arial1

Glavin001 commented 11 years ago

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

Glavin001 commented 11 years ago

See Buildings documentation: http://wiki.openstreetmap.org/wiki/Buildings

Glavin001 commented 11 years ago

Indoor mapping: http://wiki.openstreetmap.org/wiki/Indoor_Mapping

Glavin001 commented 11 years ago

Simply 3D buildings: http://wiki.openstreetmap.org/wiki/Simple_3D_Buildings

Simple_3d_examples

Glavin001 commented 11 years ago

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/

Glavin001 commented 11 years ago

House demos: http://www.spacegoo.com/lignum/index.php?constructor=Demo1#

Glavin001 commented 11 years ago

Another building, texture, lighting demo: http://codeflow.org/webgl/deferred-irradiance-volumes/www/

Glavin001 commented 11 years ago

Shadows: http://stemkoski.github.com/Three.js/Shadow.html Repeating textures on wall: http://stemkoski.github.com/Three.js/Texture-Repeat.html

Glavin001 commented 11 years ago

Another amazing example of buildings in 3D: http://www.jabtunes.com/labs/boidsnbuildings/ It's very cool.

MarkMurphy commented 11 years ago

That IS verry cool.

Glavin001 commented 11 years ago

Building extrusion causes the following phenomenon. Need to fix.

extrudedBuildings Yes, those grey blobs in the sky are Halifax's buildings... a little bit out of place ;).

Glavin001 commented 11 years ago

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 ;)!