3,201 reputation
612
bio website stevehazen.wordpress.com
location California
age
visits member for 2 years, 9 months
seen yesterday
stats profile views 116

email: steve (dot) hazen @ gmail (dot) com


1d
comment Can you use a struct instead of an array to hold vertices in directx?
For the issue of resizing the data set, that post recommends using a std::vector instead of an array. So why isn't your question: "Can you use a std::vector instead of an array to hold..." ?
May
20
comment Hexagon collision detection for fast moving objects?
Are you committed to boxes? The boxes you drew can be represented by circles with minimal loss of accuracy but a comparatively easy collision algo. Search for swept circle collision detection. If your length/width ratio moves away from 1, the less attractive this would be though.
May
15
comment Model disappears when drawn twice?
The code you posted will only draw one instance of the model, where's your code for drawing the other instance of the model?
May
14
comment Matrix represents same rotation with different euler angles
As intuitive as Euler angles seem at first, they are equally that evil when you go beyond 2d. In 3d, avoid them whenever possible.
May
4
awarded  Nice Answer
Apr
19
comment Which should I learn: DirectX or XNA?
It may be worth pointing out that learning Xna binds one to DirectX9 which is slowly slipping into obsolescence. Whereas learning DirctX itself you would start with DirectX11 which is growing into the future.
Apr
6
answered Transform translation relative to world space
Apr
6
revised How to implement a basic arcball camera in OpenGL with GLM
deleted 2 characters in body
Apr
5
answered How to implement a basic arcball camera in OpenGL with GLM
Apr
4
comment camera2d class will not work
seriously?? Just here's my code, somebody fix it please?. -Or- did you have a specific question about your snippet that you'd like to ask?
Apr
3
answered How can I manage large numbers of objects in a physics engine?
Mar
28
comment How to rotate one object around another moving object in 3-d?
Not sure why it's not working for you, maybe if you post your update code we can see.
Mar
26
comment How to rotate one object around another moving object in 3-d?
dt means 'delta time'. It's the amount of time that's elapsed since the last update. In Xna it is float dt = (float)gameTime.ElapsedGameTime.TotalSeconds;
Mar
26
comment How to rotate one object around another moving object in 3-d?
yes, store last frame's position of the orbited object and subtract the current frame's orbited object's position. Ultimately, you have to invoke the same motion on the orbiting object that you are invoking on the orbited object. So the difference in position of the orbited object from last frame to the current frame represents it's motion since last frame. add that difference to the orbiting object and they are moving together.
Mar
25
answered How do I create a 3rd person camera?
Mar
25
answered How to rotate one object around another moving object in 3-d?
Mar
20
comment How should I calculate the new angle/direction of my ball hitting a wall?
Why not open Xna's built in method Vector2.Reflect() in your favorite assembly viewer like reflector or dotPeek and see how Xna does it?
Mar
11
revised Accumulating rotations for camera
deleted 15 characters in body
Mar
11
answered Accumulating rotations for camera
Mar
5
comment Why can't my .exe find my .fx file?
A shot in the dark here, but if you are using VS2012 and your app has 'windows store support' selected, try right clicking your fx file, select properties, and verifying that 'Content' is set to yes. This gives VS the hint that it needs to be sent to the AppX folder during build along with the exe.