Jump to content

vishnu

Members
  • Posts

    13
  • Joined

  • Last visited

Recent Profile Visitors

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

vishnu's Achievements

Newbie

Newbie (1/14)

3

Reputation

  1. Hey all, I have babylonjs used to creating android mobile games. this error not getting crash. but i need how to solve? my game slowly working in small devices
  2. hi, i think this is okay for you scene.registerBeforeRender(function (){ var view = window.localStorage.getItem("view"); if(scene.isReady()){ if(view == "left"){ you will set camera position and rotation }else if(view == "right"){ you will set camera position and rotation }else if(view == "top"){ you will set camera position and rotation }else if(view == "bottom"){ you will set camera position and rotation }else if(view == "front"){ you will fix camera position and rotation }else if(view == "back"){ you will fix camera position and rotation } } });
  3. Hey all, good afternoon. I don't understand collision. Please anyone teach me. how to identify object collision in rendering time.
  4. the skybox textures are does not placing perfectly. for example top and bottom side does not getting correct images. these problems are coming android devices. any tips..
  5. Hey all, i have try to creating shooting game. i need camera with gun. i have try this code. but https://www.babylonjs-playground.com/#1pyfub#18 it's not working. camera child object does not showing in scene. how it's working...
  6. engine.isPointerLock = true it's working smoothly from web. but I need mobile camera rotation. all animations fbs are working correctly the camera rotation only problem for me any other idea... https://github.com/BabylonJS/Babylon.js/blob/master/src/Cameras/Inputs/babylon.freeCameraMouseInput.ts i need touch to rotate continuously
  7. Hey, I have using Free camera for my hunting game. var arrow = [ ]; var camera = new BABYLON.FreeCamera("FreeCamera", new BABYLON.Vector3(0, 2, -25), game_scene); camera.attachControl(canvas, true); BABYLON.SceneLoader.ImportMesh("", "", meshPath, game_scene, function (newMeshes, particleSystems, skeletons){ for(var i = 0; i < newMeshes.length;i++){ arrow[i] = newMeshes[i]; arrow[i].position = new BABYLON.Vector3(0,1.3,-24); arrow[i].rotation.z = Math.PI/2; } }); scene.onPointerMove = function (evt,pickResult){ if(arrow != null){ for(var i = 0; i< arrow.length;i++){ arrow[i].rotation.x = camera.rotation.x; arrow[i].rotation.y = camera.rotation.y; arrow[i].position.z = camera.position.z; } bow.rotation.x = camera.rotation.x; bow.rotation.y = camera.rotation.y; bow.position.z = camera.position.z+2; hunt_arrow(); } } i have added my code in pick to Move case? it's working in browser fast and flexible but in android device it's working too slowly... please give me any solution for this
  8. Hey, i have creating android hybrid games. i have babylonJS javascript framework for game. The skybox object textures does not loading properly. other object are loading normally in my game. var skybox = BABYLON.MeshBuilder.CreateBox("skyBox", {size:100.0}, game_scene); skybox.position = new BABYLON.Vector3(0, 0, 0); var skyboxMaterial = new BABYLON.StandardMaterial("skyBox", game_scene); skyboxMaterial.backFaceCulling = false; skyboxMaterial.reflectionTexture = new BABYLON.CubeTexture("textures/hills", game_scene); skyboxMaterial.reflectionTexture.coordinatesMode = BABYLON.Texture.SKYBOX_MODE; skyboxMaterial.diffuseColor = new BABYLON.Color3(0, 0, 0); skyboxMaterial.specularColor = new BABYLON.Color3(0, 0, 0); skybox.material = skyboxMaterial;
  9. Hey , If i Multiple objects loaded time the device is hanging. i have using small objects only 3 or 5 mb file objects only. how to solve this type of problem.
  10. Hey all, I am new in babylonJS. how to get free camera target position and direction. how to handle it. i have readed the free camera properties, but no use for me. https://www.babylonjs-playground.com/#2GXKNW#22
×
×
  • Create New...