Clipping planes, gamma and scrolling
See original GitHub issueDescription
Is there a way to adjust near/far clipping planes so we could view interiors? (view live demo)
Gamma, I have found that model-viewer models are darker than in other software (when both are without environment maps), I think it might have something to do with gamma values.
Changing value in line 56409 - this.threeRenderer.gammaFactor = 3;
seems to do the trick for me, but I don’t want to have this file local just because of 1 modified value.
Scrolling, I need a way to allow page scrolling with a mouse wheel when hovering over model-viewer. Maybe this https://github.com/google/model-viewer/issues/1679 or this https://github.com/google/model-viewer/issues/1424 (I don’t feel any difference after the update)
tl;dr: please expose clipping planes and gamma settings, add controls-ignorezooming-allowpagescrolling attribute.
Live Demo
https://archy.lt/modelviewer/ (It is fairly not optimized at this point, 100MB file, might take a while to load)
Version
- model-viewer: https://unpkg.com/@google/model-viewer/dist/model-viewer.js 1.3.0?
Browser Affected
- Chrome
- Edge
- Firefox
- IE
- Safari
OS
- Android
- iOS
- Linux
- MacOS
- Windows
Issue Analytics
- State:
- Created 3 years ago
- Comments:11
@mjvo you’re the second user to ask for cross-sections. I agree that would be cool, though it’s not on my short list of features to implement. However, if you’re interested, I’d be happy to merge a contribution along these lines.
@mjvo I was thinking of something more simple, to have a camera move past a part of model, but what you shared works as well.