Is this Single Surface again...

Blitz3D Forums/Blitz3D Programming/Is this Single Surface again...

Rob Pearmain(Posted 2003) [#1]
If a create a simple mesh (4 vertices, 2 triangles), and load a texture and apply it, how do I create another mesh with the same texture and have a single surface.

For example, if I do copymesh on the first mesh, but change its UV coardinates to reference another section of the same texture, is this still on the same surface.

if I had a 1000 copies of the mesh, each with different UV coardinations to the same texure (Loaded once), is this single surface?

Cheers


(tu) sinu(Posted 2003) [#2]
what if you use addmesh after setting the uv on the copied mesh. i think that works but im not to clear on single surface stuff.


Binary_Moon(Posted 2003) [#3]
For example, if I do copymesh on the first mesh, but change its UV coardinates to reference another section of the same texture, is this still on the same surface.


Nope. Copy mesh copies the mesh and creates a new mesh. You would then have two meshes each with one surface.

if I had a 1000 copies of the mesh, each with different UV coardinations to the same texure (Loaded once), is this single surface?


Nope. They all need to be on the same mesh. I don't know if add mesh does what you want.

What you need to do is create yuor first mesh. Then create your first surface with your mesh as a parent. Then for each 'quad' you want to create you would have to use the surface you have just created.


Rob Pearmain(Posted 2003) [#4]
Cool, so if I created a quad on the mesh with the surface I created, how could I say "Use This Surface", in fact how can I say to any mesh "Use This Surface".

Cheers


Binary_Moon(Posted 2003) [#5]
When you create the verts you specify a surface. As long as you always specify the same surface it will use a single surface.


Rob Pearmain(Posted 2003) [#6]
Finally, I understand ;), thank you so much