Index | FAQ | Search | Memberlist | Usergroups | Profile | Log in to check your private messages | Log in | Register

UV accuracy of the MDL format

| Inside3d Forums Forum Index -> Modeling

View previous topic :: View next topic
Author | Message
--- | ---
Downsider Joined: 16 Sep 2008 Posts: 478 |

Posted: Thu Feb 25, 2010 10:23 pm Post subject: UV accuracy of the MDL format |

Wondering how accurate the UV coordinates are on the MDL format. I haven't looked into it, but are they, like the vertex positions for animations/geometry also stored as bytes?

Back to top |

frag.machine Joined: 25 Nov 2006 Posts: 728 |

Posted: Fri Feb 26, 2010 1:35 am Post subject: |

IIRC they are stored as unsigned short values. Unfortunately, that's not enough, as you may already noticed. _________________ frag.machine - Q2K4 Project http://fragmachine.quakedev.com/

Back to top |

Downsider Joined: 16 Sep 2008 Posts: 478 |

Posted: Fri Feb 26, 2010 2:36 am Post subject: |

frag.machine wrote:
IIRC they are stored as unsigned short values. Unfortunately, that's not enough, as you may already noticed.

Meh. Bit on the gay side there. I'll either have to redo my UV map or add MD3 support, that is, if MD3 fixes it. If not, I'll say fuck all and drop the project or some shit like that.

Back to top |

Spike Joined: 05 Nov 2004 Posts: 944 Location: UK |

Posted: Fri Feb 26, 2010 3:10 am Post subject: |

The MDL format uses 32bit ints for texture coords. So you have texel accuracy, but not sub-texel. MD2 uses 16bit ints for its tex coords (when did you last see a moddel with a texture wider than 32k pixels?), so no better. MD3s use floats, and thus permit sub-texel accuracy.
_________________
What's a signature?

Back to top |

Display posts from previous:

| Inside3d Forums Forum Index -> Modeling | All times are GMT
Page 1 of 1

Jump to:

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2004 phpBB Group