Comments (3)
The transmission pass of Three.js doesn't render transparent objects. By default both the <a-text>
and <a-image>
primitives are marked as transparent. For images you can set transparent="false"
. However, the built-in text rendering does effectively need to be transparent.
Note that it isn't recommended to use transmission when targeting stand-alone/mobile VR headsets as the transmission passes cause expensive operations that impact performance too much. For context there is ongoing work to improve the transmission pass in Three.js (see mrdoob/three.js#28078), but it'll obviously take time before it lands in Three.js let alone A-Frame, assuming the changes get incorporated.
from aframe.
I see, Setting transparent=false end up getting the a-text and a-image material blur in general, but viewing from behind an object also with transmission they now don't get rendered at all.
I tried to write my own shades and custom materials as well but I wasn't successful . However, I'm not sure if this is a limitation on three.js transmission as I've seen in reactXR doing this exact effect on their examples.
https://codesandbox.io/p/sandbox/router-transitions-4j2q2?file=%2Fsrc%2FApp.js
I wonder if this could be ported to a-frame since they are using THREE.physicalMaterial under the hood.
https://github.com/pmndrs/drei?tab=readme-ov-file#meshtransmissionmaterial
Thanks for explaining btw!
from aframe.
Under the hood A-Frame is pretty much vanilla Three.js, so anything that can be done with Three.js can be done with A-Frame with some effort as well. Looking at the MeshTransmissionMaterial
from drei you linked, it seems that it specifically supports "seeing" other transmissive and transparent objects through it, so that might just be what you're looking for.
I don't know if it properly works in WebXR, though. So that's something you'll have to find out if you attempt porting it.
from aframe.
Related Issues (20)
- 2w- HOT 1
- xr-mode-ui: Add explicit full screen mode HOT 8
- Video playback stops when entering immersive mode in Vision Pro HOT 17
- <a-scene> accessing my webcam HOT 4
- Hiding VR mode UI not working in 1.5.0 HOT 2
- a-videosphere: 180 degree support and SBS support. HOT 2
- Component/attribute inheritance and precedence for primitives HOT 5
- ar hit test can only place once,but i need it can place many times HOT 1
- Updating reflection not possible when using postprocessing HOT 2
- Sudden increase in GPU load when using postprocessing HOT 3
- Utils device isIOS and isMobile checks fail on iPad Pro 12.9 Safari HOT 5
- oob-collider not setting el.object3D as default HOT 16
- Add documentation for before/after API
- Duplicate pinch events on the Quest Pro HOT 3
- OBB isn't centered (includes proposed fix) HOT 6
- Support for transient input on Vision Pro HOT 1
- a-scene Chrome non-passive violation warnings for touchmove and touchstart event handlers HOT 5
- hand-tracking-controls component detaches children (+fix & ideas) HOT 2
- Loading Insta360 Videos 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 aframe.