xeogl
xeogl copied to clipboard
some question about picking_canvas_pickSurfaceNormalAndUV
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