Jump to content

Setting Mesh Face Order for llDetectedTouchFace with Textures and Materials


OldVamp
 Share

You are about to reply to a thread that has been inactive for 573 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

In Blender and maybe other programs the face order of meshes is set alphabetically.

To get faces with llDetectedTouchFace() in scripts in the order you want, name your materials and maybe even textures alphabetically such as :

Quote

aa red
ab orange
ac yellow
ad green
ae blue
af indego
ag violet
ah white

DO NOT use numbers for the material names to set the order as blender seems to strip them off in the collada file and your faces will be out of order using the first letter of the material name.

Quote

1 red
2 orange
3 yellow

While having the order exact is not super critical for scripts or scripting, it can lower the amount of mental gymnastics you have to do when things are in the expected order.

2066308065_facematerialnameing.thumb.png.b4f8ca0f30bb5e1d06974aca38ea7788.png

Edited by OldVamp
wording
  • Like 4
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 573 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...