finding and using triangles in a mesh
Blitz3D Forums/Blitz3D Beginners Area/finding and using triangles in a mesh
| ||
hi there I have a terrain mesh. I would like to paint specific triangles on the mesh with different textures. I would like to paint the triangle, each time the player in my game walks over it. I know I can use Counttriangles. But i'm not sure how to use the specific triangle? thanks Conrad http://www.cngaming.co.za |
| ||
As a rough guide: You will need to create a terrain mesh for each texture you want to use. You will need to have the triangles unwelded so they can be manipulated independently. Hide and show each triangle using its vertices vertex alpha. http://www.blitzbasic.com/b3ddocs/command.php?name=TriangleVertex&ref=3d_cat http://www.blitzbasic.com/b3ddocs/command.php?name=VertexColor&ref=3d_cat Hope this helps. |
| ||
hi beaker Thanks for the info. So what you are saying, is that it's not possible to do a entitytexture on a single triangle in the terrain mesh? |
| ||
You could, if you had a big texture with every texture in it, and just adjusted the UV coordinates. |
| ||
I had the same problem, if you dont mind using another program and creating your own terrains again, use FLE. I love FLE, quick, easy, and fast. Hopefully they keep updating and soon have a place entity button which can import other model formats. |
| ||
that's a great idea rottbott. thanks chad..I will have a look at FLE. |