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.

kdv

Forum Replies Created

Viewing 15 posts - 46 through 60 (of 2,844 total)
  • Author
    Posts
  • in reply to: Different Outlining Color Effect #78431
    kdv
    Participant

    Indeed… It’s possible to change the color depending on what object has been chosen. But it won’t work with two or more different objects outlined simultaneously.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    in reply to: Can’t reply to forum topics #78413
    kdv
    Participant

    deleted

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    in reply to: Object/Decals Dissapearing #78410
    kdv
    Participant

    the fuselage material should be non-transparent to render your transparent decals properly over that material at any angle.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    in reply to: Controling objects within a loaded glTF #78406
    kdv
    Participant

    For instance, if I have an environment scene that loads by default and then load a GLTF containing a teapot, cylinder, and torus

    do not use “load scene” (this puzzle will replace the main scene). use only “append scene” (this puzzle will add a scene to the main scene).

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    in reply to: Dictionaries/Variables/Logic confusion #78404
    kdv
    Participant

    the problem is in your logic. the variable Szinek is undefined initially and it’s never defined afterwards. you set value for roofszin but for some unknown reason you use undefined Szinek (instead of roofszin) to get corresponding texture name from the dictionary. the result will be undefined and nothing will happen.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    in reply to: Controling objects within a loaded glTF #78400
    kdv
    Participant

    Is it possible to select individual objects within each loaded GLTF file using puzzles?

    possible

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    in reply to: Initialisation/Preloading all Assets, incl. hidden #78384
    kdv
    Participant

    I can‘t share the scene.

    then you’re on your own :unsure:

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    in reply to: Initialisation/Preloading all Assets, incl. hidden #78382
    kdv
    Participant

    without your files it’s hard to find out what is the best way to get rid of lags :unsure: sometimes that code works fine, sometimes it’s not good enough.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    kdv
    Participant

    remember from where you took objects. use some variable (a dictionary) to save initial parent objects for picked objects.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    kdv
    Participant

    Most likely your main page (index.html or whatever) and the embedded page are on different domains (cross-domain access).

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    kdv
    Participant

    I’ll have to figure out how to do it

    put them back from where you took them

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    kdv
    Participant

    on ‘squeezeend’ I already parent it to an empty second argument

    and that’s the main question: why instead of parenting back to Display1 you’re parenting your objects to the main scene? The second argument empty = Scene

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    kdv
    Participant

    Is there a way to parent it back to the main scene

    they are already parented to the main scene. objects will be parented to Scene if you leave the second argument empty. But initially (before grabbing) they were parented to Display1.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    kdv
    Participant

    Just remove parenting.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    in reply to: Initialisation/Preloading all Assets, incl. hidden #78355
    kdv
    Participant

    which would force all shaders to be compiled

    all material shaders are already compiled on loading.

    and objects be loaded in the memory

    app.scene.traverse(function(obj) {
      if (obj.isMesh) {
        if (obj.material.isMeshNodeMaterial) {
          for (let name in obj.material.nodeTextures) {
            app.renderer.initTexture(obj.material.nodeTextures[name]);
          }
        }
        app.renderer.updateGeometry(obj);
      }
    });

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

Viewing 15 posts - 46 through 60 (of 2,844 total)