Comments (3)
Thanks for the suggestions, I will handle this after the heavy typescript refactoring
from trois.
Hi @luan007, typescript refactoring is done :)
About the texture, you need a param so that every texture will use the same encoding ?
Can you explain what you need about convertSRGBToLinear ?
from trois.
@klevron thank you for your efforts..
I'm referring to pmndrs/react-three-fiber#344
or
pmndrs/react-three-fiber@9f98831
basically to get 'good looking & correct looking' images,
users would do:
rndr.toneMapping = THREE.ACESFilmicToneMapping
rndr.outputEncoding = THREE.sRGBEncoding
after which, when using THREE.Texture
tx.encoding = THREE.sRGBEncoding
must be called to ensure correctness of color space, or it would result in visual inconsistencies.
Same logic applies to THREE.Color after tonemap
col.convertSRGBToLinear()
should be called when using tonemapping.
Thus in react-three-fibers, due to being essentially wrapper of three objects, these things can be called 'automatically' upon mount / change, thus I'm thinking if it is possible to do the same in vue context.
Thank you again!
from trois.
Related Issues (20)
- typo: radiusSegments should be radialSegments
- how can i use lil-gui with trois.js?
- Renderer's resize funtion seems not to work when inside a flex-item? HOT 1
- How can we access and use delta of the renderer component? HOT 1
- Metalness => model.traverse is not a function HOT 2
- Is There a way to add an HDRI image as sky for better light? HOT 1
- why canvas is blank even tho the renderer works as expected?
- Performance with large number of geometries
- JSON loader?
- THREEJS. 0.149.0 brake TROISJS HOT 3
- Is PointMaterial fully supported? HOT 2
- DRACOLOADER.js how to extend the troidjs Loader HOT 1
- stopPropagation in events
- How to draw lines in troisjs, and how to use it with three.js? Thanks!
- umd version
- how to drag any model without TransformControls
- How to use trois with CSS3DRenderer? HOT 1
- Your test.glb file works perfectly. However, I only get a black screen with my own glb files HOT 1
- Can support for SpriteMaterial be added?
- How to use OrthographicCamera instead of PerspectiveCamera 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 trois.