The Abandon Wars

Monday, May 07, 2007

Last weekend was quite fruitful. I finished skinned animations ('fraid I forgot to screen shot it) and started working on transparent and translucent materials.

The screen shots below are of two translucent boxes, one inside the other, and demonstrate that the draw order is correct.


Of course I haven't posted pictures of the objects which didn't work but hopefully they will be fixed and ready to go next weekend.


Which brings me too a close... so,

Later!

Tuesday, May 01, 2007

Good news everybody! I did some work this weekend. The bad news (isn't there always) is that I have nothing to show for it. Mostly I'm just more confused than when I began.

The screen shot below shows the model from a previous post skinned. Um... as you can see something is wrong. She wasn't supposed to turn into a polygon soup!


Without getting intimate with the matrices involved I can't tell whats wrong - and I really, really didn't feel like doing that yet. I'm guessing it has something to do with matrices that are rotated in their rest position, but speculation isn't useful at this point.

More interestingly I came across some strange behaviour when using software vertex blending on an nVidia graphics card. Verticies with only one matrix affecting them are always using the zero'th world matrix regardless of what the index in the vertex stream is set too.


It works fine in both DirectX's reference mode and on an ATI graphics card. A work around was to always use at least two matrices for blending and just set the second matrices weight to zero.


Another upshot of the two matrix method is that the entire cylinder is drawn in one call. Previously it was two, one for the single matrix blending and the other for two.

And with this very grey looking post I bid you good night.

Later!