Game Development Community

Triangle strips and custom shader problems

by Josh Moore · in Torque Game Engine Advanced · 06/27/2006 (5:36 pm) · 3 replies

I'm having a very hard time trying to get tri-strips to work with my vertex shader: It seems that no matter what I do, manipulating the vertex positions in shader simply does not affect the tris at all. When using a triangle list, however, it worked just fine. I honestly have no idea why the triangle strips won't adhear to the vertex positions that are getting set in my shader. And yes, I've made sure that the shader is working.

#1
06/27/2006 (6:59 pm)
Nevermind about this, I figured out what I was doing wrong:
It turns out that you have to have GFXVertexFlagTextureCountX flagged in your vertex definition in order for texture coordinates to be properly passed into the shader. It took me the majority of a week, but I finaly got this to work. Such a stupid and small mistake, but it's been driving me crazy for days trying different rendering schemes, shaders, and rewriting tons of code. And now I've wasted way too much time to even be glad that it's working.

Ironic that a couple of hours after I post in the forums for help, I get it working myself.
#2
06/27/2006 (7:08 pm)
That happens to me all the time. I post and then figure it out right after. Feel like a retard after that.
#3
06/27/2006 (9:40 pm)
Join the crowd...dont feel dumb...at least you are not like some people i work with who cant even ask for help.....whole deadlines go by with out a word...until last minute...lol