xeogl icon indicating copy to clipboard operation
xeogl copied to clipboard

some question about picking_canvas_pickSurfaceNormalAndUV

Open joeslyon opened this issue 6 years ago • 0 comments

Description of the problem

Location: examples/picking_canvas_pickSurfaceNormalAndUV.html

uvPosDiv.style.left = Math.floor(left + uv[0] * width) + "px";
uvPosDiv.style.top = Math.floor(top + height - (uv[1] * height)) + "px"; // Correct for our texture Y-flipping
  • The origin in UV coordinates is lower-left. It's right when I don't correct for texture Y-flipping, but I don't know why
  • And i think it may be better to set the uvpos center to match the TextureCoordinate .
  • Failed to load resource textures/height/everest.png
uvPosDiv.style.left = Math.floor(left + uv[0] * width - 12) + "px";
uvPosDiv.style.top = Math.floor(top + uv[1] * height - 12) + "px";
xeogl version
  • [ ] Dev
  • [x] Master
  • [ ] ...
Browser
  • [ ] All of them
  • [x] Chrome
  • [ ] Firefox
  • [ ] Internet Explorer
OS
  • [ ] All of them
  • [x] Windows
  • [ ] Linux
  • [ ] Android
  • [ ] IOS
Hardware Requirements

joeslyon avatar May 12 '18 18:05 joeslyon