We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

aqiang

Forum Replies Created

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • in reply to: Gaussian Splatting! #69831
    aqiang
    Customer

    Load success

    Attachments:
    You must be logged in to view attached files.
    in reply to: Dynamically switch material textures #69813
    aqiang
    Customer

    @xeon ,Real time screenshots of switching materials on an online page based on Threejs , viz4d.com

    in reply to: Gaussian Splatting! #69811
    aqiang
    Customer

    @Yuri I’m try to test Gaussian Splatting in verger3D,how to solve this cross domain problem

    Attachments:
    You must be logged in to view attached files.
    in reply to: Background color display issue #68086
    aqiang
    Customer

    To 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)

    aqiang
    Customer

    Thank you! kdv. The second problem has been perfectly resolved :good: . 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.
    in reply to: How to restart the animations #67664
    aqiang
    Customer

    The input text ‘nomal’ from the puzzle doesn’t match the ‘normal’ key, now the issue has been resolved. Thank you very much! kdv :good:

    in reply to: How to restart the animations #67660
    aqiang
    Customer

    “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.”

    in reply to: How to restart the animations #67659
    aqiang
    Customer

    In 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?

    in reply to: How to restart the animations #67657
    aqiang
    Customer

    @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.

    aqiang
    Customer

    Yuri,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.
    in reply to: How to stop Animation in Camera Tour #64904
    aqiang
    Customer

    I’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.

    aqiang
    Customer

    Thanks 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.
    aqiang
    Customer

    The 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>
Viewing 13 posts - 1 through 13 (of 13 total)