Jump to content

  • Log In with Google      Sign In   
  • Create Account


How can i create a trianglestrip from a triangle list in c#


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
5 replies to this topic

#1 jor1980   Members   -  Reputation: 142

Like
0Likes
Like

Posted 16 March 2013 - 11:02 AM

Hi i am working on c# project, i need to create a file for a game that reads faces of a mesh from a trianglestrip, the problem is that i have the mesh  face´s data into triangle list and i need to convert in c# this triangle list to a triangle strip. So i would like to know if there is a free api for c# or something similar that allows me to do what i need



Sponsor:

#2 KulSeran   Members   -  Reputation: 2299

Like
0Likes
Like

Posted 16 March 2013 - 11:59 AM

Maybe someone's done a port of NVidia's NVTriStrip library? http://www.nvidia.com/object/nvtristrip_library.html



#3 metsfan   Members   -  Reputation: 654

Like
0Likes
Like

Posted 16 March 2013 - 12:03 PM

The process you are looking for is called "stripification". There are well known algorithms and libraries for this in c and c++ but not sure about c#. You could attempt to implement it yourself using one of these algorithms http://www.codercorner.com/Strips.htm. Good luck.

#4 jor1980   Members   -  Reputation: 142

Like
0Likes
Like

Posted 16 March 2013 - 01:08 PM

The process you are looking for is called "stripification". There are well known algorithms and libraries for this in c and c++ but not sure about c#. You could attempt to implement it yourself using one of these algorithms http://www.codercorner.com/Strips.htm. Good luck.

This link sends me error, Is it right?



#5 nobodynews   Crossbones+   -  Reputation: 1801

Like
0Likes
Like

Posted 16 March 2013 - 06:15 PM

The link includes an extrea '.' after 'htm' remove it and it's fine.


C++: A Dialog | C++0x Features: Part1 (lambdas, auto, static_assert) , Part 2 (rvalue references) , Part 3 (decltype) | Write Games | Fix Your Timestep!


#6 jor1980   Members   -  Reputation: 142

Like
0Likes
Like

Posted 22 March 2013 - 06:15 AM

i was lloking at the code here  http://www.codercorner.com/Strips.htm as i don´t know c++ i think i can´t convert that code to c#.

I was thinking about another idea, if i had that code compiled into a dll could i use dll import from c# to use some of its functions?

if it was possible i am going to have the problem that the souce code is written in c++ 6 and i can´t open it in visual c++ 2010






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