texture clamping flag - alex25 - 03-29-2009
just started updating the tracks to use both the shadow flag and the texture clamping one. worked fine for estoril88 (those ugly edges are gone now for the backgrounds. thanks joe). unfortunately it didn't seem to work for hockenheim as the background texture is completely mangled. i wonder if it's my video driver (nvidia 180.41 on linux) of if there is something about this texture that's mishandled by the new code. the new list.txt is in svn so just update and see of it works for you.
--alex--
- joevenzon - 03-29-2009
First off, and you may already know this, for textures like the hockenheim background, you only want to clamp the texture in the V (vertical) direction, not the U (horizontal) direction, because the texture is supposed to repeat in the U direction. That means you want to set the clamping flag to 3:
http://svn.vdrift.net/viewvc.cgi/trunk/listedit/format.txt?root=VDrift+Track+Editor&view=co
However, even setting it to 3, the hockenheim background is still goofed up. My guess is whomever modeled the track used weird texture coordinates for it (relying on the texture repeat) instead of using coordinates in the 0..1 range.
|