5.17.2011

Texture coordinates

I spent some time writing the texture coordinate calculator that will be used for everything. It supports several schemes ranging from planar texturing to spherical texturing, the latter of course causing the most issues. Finally I got to a version that gives very nice results for the default primitives and will work reasonably well for any object later as well. The engine size is up to 9429 bytes due to this, but this was the last large self contained addition to the engine (along with updating mesh smooth calculations to propagate texture coordinates correctly). From the viewpoint of the engine the modeler and even the keyframer are basically complete, but the tool still needs a lot of work on both fronts.
Anyway here are a few pictures on spherical texturing highlighting the pole and the level of artifacts I deemed acceptable.

This is how the x texture coordinate looks like. Notice the lines around the pole.

This is the result when textured with a polar mapped noise texture

A proper texture designed for this hides the problem perfectly

No comments:

Post a Comment