Art Vandelay

Members
  • Content Count

    51
  • Joined

  • Last visited

About Art Vandelay

  • Rank
    Advanced Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi Everyone, When using multipick is there a specific order in which the meshes are returned in the array? Because according to this playground it doesn't seem like it: https://playground.babylonjs.com/#166ZLU I tried putting different meshes behind each other and I can't find any logic in the order. For example if I put the purple donut in front, then the green cube and then the blue cube in the back and choose them so that the ray hits all of them, the green cube (which is in the middle) is the one that is chosen. Is this a bug? Is it supposed to work this way? Thanks!
  2. OK now it's working. My question now is, how come the bounding sphere of a mesh that is a sphere is much bigger than the sphere? https://playground.babylonjs.com/#JHTYJL#4
  3. Thank you for the response @kurhlaa. Another silly mistake... However, I am still not getting the expected behavior. Not sure why. Here is the updated PG. I also noticed I forgot to use computeWorldMatrix but still not working. https://playground.babylonjs.com/#JHTYJL#2
  4. Made a silly mistake with that last playground, ignore it . This is the right one: https://playground.babylonjs.com/#JHTYJL#1
  5. Hi everyone, I was trying to understand how to work with bounding sphere collisions and created this playground. https://playground.babylonjs.com/#JHTYJL Notice line 114. I can't understand what is going on. I would expect the drag and drop to work normally and for the mesh I am dragging to collide with the purple donut. What am I missing? Thanks!
  6. Also, just to be clear, shadows are not the problem. I can add shadows that look good.
  7. Hi all, I have a (supposedly) simple task of lighting a regular square bedroom with furniture. Turns out it's quite complicated to do well. So far I have been playing around with point lights and hemispheric lights (changing location, intensity, color etc) but it's pretty hard to get a "real" feel. Anyone have any recommendations? Thanks!
  8. Thanks everyone @brianzinn Procedural texture is what I need but I would like to upload my own texture instead of the brick. Is there any way to do that?
  9. Hi everyone, I am trying to tile a floor but I would like to create a sort of "offset" in the tiling. I added pictures to best explain what I am trying to do. The first is what I am doing now. The second is what I would like. How can I do this? Thanks!
  10. Hi, Is there anyway to pick a bounding box? I know I can pick a mesh using scene.pick but then pickInfo.pickedPoint will give me the point where the picking ray hit the mesh. What I would like to get is the point where the picking ray hit the bounding box of the mesh. How can I do that? Thanks!
  11. Hi, Just found this thread. @DeltakoshWhat if wanted to SET the absolute rotation of a matrix? What I thought of doing was decomposing the worldMatrix, updating the rotation quaternion and then "recomposing" the world matrix with the updated rotation quaternion. I'm not sure how to do that though, or even if that really makes sense... Is there a simpler way? Thanks!
  12. Just what I needed, many thanks reflectionProbe did the trick!