Sign in to follow this  
Roquqkie

NVTriStrip and texture-coordinates?

Recommended Posts

Roquqkie    100
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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this