Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Stash5182

X file questions

This topic is 6116 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, I have a couple questions about using x files. One, I understand what a normal to a face is but I understand it when I see it an x file, here for a cube... MeshNormals { 8; // define 8 normals 0.333333;0.666667;-0.666667;, -0.816497;0.408248;-0.408248;, -0.333333;0.666667;0.666667;, 0.816497;0.408248;0.408248;, 0.666667;-0.666667;-0.333333;, -0.408248;-0.408248;-0.816497;, -0.666667;-0.666667;0.333333;, 0.408248;-0.408248;0.816497;; 12; // For the 12 faces, 3;0,1,2;, // define the normals 3;0,2,3;, 3;0,4,5;, 3;0,5,1;, 3;1,5,6;, 3;1,6,2;, 3;2,6,7;, 3;2,7,3;, 3;3,7,4;, 3;3,4,0;, 3;4,7,6;, 3;4,6,5;; } I dont quite follow this, what do you numbers in each place mean?, maybe Im too tired or slow or something, I know it seems like Im jumping into something without truly knowing what Im doing, thats why Im just looking for any help to get me somewhere Another question I have, is in an x file for a cube you''d have 8 vertices, but what would you do if you wanted a sphere? Well sorry if I wasted anyones time who read this, but Id appreciate any advice or help. Thanks a lot!

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
I dont quite follow this, what do you numbers in each place mean?

>they''re index, like index after vertexes

Another question I have, is in an x file for a cube you''d have 8 vertices, but what would you do if you wanted a sphere?

>create sphere in 3DMAX and take a look at your x file. Number of points will of figure.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!