3d Editor
I am trying to create a simple 3d editor and I want to be able to drag out the bottom of a box in a similar fashion to 3d studio max. Here''s a gif explaining what I mean.
http://g0liath.mine.nu/pjupju/explain.gif. I read the article at NeHe on gluUnProject but I get weird results when I try to draw as the coordinates are screwed up. I want Y to be 0.0 and x,z be decided by the mouse position.
if (!understand) ask;
Hi again 
Um, when you say wierd results, wierd how? If the coordinates are just wrong, make sure you are using ScreenToClient to pass the coordinates relative to the window and not the desktop.
Luke.
Hyperdev
"To err is human, to really mess up requires a computer"

Um, when you say wierd results, wierd how? If the coordinates are just wrong, make sure you are using ScreenToClient to pass the coordinates relative to the window and not the desktop.
Luke.
Hyperdev
"To err is human, to really mess up requires a computer"
"To err is human, to really mess up requires a computer"
It seams as only the x coordinate that is affected. It starts drawing from bottom of the visible area and draws to center of screen in a width that varies depending on my mouse position. It also flips so it starts drawing outside the top if I move my mouse high enough within the visible area. If you have sample code of this working it would be appreciated

if (!understand) ask;
I''ll write some sample code a bit later on and mail it to ya. 
Luke.
Hyperdev
"To err is human, to really mess up requires a computer"

Luke.
Hyperdev
"To err is human, to really mess up requires a computer"
"To err is human, to really mess up requires a computer"
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement