The Khronos Group - a non-profit industry consortium to develop, publish and promote open standard, royalty-free media authoring and acceleration standards for desktop and handheld devices, combined with conformance qualification programs for platform and device interoperability.

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

PiloGL -Dragging Object relative to te viewport

Hello everybody!
This is my first post here.
I have one Question.
I'm using PhiloGL (a WebGL Framework) to create a simple "drag & drop" engine of Objects like a Square or triangle.

My first attempt doesn't work. The Square is following my Mouse, but it's not relative to the cam. In the middle of the viewport it's ok, but the farther im* going (with my mouse) to the edges of my viewport, the farther goes my Square from the Mousekoordinates in the direction of the edge. Do you know what i mean?
There is an Event for relative Mousekoordinates but i dont know how to use it.