I would like to create a button using dat.gui library. In a perfect world, this would work like this:   gui.add("button", "click me");...
I am quite new with dat.gui. According to this little tutorial, you can invoke an object's function from the gui, just passing it to the gui's add function:  gui.add(fizzyText, 'explode');   Is it possible to pass arguments to the exp...
I made a menu using dat.gui for my applcation with Three.js. It works fine, I have also discovered that pressing h key I can hide the menu created with dat.gui. My question is how can I make the menu appear/disappear directly from the code?   var gui...
I am trying to figure out a way to easily disable/enable buttons within dat.gui.  I have dat.gui set up to control an animation. When the animation reaches its end, I want the "Play" button to become disabled. I have tried adding a "disab...
There seems to be a problem with saving parameters in dat.gui, or I'm missing something really obvious..  The problem shows when clicking the gear icon which should open a popup with the JSON to be saved. Also saving to local storage does not wor...
I'm extremely new to javascript and dat.gui so bear with me. I'm wondering how to create a drop down menu with a default value at the top:  so i have something like:   gui.add(text, 'language', ['english','spanish',...
I've been trying to figure out a way to style individual panels or gui's using Dat.gui.  What is the best way to do this? I could search for panel names in the DOM then apply the style but it seems like an overly complicated solution....
Hi so I have a code as follows for dat.GUI interface.  var gui = new dat.GUI(); var obj1 = { x: 5}; gui.add(obj1, 'x');   How do I get the value of x from the gui into a variable? for example   var xval = (something that returns the value of...
I try to make rotate a torus along 2 axis : Ox and Oz. I want to apply this rotation with a slider dat.gui modified by mouse.  I have defined the torus by :  var geometryTorus = new THREE.TorusGeometry( radius, 2*widthLine, 100, 100 ); var materialLi...
I want to to enable dat-gui controls for the threejs camera in the basic threejs example on this page:  https://github.com/mrdoob/three.js/  var camera, scene, renderer; var geometry, material, mesh;  init(); animate();  function init() {      camera...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.