• Advertisement
Sign in to follow this  

NVTriStrip and texture-coordinates?

This topic is 4839 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi! I've succesfully used NVTriStrip to stripify my model (a box). My problem arises when I wanna apply textures... Since my box only have 8 vertices, but 24 texture-coordinates I can't think of a way to get the correct texture-coordinate to a specific vertex? I.e. a vertex is shared by three faces... :) Best regards Roquqkie!

Share this post


Link to post
Share on other sites
Advertisement
Anytime a vertex needs different data, you must create a second vertex. Most modelling tools just have position in the vertex, and put the UVs and normals in the face. In realtime 3D (DX or OpenGL), that face data needs to be combined with the vertex data. This may mean creating a duplicate of the vertex, and updating the face list (and possibly morph targets) to refer to this new vertex.

To make a correctly lit, or textured cube, you'll need 24 vertices.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement