Comments (3)
I can enable image transparency for .png by setting transparent to true on the image material.
But when used with a frame, it will use the color of the frame as a background.
Do we need the inside of the frame to be transparent when used with a png ?
If yes, the frame component will need some adjustments otherwise it's just about the transparent property on the image material.
Also if I understood correctly, it's up to the user to enable this transparency or not right ?
Or are we going with a default transparent material when a .png is used ?
I see pro and cons to both approch.
I'll do a PR when I'll have those infos :)
from spacesvr.
Thanks for this note I forgot about the frame back. Transparency doesn't need to be the default setting. I think it would be nice to have the inside of the frame be transparent as well and it shouldn't be too difficult a fix either. Also yes, the user will be able to toggle transparency.
from spacesvr.
Also I just thought of this but it would be cool as well to add a frameColor attribute to the image component, but I'll make a new issue for this
from spacesvr.
Related Issues (20)
- collidable component doesnt load automatically HOT 2
- SnapTurn in VR look strange HOT 2
- Tool Belt opens on mobile with inaccurate taps HOT 1
- Snapshot interpolation on multiplayer entities HOT 1
- Adaptive resolution based on fps
- Fix yarn link HOT 1
- frameColor attribute to Image component
- KTX2 texture support for images on mobile HOT 1
- Cover iPhone notch on landscape HOT 2
- Add social media link component
- New Pause Menu / UI Overhaul HOT 3
- Pause videos when outside of frustrum
- FacePlayer type is invalid HOT 2
- Fail to load texture HOT 2
- no Drei Components not working inside StandardEnvironment HOT 1
- Can't resolve 'three/examples/jsm/controls/DeviceOrientationControls' HOT 2
- Upgrade r3f, drei, 3.js, and associated packages HOT 1
- Gamepad support
- Add snap turn with q/e
- React-dom security problem in Sandbox with React 18 from link on your readme HOT 2
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 spacesvr.