Skip to content

Commit

Permalink
Make orbit sphere size slider logarithmic
Browse files Browse the repository at this point in the history
  • Loading branch information
anj1 committed Mar 2, 2024
1 parent 0cd318d commit aa88a01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gausssplatrenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ function renderMain(canvas, data, cameraParams, pipelineType, interactMod=null)
const sphereSizeSlider = document.getElementById('sphereSize');
if (sphereSizeSlider !== null) {
sphereSizeSlider.addEventListener('input', (event) => {
viewParams.sphereRadius = 0.1 * parseFloat(event.target.value);
viewParams.sphereRadius = 0.03*Math.exp(0.05*parseFloat(event.target.value));
});
}

Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<input type="range" min="0" max="100" value="30" id="sphereSize" />
</div>
<div>
<label for="showSpheres">Show orbit radius sphere:</label>
<label for="showSpheres">Show orbit sphere:</label>
<input type="checkbox" id="showSpheres" />
</div>

Expand Down

0 comments on commit aa88a01

Please sign in to comment.