
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 (1/14)
3
Reputation
-
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
-
babylon How to change camera position on button click
vishnu replied to rina's topic in Questions & Answers
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 } } }); -
Hey all, good afternoon. I don't understand collision. Please anyone teach me. how to identify object collision in rendering time.
-
How to load skybox object and texture for android device game?
vishnu replied to vishnu's topic in Questions & Answers
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.. -
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...
-
Wingnut reacted to a post in a topic: Which camera will use for mobile hunting and shooting game? and how?
-
Which camera will use for mobile hunting and shooting game? and how?
vishnu replied to vishnu's topic in Questions & Answers
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 -
waverider reacted to a post in a topic: Which camera will use for mobile hunting and shooting game? and how?
-
Which camera will use for mobile hunting and shooting game? and how?
vishnu replied to vishnu's topic in Questions & Answers
Thanks @waverider it's working in web. it's not working mobile. -
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
-
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;
-
NasimiAsl reacted to a post in a topic: how to get free camera target position for gun shoot purpose?
-
babylonjs how to get free camera target position for gun shoot purpose?
vishnu replied to vishnu's topic in Questions & Answers
hello @NasimiAsl thanks for your answer.