trouble creating meshes from scratch in B3d

Blitz3D Forums/Blitz3D Programming/trouble creating meshes from scratch in B3d

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

OK, I'll quote myself;
Well, got it working. Dunno if it's the right way to do it. You need to set the U V clamps for the vertex, and also each side needs its own 4 vertexes(I was reusing the ones thet are in the same pos, but this mucks up the texture)

Here is the code for those interested (Only 3 sides of the cube are done)


As you can see, I did have a problem, but I sorted it out. I posted the answer just in case someone reading the post had a similar problem.

Anyway your modification mirrors the texture upwards, use a texture with letters to see what I mean (Interesting though, might come in handy sometime). Thanks anyway for your help.