Jump to content
  • Advertisement
Sign in to follow this  
thedodgeruk

drawing quads

This topic is 2719 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

i am uni , and doing games , we have been given this "quad.x" file to use for particle systems.
is there any way make is smaller to use less proccesing power in the engine ... is there any information that can be got rid off



xof 0303txt 0032

Mesh {
4;
-5.000000;-5.000000;-5.000000;,
-5.000000; 5.000000;-5.000000;,
5.000000;-5.000000;-5.000000;,
5.000000; 5.000000;-5.000000;;
2;
3;0,1,2;,
3;3,2,1;;

MeshNormals {
4;
0.000000; 0.000000;-1.000000;,
0.000000; 0.000000;-1.000000;,
0.000000; 0.000000;-1.000000;,
0.000000; 0.000000;-1.000000;;
2;
3;0,1,2;,
3;3,2,1;;
}

MeshTextureCoords {
4;
0.000000;0.000000;,
0.000000;1.000000;,
1.000000;0.000000;,
1.000000;1.000000;;
}

MeshMaterialList {
1;
2;
0,
0;

Material {
1.000000;1.000000;1.000000;1.000000;;
0.000000;
0.000000;0.000000;0.000000;;
0.000000;0.000000;0.000000;;

TextureFilename {
"Cacodemon_tlxcutout.png";
}
}
}
}

Share this post


Link to post
Share on other sites
Advertisement
You can try to save this mesh in binary form for faster loading, but since this is very small file it will not make big difference.
And you could remove Normals if you have no particular use for it in particle system.
Why do you have to load quad from x file instead create it programmatically?

Share this post


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

  • 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!