Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Optimize mesh to generate trianglestrip


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 jor1980   Members   -  Reputation: 142

Like
0Likes
Like

Posted 25 March 2013 - 05:59 AM

Hi, i needto transform a mesh based on trianglelist into a mesh based on trianglestrip, so i am trying to do it using Mesh.Optimize but i think that i haven´t obtain a mesh based on triangle strip.

 

here is my code:

 


cloneMesh.GenerateAdjacency(0.5f);
cloneMesh.ComputeNormals();
            
SlimDX.Direct3D9.Mesh meshOptimizada = cloneMesh.Optimize(SlimDX.Direct3D9.MeshOptimizeFlags.StripReorder);

 

 Is it possible to do what i want using slimdx?if it not How can i make this transformation?



Sponsor:

#2 Amr0   Members   -  Reputation: 1134

Like
0Likes
Like

Posted 25 March 2013 - 08:55 AM

Indexed triangle lists are generally more efficient on modern hardware than triangle strips. See this thread for a good discussion on the same subject.



#3 jor1980   Members   -  Reputation: 142

Like
0Likes
Like

Posted 25 March 2013 - 09:57 AM

I want triangle strip no because of efficience but because the file format over i want to import my mesh needs trianglestrip, so i need to create the strip from a trianglelist and i want to know if i can do it using some directx function, i tried it with mesh.optimize but i couldn´t do it, so i want to know if what i want is possible



#4 BornToCode   Members   -  Reputation: 936

Like
0Likes
Like

Posted 25 March 2013 - 01:41 PM

NVIDIA has a tool for that. It is pretty old though. It would convert your TriangleList to TriangleStrip for you. I tried looking for a link for you, but it seem that the tool is deprecated and no longer supported. I cannot even find a link to it. Also to answer your question as well, DirectX has no function in there that will convert from List to strip.

You will have to either find a tool that will do it for you or write one yourself.


Edited by BornToCode, 25 March 2013 - 01:44 PM.


#5 eppo   Crossbones+   -  Reputation: 2538

Like
0Likes
Like

Posted 26 March 2013 - 06:39 AM

Nvtristrip is so slow, it's practically unusable on larger meshes.

 

The only reason to still use strips instead of lists is to save a bit of memory space. What's most important is the (optimal) ordering of triangles in a list/strip. Manually generating a strip based on what D3DX.OptimizeFaces and D3DX.OptimizeVertices output, should be fairly trivial.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS