Original Post
🔒 Locked
md2 modle loading
Advertisement
Hi -
It's been awhile since I've looked at this stuff in my own system, but I seem to recall that MD2 stores its UV coordinates in image space with the origin in the Upper left (pixel start), rather than the Lower Left (which OGL uses).
The code to fix this would look something like -
foreach (UV in Mesh)
{
UV.v = 1- UV.v;
}
I can't be sure this is your problem, but it's a common one. Good Luck.
It's been awhile since I've looked at this stuff in my own system, but I seem to recall that MD2 stores its UV coordinates in image space with the origin in the Upper left (pixel start), rather than the Lower Left (which OGL uses).
The code to fix this would look something like -
foreach (UV in Mesh)
{
UV.v = 1- UV.v;
}
I can't be sure this is your problem, but it's a common one. Good Luck.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement