finding and using triangles in a mesh

Blitz3D Forums/Blitz3D Beginners Area/finding and using triangles in a mesh

3DFish(Posted 2004) [#1]
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


Beaker(Posted 2004) [#2]
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.


3DFish(Posted 2004) [#3]
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?


Rottbott(Posted 2004) [#4]
You could, if you had a big texture with every texture in it, and just adjusted the UV coordinates.


Chad(Posted 2004) [#5]
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.


3DFish(Posted 2004) [#6]
that's a great idea rottbott.

thanks chad..I will have a look at FLE.