I see that is possible to add a control to change a color of a cube.
I see that in the top right hand corner.
It’s a little drop down menu that you can change: color, position, rotation etc.
I’m trying to learn how to add this feature to my scene.
Do you mean this UI? It shows step by step how to add it to your project.
What options you’d allow to change depends on you - you can connect Dat.GUI controls to any param of your object.
Thank you mjurczyk.
I have seen that page, probably 57 times or more…
it must be very famous…
I do not understand what they are saying… it is too advanced for me, yet.
I wish there would be a lower level, to:
FIRST: Understand how to actually put the gui.dat in my scene and make it work.
SECOND: once that is working and I can change a color, (for example)
then change maybe position or rotation
like that, I am a very beginner, that page it’s too much for now, I honestly don’t understand it
can you help me with the very beginner stuff? Thanks!
SECOND: once that is working and I can change a color, (for example) then change maybe position or rotation
How to add gui to scene is explained step by step in the link I send you before. Take a moment to read it,
it is not that complex. You can also see a ThreeJS code example here:
I never though it was going to be so difficult, to add a simple controler gui.dat
One day I will learn… I hope someone can just give me a simple code that works.
I put the code you gave me here… but is not working!
I have no idea where to put the code,
what goes first, what goes after…
the “import” { GUI } I don’t know where it goes, and if is loading…
I honestly don’t understand what to do with your example.
I appreciate you, sharing this… but honestly I am at a lower level
Exactly what I’ve been trying to tell you! You really really should spend some time taking an intro to JavaScript course instead of asking for help every 10 minutes with every step of the way. Things like for loops, https, mouse clicking, DOM elements, all those questions are very elemental, and it’s doing you a disservice as a developer to have other people do your problem-solving for you.
Here, I even found two free beginner’s courses you could take!