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.

jdhutchinson

Forum Replies Created

Viewing 15 posts - 76 through 90 (of 124 total)
  • Author
    Posts
  • in reply to: Camera Transformation Dampening/Easing #43542
    jdhutchinson
    Customer

    Dear Ivan,

    Would it be possible for you to list some other common objects in the v3d scene, that can be amended with an exec script puzzle? Might help me to better understand what features I can tap into from threejs. Since it is a peculiar situation where some but not all of that library is included.

    jdhutchinson
    Customer

    Hi Mikhail, does the animation of the texture happen in Puzzles or in Blender?

    in reply to: general camera collision with objects #43510
    jdhutchinson
    Customer

    For ‘Physics module not found’:

    1. Copy the two files in my attached img to the location of your verge project.

    2.

      <!-- favicons -->
      <link rel="apple-touch-icon" sizes="180x180" href="media/apple-touch-icon.png">
      <link rel="icon" type="image/png" sizes="32x32" href="media/favicon-32x32.png">
      <link rel="icon" type="image/png" sizes="16x16" href="media/favicon-16x16.png">
      <link rel="manifest" href="media/manifest.json">
      <link rel="mask-icon" href="media/safari-pinned-tab.svg" color="#5bbad5">
      <meta name="theme-color" content="#ffffff">
    
        <script src="ammo.wasm.js"></script>
    
      <script src="v3d.js"></script>
      <script src="name of your app"></script>
    
      <link rel="stylesheet" type="text/css" href="Ross_Tiger_02.css">
    </head>
    

    add the reference to ammo.wasm.js in the header of *name of your app*.html file.

    Attachments:
    You must be logged in to view attached files.
    in reply to: How to add lensflare to your scene #43483
    jdhutchinson
    Customer

    Does this require the Enterprise version of Verge?

    In reference to the line:

    import * as verge from '../../build/v3d.module.js';

    in reply to: Tone Mapping!? #43481
    jdhutchinson
    Customer

    Hi Ivan,

    Thank you for your input on this topic.

    Could help to explain what is / is not in the core directly, in other words accessible during initialisation of an app? Related closely to my other topic also.

    in reply to: Camera Transformation Dampening/Easing #43476
    jdhutchinson
    Customer

    Dear Ivan,

    This is fantastic. I knew the solution would end up being not so difficult! At first I was concerned that to access such a command required the enterprise edition.

    I guess something that I would find useful to know, is what variables has verge3d already created during initialisation, in other words which objects can I scrutinise and set properties/use methods of. In this case, under the hood, my application has kindly created the necessary variable for an EnableControls object, named controls.

    I’m still a little confused though why the v3d documentation mentions dampingFactor though: https://www.soft8soft.com/docs/api/en/controls/OrbitControls.html#dampingFactor

    Thank you Ivan :good:

    in reply to: Stemkoski Smoke Particles, Implement in App? #43465
    jdhutchinson
    Customer

    I wonder if there is a way to use the local host set up through verge 3d to enable the images to display, as currently I’ve hit a wall because of CORS denying access to the image textures of the smoke.

    I would really appreciate any help, I think this would be really cool to add into a verge3D app.

    Attachments:
    You must be logged in to view attached files.
    in reply to: Camera Transformation Dampening/Easing #43416
    jdhutchinson
    Customer

    Hi Ivan,

    Thank you for the response. I got this working on the basic cube example from the documentation, thank you.

    See attached image. How can I tap into the v3d elements through an exec js script puzzle? Or is my attachment oversimplifying this?

    Also tried (in an exec script puzzle):

    app.camera.enableDamping = true;
    app.camera.rotateInertia = 0.2;

    Attachments:
    You must be logged in to view attached files.
    in reply to: Camera Transformation Dampening/Easing #43401
    jdhutchinson
    Customer

    <script>
    var scene = new v3d.Scene();
    var camera = new v3d.PerspectiveCamera(75, window.innerWidth/window.innerHeight, 0.1, 1000);

    var renderer = new v3d.WebGLRenderer();
    renderer.setSize(window.innerWidth, window.innerHeight);
    document.body.appendChild(renderer.domElement);

    var geometry = new v3d.BoxGeometry(1, 1, 1);
    var material = new v3d.MeshBasicMaterial({ color: 0x00ff00 });
    var cube = new v3d.Mesh(geometry, material);
    scene.add(cube);

    var controls = new v3d.OrbitControls(camera);
    controls.enableDamping = true;
    controls.dampingFactor = 0.2;
    camera.position.z = 5;

    var animate = function() {
    requestAnimationFrame(animate);

    //cube.rotation.x += 0.1;
    //cube.rotation.y += 0.1;
    controls.update();
    renderer.render(scene, camera);
    };

    animate();
    </script>

    in reply to: Animated textures like normals for water #43393
    jdhutchinson
    Customer

    Here’s an simple example for you.

    Hi Mikhail,

    This is a beautiful example. Incredible that Verge can animate so deeply the nodes of the blender shader. I never would have expected this.

    How can we do a good ocean in verge? Is it possible to use the ocean modofoer, or does this not get reflected in an app?

    I suppose what I’m asking is, how do we know if a feature of blender is goign to show through in verge? Do we just have to test at randomand hope?

    in reply to: Add Physics Module, Existing Project? #43387
    jdhutchinson
    Customer

    Hi Yuri, I’m having some problems with physics so far. I even copied all puzzles of the flag in the example ‘Physics’ project, but I’m getting unexpected results.

    The instructions before didn’t work so well for me either – adding in the script into the html made puzzles really weird – in fact for a time I got a blank grey screen which was really worrying. I had to use a backup. I also wasn’t sure if I need to add the WASM file too?

    Attachments:
    You must be logged in to view attached files.
    in reply to: Emission color values with Filmic #43350
    jdhutchinson
    Customer

    Hi,

    WOuld people recommend using Filmic for V3D apps?

    in reply to: Double Sided Materials – Global Setting #43256
    jdhutchinson
    Customer

    Thank you Alexander! What variable should I replace obj with to loop through all my applications items?

    in reply to: Add Physics Module, Existing Project? #43255
    jdhutchinson
    Customer

    I am thinking that I need to copy physics.js from another project, such as the Physics app example, and then link to it like below?

    <script src=”physics.js”></script>

    in reply to: Double Sided Materials – Global Setting #43238
    jdhutchinson
    Customer

    Hi Mikhail, I tried this in Blender 2.93.0

    The ALT key press didn’t seem to make a difference for me. Is there a different solution? E.g. Global override?

Viewing 15 posts - 76 through 90 (of 124 total)