three.js - UV calculation on custom 3d mesh -


after making research, didn't find yet formula offer me way push facevertexuvs on custom mesh (basically countries on top of sphere), need burn world texture on polygon, , don't know how compute correctly uv coordinates.

even formula on wikipedia :/ please need helps

the problem : calculation each vertex uv coordinates

any tips, advices, links welcome.

i've found solution application not quite sure , texture appears not point, 3 vectors normal compose face,and compute uv arctan2, , asin, adding after 0.5 correct range [0,1]

you don't specify shape of countries? them extruded mesh?

you looking spherical projection mapping, known problem, centuries ago: http://math.rice.edu/~polking/cartography/cart.pdf


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -