The box still will not draw. I have now spent more time drawing a variable-sized box on the screen than I did implementing and debugging the band selection itself.
I hate 3D. I really do. And I don’t hate it because it’s hard or math-intensive. I hate it because it’s undebuggable. Nothing shows up on the screen. Why? You’ve no idea. All you can do is fiddle, fiddle, fiddle with your numbers until something shows up, which hopefully will allow you to figure out what you were doing wrong and where to go from there. But if nothing ever decides to show up? You’re screwed, and that’s where I am right now.
I should have epic armies clashing right now. Instead I’m hung up on drawing a box on the screen. Gah!
Perhaps it is drawing, but just offscreen somewhere. Maybe it is a problem with using a different origin than you think you’re using.
Can you hardcode a box to be drawn next to one of your characters?
Getting orthographic rendering to work in D3D is not one of the things you figure out. It’s one of the things where you search the Internet for example code.
I agree with Ryan! 🙂
Maybe one of two things is happening..
1. You’re not storing the view matrix before/after switching to ortho mode..??
2. If you’re using GetTransform, make sure your
Direct3D device isn’t created with the D3DCREATE_PUREDEVICE flag..otherwise GetTransform will “silently” fail..??
Instead of drawing a box around the chosen units, is it feasable to just highlight the banded units with a bright color? (or draw them bright-green circles underneath each units’ feet)?
hth, sorry to hear you’re having such agony!