Question TriangleStrips to TriangleList

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

emistz

Jr.Coder
Dank Tier Donator
Nobleman
May 3, 2013
71
338
0
Hello gents,

So I've been working on a moddel ripper for d3d9 games to add to the D3DTextureLogger release. So far I got it working fine when dumping models drawn using indexed triangle lists, but when I dump models drawn using trianglestrips it is not working right. It is missing 66% of the triangles or so due to how trianglestrips work. I have a cursory understanding of how trianglestrips work, but not enough to code a function to convert trianglestrips into trianglelists.

Has anyone already tackled this problem before and have some working code to share?

cheers,

emist
 

emistz

Jr.Coder
Dank Tier Donator
Nobleman
May 3, 2013
71
338
0
I just realized I started this thread in the wrong section. If any of the mods can throw it in "Hacking & Help" that'd be awesome.

I've messed around with my code and turned the trianglestrip into an almost complete trianglelist, but parts of the model are missing.
The algo I'm using is:

odd triangles:
f = index-2, index-1, index
even triangles(flip them):
f = index, index-1, index-2

Now, I almost have a complete slenderman, but certain parts of the geometry are missing.

See:

slender.png

Does anyone know what I could be doing wrong?
 

emistz

Jr.Coder
Dank Tier Donator
Nobleman
May 3, 2013
71
338
0
Finally got it to work. I'll post up a tutorial on how it is done if anyone is interested.

The Slenderman Model:
 

c5

Kim Kong Trasher
Dank Tier VIP
Dank Tier Donator
Jul 19, 2012
1,187
19,938
76
Wow, nice job man. Wish I could've helped. I haven't done anything similar before
 
Last edited:

emistz

Jr.Coder
Dank Tier Donator
Nobleman
May 3, 2013
71
338
0
I'll throw a tutorial up later today along with the source code.

I wrote this in C++ just to get the process down, but I plan on adding it to the C# tool I put out a while ago. It'll probably take me a few days to do that though, gotta change everything from accessing the buffers directly to using whatever API SlimDX wants me to use.

cheers,

emist
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods