fateriddle reacted to Gijs in How to build a box that's transparent to the outside world, but also hiding what's inside?
Here's a combination of what's been suggested (sort of):
fateriddle got a reaction from trevordev in How to create a mesh that's always approaching closer to your camera?
Big thanks! This works just fine for me. Another question, how do you spawn those meshes once every second? Every example I find, meshes all exist at the very beginning.
fateriddle reacted to JohnK in Where should I be putting my animation code in complex scene?
Hi @fateriddle and welcome from me. There are two main ways of achieving animation in BJS. One uses
in this case you can change properties of BJS objects such as position, rotation etc.
Another way is to use animatables https://doc.babylonjs.com/features/animations
From your description it seems you are using animatables which do not go inside the registerBeforeRender loop.
fateriddle got a reaction from JackFalcon in How to build a box that's transparent to the outside world, but also hiding what's inside?
How to build a box that's transparent to the outside world, but also hiding what's inside?
I tried material.alpha = 0, box becomes transparent, but also whatever inside the box is revealed.
Basically, I'm trying to build a AR portal, which to my understanding is a skybox inside of a transparentbox, with a hole as the door. You can only peek inside through the door, so I need everything else be hidden, but can't get it done.