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
Post a Comment