Texture Mapping

Started by AGP, April 06, 2016, 09:14:00 AM

Previous topic - Next topic

AGP

This isn't a jpct-specific question. I can understand if you don't want to answer it, Egon. But here it goes, anyway: how do I texture map a triangle? Put differently, let's say that I have a sphere and a texture map. How do I figure out which part of the texture map goes with each triangle?

EgonOlsen

That highly depends on how you actually want your texture to be applied...spherical, projected...whatever. The ExtendedPrimitives class does support generated texture coordinates for spheres. I can upload the source code of that class if that would help.

AGP

It would, thanks very much.