Comments (14)
https://bugs.chromium.org/p/chromium/issues/detail?id=1472979
from three.js.
I tested similar situations without three.js in desktop Chome.
I think this is a browser issue.
https://jsfiddle.net/obL2szdc/
from three.js.
That is expected. Both Edge and Chrome are built on top of Chromium. Therefore, the behavior should be the same.
Regarding Firefox, that is another browser issue. You could report the bug in Bugzilla.
from three.js.
Indeed. The fiddle does work in Firefox and Safari.
Since the test case breaks with Chrome Canary 118.0.5949.0 as well, I'll file a bug at the Chromium bug tracker.
from three.js.
@yomotsu Yes, you are right. With too much trust in Google Chrome, I was so immersed in computing the transform to solve interaction problems that I forgot about browser compatibility issues.
from three.js.
BTW, I found another problem with the demo. When I scroll, the element disappear😹
Not sure this happens on other devices though...
Screen.Recording.2023-08-15.at.23.47.26.mp4
from three.js.
I believe the issue can be worked around with this change – would someone be able to test against one of the original issues in this thread?
from three.js.
The edge[115.0.1901.203 (Official Version) (64-bit)] browser also has this problem. Although Firefox can interact normally, some css behavior is still problematic. For example, the border exception and the mesh edge is jagged.
from three.js.
That is expected. Both Edge and Chrome are built on top of Chromium. Therefore, the behavior should be the same. Regarding Firefox, that is another browser issue. You could report the bug in Bugzilla.
Yes, run the example with Edge[115.0.1901.203] 、 Chrome[115.0.5790.171] and the elements disappear, Firefox[116.0.2] works ok. It seems that using CSS3DRenderer will encounter more compatibility issues.
from three.js.
BTW, I found another problem with the demo. When I scroll, the element disappear😹
Maybe this gets automatically be fixed when the interactivity issues are getting solved. I guess I'll wait with filing another bug at the Chromium bug tracker until the first one is resolved.
@jouvychen Any chances to provide a live example with CSS3DRenderer
that demonstrates the Firefox issue? I guess I can make a report at Bugzilla.
from three.js.
顺便说一句,我发现了演示的另一个问题。当我滚动时,元素消失😹了
也许当交互问题得到解决时,这会自动修复。我想我会等待在 Chromium 错误跟踪器上提交另一个错误,直到第一个错误得到解决。
有机会提供一个演示Firefox问题的现场示例吗?我想我可以在Bugzilla做一个报告。
CSS3DRenderer
@Mugen87 Hi, when I published this as an online example, I was surprised to find that the border style issue no longer exists, but it still exists in local development. The linkCSS3DObject
from three.js.
I had similar behavior last month on a PC laptop with CSS3D. The bug behavior is reproducible with GUI panel bug behavior GUI panel.
In this case, a GUI panel on top would leave an inset mask relative to the bottom-left. Here the CSS3D would be invisible. If you moved the Controls, the inset rectangle stayed fixed with the GUI panel, as the content underneath was partially invisible.
It seemed related to position:static/absolute and/or some unrepresented scroll offset. Definitely sliding content and a bad offset from an obscure element.
from three.js.
I'm not positive this is exactly the same issue, but it's similar enough that I'll share. I'm using CSS3DRenderer to display an HTML element within a container element that uses position:sticky
and is located inline within the page body. The transformed 3D position of the object differs greatly in Chrome, depending on whether el.offsetLeft
for the container is a whole number or not. Interestingly, Chrome DevTools highlights the element in the expected position either way, regardless of where the element is actually displayed.
.offsetLeft
is a whole number:
.offsetLeft
is a non-whole number:
Note how the div's highlight from DevTools does not match the text in the second screenshot.
I'm also seeing a very similar issue in Safari, where the object is offset vertically if the height of the container is not an even number.
I'll see if I can create a simple reproduction for both issues...
from three.js.
I've filed a new issue for the problems I mentioned above:
from three.js.
Related Issues (20)
- Chrome Text Distortion When New Elements Are Added HOT 13
- Not displayed after importing 3MF and AMF files HOT 1
- OrbitControls 's change Event dispatch wrong when dampling is true HOT 1
- Documentation for TeapotGeometry (add-on) HOT 2
- Editor: Missing `User Data` input in Geometry tab HOT 1
- readRenderTargetPixels() works for WebGLRenderTarget but is all 0 for WebGL3DRenderTarget HOT 21
- Please allow FBXLoader to use every non native texture that ThreeJS can load HOT 1
- It seems like there is an issue with outputNode in connection with depthNode HOT 1
- Rendering a scene including points with an override material causes inconsistent behavior HOT 2
- Target is not updated when panning the camera in ArcballControls HOT 1
- [WebGPU] Control Access Barriers HOT 1
- Suggestion of docs improvement. HOT 1
- ShaderMaterial for Hand breaks their motion tracking in WebXR (Quest3 tested) HOT 2
- [TSL] Invalid output, missing conversion of type in some cases HOT 1
- [TSL] Adding .label to a uniform prevent it from being updated through .value =
- TextureBinding includes writable usage and another usage in the same synchronisation scope HOT 7
- The download address for the homepage is still version 164, not version 165 HOT 1
- TSL: Missing While Support
- Please allow full testing on components by running CI/CD tests in real DOM environment and support loading assets from disk
- rotate-to-cursor on touch events HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from three.js.