mrdoob / three.js

JavaScript 3D Library.
https://threejs.org/
MIT License
102.33k stars 35.35k forks source link

Render 3d man face #1865

Closed avihaim closed 12 years ago

avihaim commented 12 years ago

hi, I vary new in WebGl and in three.js, i try to render basic texture image (face) with a Separate depth Map image (grey scale), like in Surface (mathlab).

Any chance someone can help me and give me some sample who do something similar?

Avi

mrdoob commented 12 years ago

Can you show what you have so far?

alteredq commented 12 years ago

So if I understood well, you want to make a 3d shape from picture and depth map?

This should be similar to creating terrain from a height map like in this example:

http://mrdoob.github.com/three.js/examples/webgl_terrain_dynamic.html

Though this one is maybe a bit overkill for you, if you just need one shot static mesh creation on JS side (instead of continuous mesh changes in shader).

For this there is this terrain example:

http://mrdoob.github.com/three.js/examples/webgl_geometry_terrain.html

And there is also Rutt-Etra-Izer demo by @felixturner which does something similar just with lines instead of mesh:

http://www.airtightinteractive.com/2011/06/rutt-etra-izer/