• Advertisement
Sign in to follow this  

[.net] Save .x MeshNormals error

This topic is 2390 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all,

I am trying to save a mesh in .x file, and the I wan to be able to load it.

The problem I have is that the meshnormals are being saved as 0 and the load crashes (if I manually modify the values, it works)

Here is how my x-file looks:


Mesh {
3;
0.000000;0.000000;0.000000;,
0.500000;1.000000;0.000000;,
1.000000;0.000000;0.000000;;
1;
3;[color="#ff0000"]0,0,0;;

MeshNormals {
3;
-0.707100;0.000000;-0.707100;,
0.000000;0.707100;-0.707100;,
0.707100;0.000000;-0.707100;;
1;
3[color="#ff0000"];0,0,0;;
}

and here how I modify it manually in txt so I force it work:


Mesh {
3;
0.000000;0.000000;0.000000;,
0.500000;1.000000;0.000000;,
1.000000;0.000000;0.000000;;
1;
[color="#ff0000"]3;0,1,2;;

MeshNormals {
3;
-0.707100;0.000000;-0.707100;,
0.000000;0.707100;-0.707100;,
0.707100;0.000000;-0.707100;;
1;
[color="#ff0000"]3;0,1,2;;
}


How can I set Mesh and Meshnormal information??

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement