question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clipping planes, gamma and scrolling

See original GitHub issue

Description

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

Browser Affected

  • Chrome
  • Edge
  • Firefox
  • IE
  • Safari

OS

  • Android
  • iOS
  • Linux
  • MacOS
  • Windows

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
elalishcommented, Nov 5, 2020

@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.

0reactions
ZeusLTcommented, Nov 6, 2020

@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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Clipping planes, gamma and scrolling · Discussion #2237 · google ...
Clipping planes, gamma and scrolling. ... Scrolling, I need a way to allow page scrolling with a mouse wheel when hovering over model-viewer....
Read more >
Set Clipping Planes - Intergraph Smart Review - Help
You can also set the clipping planes interactively by dragging the plane with the mouse. You can right-click or press ESC to cancel...
Read more >
Rhino 3D - Make 2D, Clipping Planes, Basic Rendered Views
This is the third part of a 3 part lesson on 3D modelling within Rhino. This session focuses on the creation of 2D...
Read more >
6.4. SUMA Clipping Planes - AFNI
Clipping planes can be scrolled (= translated) along their normals and/or rotated around their tangent or cotangent axes, using the mouse or keypresses....
Read more >
clipping plane - Bentley - Product Documentation
Gamma setting for a raster image · Gamma-correct rendered images · Gauss; General. dimension styles ... Scrolling mouse · SD= key-in; Search.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found