Jump to content


  • Content Count

  • Joined

  • Last visited

About hulahula

  • Rank
    Advanced Member
  • Birthday August 27

Profile Information

  • Gender

Contact Methods

  • Twitter

Recent Profile Visitors

1353 profile views
  1. problem is solved https://playground.babylonjs.com/#VZRN2V#11 I changed this lines : Line : 252 and 255;
  2. I am sorry. I forgot mention : movement with red box is W, A, D and when you go closer to blue doors my "display" shows up try to click on the display
  3. Hello I am back I have one issue with removing the Actions. The problem is : when I am trying remove the actions from actionManager it takes 2 - 3sec. you can see here : https://playground.babylonjs.com/#VZRN2V#10 I am trying to make sci-fi display for doors to player shoud open the locked doors. When player is close to the display then display shows up and then player is able to click on display. If player move away from display distance then display disappear and player unabel to click on display but in my exampel it works with delay. Where is the problem ?
  4. Are you tried to call animation by name... like this ? BABYLON.SceneLoader.ImportMesh("", "./", "myAvatar.babylon", this.scene,function (newMeshes, particleSystems, skeletons) { var avatar = newMeshes[0]; avatar.skeleton.beginAnimation("Idle", true, 1); //avatar.skeleton.beginAnimation("Walk", true, 1); //avatar.skeleton.beginAnimation("Run", true, 1); });
  5. Hi @Swapnil Sorry in advance for bad english . It seem you have issue with backface - culing. I dont know how to 3d max works but try to turn on backface - culing in the 3d - max and if you will get same result ... use the tool with name - Flip normals . I hope It helps you
  6. so I found other solution : https://doc.babylonjs.com/resources/transparency_and_how_meshes_are_rendered I used .visibility and it works like the .alpha... for now... I leave this issue open yet, because I am not 100% sure.
  7. No I have other issue myObj is now white.
  8. no it doesn't works๐Ÿ™ ok it works now I forgot use this code๐Ÿ˜‚ : var mySuperMaterial = new BABYLON.StandardMaterial("haha", scene); myObj.material = mySuperMaterial; myObj.material.alpha = 0;
  9. Hi guys ๐Ÿ˜€ I have one question about exported .babylon file. Is it posibel chagne alpha(transparency) of exported .babylon file? I want to make it slowly disepeat or sotmhig like that. When i change the aplha to 0 nothing happens. BABYLON.SceneLoader.ImportMesh("", "textures", "myObj.babylon", scene, function (newMeshes) { var myObj = newMeshes[0]; myObj.alpha = 0; } So I looked in the exported property whith console.log(myObj). BABYLON.SceneLoader.ImportMesh("", "textures", "myObj.babylon", scene, function (newMeshes) { var myObj = newMeshes[0]; console.l
  10. Thank you for lesson @Wingnut it works perfectly .
  11. Hello again @Wingnut I found one issue but not with label and raycast. I have issue with animation of doors ... You can see exampel in my last post. When I turn on my "game" everything works fine but after five minutes when I open door the FPS go like crazy and evrey minute it's worse only with door animation. I think the raycast making this trabels but I'm not sure.
  12. Hi @Wingnut ..... this is awesome it works perfectly and I learned new things ...thank you very much Wingnut for me you are pro coder . Guys I made for you playground, which is similar with my game . You can find there two rooms with doors. Go close to the door when label ( with the letter E) shows up then press the E-key on keyboard and see the magic W,A,S,D keys to control the RedBox. Have fun: https://playground.babylonjs.com/#VZRN2V#7 I changed this lines : -Lines 26 -97 : only walls -Lines 163 -194 and 219 : implementation animation for doors
  13. Hello @Wingnut Thank you for your answer... I very appreciate. I was afraid that I will must use more then one label ๐Ÿ˜•..... ...because in future I would like to make five more doors and more diffrent "labels" (G, F, Q - keys on keyboard) in first level. I am not sure if It will be good for game performance create custom labels for each door What is your opinion guys ?
  14. sorry I forgot for exampel.... here you can try : https://playground.babylonjs.com/#VZRN2V You can see in exampel GUI works with blue Bigbox, but with green Bigbox doesn't works . Why it is so ?
  15. Hello all Sorry for my bad english in advance . I have a littel issue with GUI and I want to understand why it works like taht . What is the issue ? I made this function : function vecToLocal (vector, mesh){ var m = mesh.getWorldMatrix(); var v = BABYLON.Vector3.TransformCoordinates(vector, m); return v; } class Raycast { constructor() { } doorOpener(letHit, myGUI, scene){ this.scene = scene; var origin = player.position; var forward = new BABYLON.Vector3( 0, 0, 1,); forward = vecToLocal(forward, player); var direction
  • Create New...