Jump to content
  • Advertisement

zukisan

Member
  • Content count

    1
  • Joined

  • Last visited

Community Reputation

100 Neutral

About zukisan

  • Rank
    Newbie
  1. 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??
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!