Questions tagged [dat.gui]

Dat.gui is a small JavaScript library to render some GUI elements like sliders, color pickers, etc.

Repository: https://github.com/dataarts/dat.gui

Documentation: http://workshop.chromeexperiments.com/examples/gui/#1--Basic-Usage

182 questions
2
votes
1 answer

Three js Preventing raycast picking thru GUI

I need to pick objects by clicking on them and a pop-up non modal dialog to display info about the object. It works as it should, however if the user clicks on any GUI item , including the dialog, and there is an object behind, the three js object…
ButterTofu
  • 25
  • 5
2
votes
1 answer

dat.GUI and Three.js: dat is not defined

I can't make it including a dat.GUI element in my project. Even placing a var gui = new dat.GUI(); makes my Three.js geometry disappear "dat is not defined" Any hint?
Ph1
  • 341
  • 1
  • 4
  • 14
2
votes
1 answer

Best approach for extending or defining new dat.gui property controllers?

I want to add a few new property controller types to a DAT.GUI instance. I've spent ages hacking around in the source code getting nowhere, nor can I find any information on the web regarding the minimal path to create a new controller…
Bumpy
  • 1,290
  • 1
  • 22
  • 32
2
votes
1 answer

How can I access different parts of an OBJ loaded with OBJMTLLoader?

I made a model of a building with 3DS Max where each room is a modified cube, I used OBJMTLLoader to load the OBJ file with his own MTL. The problem is that I need to emphasize certain rooms according to the user requirements. I use dat.gui to…
soiber
  • 172
  • 3
  • 14
2
votes
0 answers

Issue with dat.GUI and its list input

I'm coming to you this night as I have an issue with three.js. I'm doing a tutorial, but at the end, I can't choose a shape or a mesh in a list although I set the control as shown in the video (which is here ) Here is the piece of code we're talking…
Utopiad
  • 107
  • 2
  • 13
2
votes
0 answers

Opacity and real transparency in a json's loaded scene

I'm using three.js and dat.gui to build an interface to modify the transparency of some loaded json objects. I used all the needed options for the material creation: mesh = new THREE.Mesh(geometry, new THREE.MeshLambertMaterial( { …
MauroD
  • 21
  • 3
2
votes
1 answer

Save dat.gui presets for dynamically added controls?

I'm dynamically adding controls to a dat.gui interface, but the "save settings" functionality doesn't recognize them. var mygui = new dat.GUI(); mygui.remember(mygui); // standard way of adding a control mygui.control1 = 0.0; var control =…
meetar
  • 7,443
  • 8
  • 42
  • 73
2
votes
1 answer

Load a file using a dat.GUI button?

I already know how to create buttons using dat.GUI (passing in functions as described in this question: Is it possible to create a button using dat.gui). I want to make a button that triggers a load file event like you would do with
Max Strater
  • 540
  • 6
  • 17
2
votes
0 answers

propagate change of scrollbar range to text box in dat.gui

Just wondering if somebody else had the same problem. I created a scroller inside a gui in dat.gui. When I later want to change the min and max values of the scroller, I…
Mehdi.Khoury
  • 83
  • 1
  • 10
2
votes
2 answers

WebGL single frame "screenshot" of webGL

tried searching for something like this, but I've had no luck. I'm trying to open a new tab with a screenshot of the current state of my webgl image. Basically, it's a 3d model, with the ability to change which objects are displayed, the color of…
2
votes
1 answer

How to insert variables to dat.Gui with an array?

I try to declare Variables via an array to use them in an dat.Gui controller. This is my attempt: