Texture a random shape.

Blitz3D Forums/Blitz3D Beginners Area/Texture a random shape.

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.

Hmmm, I am confused - probably because I do not know BlitzMax! At the risk of making a fool of myself, I will have another bash ;)

You said 'In Blitzmax I can apply a texture using Triangle_strip or GL_Polygon with vertex commands'. Vertex commands are 3D, used to create the vertices of a 3D mesh. I was suggesting you create a flat 3D object by creating a vertex at each corner then linking them up with triangles.

You can then apply your loaded texture (Global Texture=createtexture(Size,Size,Flags)) to the 3D surface you have just created. You can not apply textures to a 2D shape, as that 'shape' does not actualy exist (it is just a collection of pixels on the screen).

Sorry if you know all that,
Rhy :)