• Content count

  • Joined

  • Last visited

  • Days Won


Everything posted by Temechon

  1. Clamp Player movement

    It's hard to understant your code without any live example, but I'll take a shot Can you try something like this ? if (player.moveRight && player.position.x <= 42) { player.position.x += 1; } if (player.moveLeft && player.position.x >= -42) { player.position.x -= 1; } if (player.position.x >= 42) { player.position.x = 42; } if (player.position.x <= -42) { player.position.x = -42; }
  2. Playground editor cursor mis-aligned in Chrome

    Hi @gzlock, this PR adds a toggle to display/hide the minimap : https://github.com/BabylonJS/Babylon.js/pull/3185
  3. I don't think keyframes easing are supported in the current version of exporter :/
  4. Babylon exporter for Maya ?

    It will have PBR material support. And gltf format
  5. DebugLayer warnings freeze the scene

    Thank you ! It's fixed here: https://github.com/BabylonJS/Babylon.js/pull/3185
  6. Scaling Uploaded OBJ mesh

    Raanan is always the fastest, from myexperience at least
  7. Three.js or Babylon.js for room design

    @max123 Hey thank you for your feedback Max, it's always appreciated to have constructive comments. About the inspector, maybe I can help ? Indeed, the inspector is HTML/CSS based and I have to say it's a real pain in the ass to create a side panel But you can create a div and ask the inspector to be created in this specific div (described here: http://doc.babylonjs.com/how_to/debug_layer) Let me know if you need anything, even new features
  8. Hi @mr_pinc, can you send us (me or noalak) your 3DSMax file and your textures please ? Thanks !
  9. Three.js or Babylon.js for room design

    Babylon.js too, everything you need is already there (drag and drop, file import...). I'm also clearly biased
  10. Rim Effect

    I have this force field custom shader in my favorite, I worked on it long time ago: http://cyos.babylonjs.com/#15MS95 Hope it can help!
  11. New Structure to Documentation

    @Arte it's totally related, the 'tutorial' subcategory has been reworked into 'How To'
  12. Reset Ball after Falling Down

    The attribute is not read-only, but if you set it it will be used INSTEAD OF the 'rotation' attribute to compute the mesh rotation. Wingnut is right, you don't reset the rotation of your physical body when resetting the player. In OIMO, there is a method called 'resetRotation'. Could you try this : this.body.resetRotation(0,0,0);
  13. debugLayer - Uncaught TypeError

    Hi @ceedee, What browser are you using ?
  14. why does face flip occur?

    Hello @lingkernyurk., It seems your OBJ file don't have the correct normals for the door. I downloaded your OBJ and opened it with 3DSMax, here is what I can see : See the dark red color ? It indicates the normals are flipped. It's the same for the other part of the door (you can compare with the lighter red on the house) : For me it doesn't look as a bug. One way to disable it Babylon side would be to set the corresponding material like this: scene.getMaterialByName('JoinedMaterial__3').backFaceCulling = false;
  15. PBR in 3d max

    The env map is being integrated in the 3DSMax exporter.
  16. PBR in 3d max

    The PBR material is supported on 3DSMax with a Physical Material - Is it the same kind of material you've been using ?
  17. diffuseTexture can only be found in StandardMaterial, and not in Material.
  18. You can try to have one SPS per texture (that's what I did on my map with 3 different ground levels)
  19. You have to separate your whole mesh into separate hex in order to do this. You might want to check Solid Particles System, as it's the best way to do it with decent performances (I can generate a map of 150*150 cubes without any problems with SPS).
  20. Object splits into multiple meshes

    let parent = new BABYLON.Mesh('parent', scene); object1.parent = parent; object2.parent = parent; parent.position.x = 2; // Object1 and object2 will have their x +=2
  21. Standard Material Diffuse Color Changes

    @MackeyK24 Don't worry about the look of the file, I'll take care of it Just send me the text and I'll do the formatting and PR for you !
  22. Scene.pick results off on larger distances?

    Hi, Are you sure to set the 'camera' parameter in the pick function ? https://github.com/BabylonJS/Babylon.js/blob/master/src/babylon.scene.ts#L3578
  23. Cube faces with the same rotation

    Hi, You have to use a custom shader to do that. Example here: http://www.babylonjs-playground.com/#TRNYD#13
  24. scene.debugLayer.show throws error

    Hi @haestflod, __extends variables are now correctly defined in the bundle inspector in the main repo. Are you sure to use the correct one ? :https://github.com/BabylonJS/Babylon.js/blob/master/dist/preview release/inspector/babylon.inspector.bundle.js Thanks !
  25. If you don't have any local webserver, you won't be able to load objects... There is no solution for this as far as i know.