Skip to main content
Post Closed as "Needs details or clarity" by bummzack, Kromster, concept3d, congusbongus, House
Clarified based on author comments.
Source Link
Anko
  • 13.5k
  • 10
  • 56
  • 82

DOM to GL Coordinate Space How are CSS and WebGL coordinates related?

I've been looking to find some good resources for converting DOM coordinates to GL. Anyone have any good information/sources/etc.? I'd like to build a simple framework combining somewhich rendering combines web page DOM elements to GL and having themwith WebGL, such that they're manipulable in the same coordinate space.

How does the plain CSS coordinate system relate to the one used by WebGL? How can I make sure the two line up (e.g. have a div and a WebGL quad transformed the same way)? Can I expect CSS3D transform coordinates to correspond to WebGL?

DOM to GL Coordinate Space

I've been looking to find some good resources for converting DOM coordinates to GL. Anyone have any good information/sources/etc.? I'd like to build a simple framework combining some DOM elements to GL and having them in the same coordinate space.

How are CSS and WebGL coordinates related?

I'd like to build a simple framework which rendering combines web page DOM elements with WebGL, such that they're manipulable in the same coordinate space.

How does the plain CSS coordinate system relate to the one used by WebGL? How can I make sure the two line up (e.g. have a div and a WebGL quad transformed the same way)? Can I expect CSS3D transform coordinates to correspond to WebGL?

Source Link

DOM to GL Coordinate Space

I've been looking to find some good resources for converting DOM coordinates to GL. Anyone have any good information/sources/etc.? I'd like to build a simple framework combining some DOM elements to GL and having them in the same coordinate space.