Forum Replies Created
-
AuthorPosts
-
aqiangCustomer
@xeon ,Real time screenshots of switching materials on an online page based on Threejs , viz4d.com
aqiangCustomeraqiangCustomerTo correct it, I found that the background color displayed correctly when SSAA wasn’t enabled, but when SSAA was added, the entire scene became brighter. The current issue is whether it’s possible to maintain the overall color while using SSAA.
`app.enableSSAA(4, false)aqiangCustomerThank you! kdv. The second problem has been perfectly resolved . The first issue of creating the “createLivePreview” block doesn’t seem to be an easy task.
- This reply was modified 1 year ago by aqiang.
aqiangCustomerThe input text ‘nomal’ from the puzzle doesn’t match the ‘normal’ key, now the issue has been resolved. Thank you very much! kdv “
aqiangCustomer“I’ve uploaded a web example to this address https://vv4d.com/datgui/. You can try it by clicking ‘save’ first, and then after clicking ‘load’, the animation becomes static.”
aqiangCustomerIn the Three.js editor, I noticed there are “stop” and “play” options. In the code, there’s a method
app.play()
that can switch between editing mode and animation mode. Is there a similar method in the v3d app to start the animation loop?aqiangCustomer@kdv, gui.load( obj, recursive=true )
Recalls values that were saved with gui.save().
The explanation above is about the DatGUI code, and you can find it at https://lil-gui.georgealways.com/#GUI#load.aqiangCustomerYuri,Crunch,Thank you for your responses. It’s possible that my previous description wasn’t accurate, which led to answers that didn’t address my actual issue. My idea was to create a custom control panel similar to dat.gui, and I wanted a ‘Save’ button to store the panel’s data in a local JSON file. However, your suggestions have opened up new possibilities, and I eventually found the simplest solution to be saving the data to the browser’s localStorage. Thanks!
- This reply was modified 1 year ago by aqiang.
Attachments:
You must be logged in to view attached files.aqiangCustomerI’ve used an animation with an extremely small distance and a duration of zero as a workaround to stop the animation, which has solved the issue mentioned above. Thank you.
aqiangCustomerThanks for your help. I made a plug-in based on the new demo, but there are still errors in the reflection of the water surface. I don’t know how to improve it
Attachments:
You must be logged in to view attached files.2022-03-25 at 9:47 am in reply to: How can I create two associated dropdown lists in one block #50620aqiangCustomerThe following is my wrong attempt to find out the problem
<script> function template(block) { var color1_ops = [ ['green', 'GREEN'], ['yellow', 'YELLOW'], ['red', 'RED'], ]; block.Extensions = ["color_pair2"];//? block.appendDummyInput() .appendField(new Blockly.FieldDropdown(color1_ops), 'COLOR1'); Blockly.Extensions.register('color_pair2',//? function () { var input = this.inputList[0]; var color1 = this.getField('COLOR1'); var color2 = new Blockly.FieldDropdown(function () { // Generate the drop down to match color1 return [[color1.getText() + ', again', color1.getValue()], ['Black', 'BLACK'], ['White', 'WHITE']]; }); input.appendField(color2); this.setOnChange(function () { if (color2.getValue() != 'BLACK' && color2.getValue() != 'WHITE') { color2.setValue(color1.getValue()); color2.setText(color1.getText() + ', again'); } }) }); } </script>
-
AuthorPosts