Do you know those moments wher you can't believe your eyes?
Today was on of those moments.
I stood up, maundered to the window and as I opended the curtain, a beam of white blind my sight.
SNOW!! Snow in March!!
That was a great start into the day. It had to be.
My cold is nearly gone, and I did some stuff for my Editor project, Mad-Ed.
I currently working on the little feature, that makes it possible to click 3D objects with the cursor, which is quite interesting.
I already made some stuff featureing the cursor and its connection to the 3D world, so the basics only where copy and past stuff, but that what made the new thing so interesting was that, that the mouse class form XNA, only provides the absolut position of the cursor, starting on the top left corner of the screen. So if your game window is not located at that point you have to use a offset, to get correct results.
Sounds easy.
But how to get the actuall position of an windows form, while its not in full screen?
... Don't look to me, I don't know it either!
I also dicovered that the bounding spheres, of my loaded modes, are beyond good and evil.
The bounding sphere of the table mesh, from the XNA Picking sample, spans the entire field of view! ... just somthing else I have to work on.
But on the other hand dose the actuall clicking feature code work, I just can't controll what I click ...
Greg the Mad
Tuesday, March 18, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment