vikk

Members
  • Content count

    16
  • Joined

  • Last visited

  1. in my project http://34.251.77.144/vikash/index.html i write these code for circle and arrow ...in index.html <div class="circel"> <div class="outer"> <p><i class="up" id = "up" onmousedown="moveup()" ontouchstart="moveup()"></i></p> <div class="inner" id = "inner"></div> <p><i class="right" id = "right" onmousedown="moveright()" ontouchstart="moveright()"></i></p> <p><i class="left" id = "left" onmousedown="moveleft()" ontouchstart="moveleft()"></i></p> <p><i class="down" id = "down" onmousedown="movedown()" ontouchstart="movedown()"></i></p> </div> </div> and for dragging i write these code in code2.js function moveup() { //camera.fov -=0.03; camera.position.x -=3; } function movedown() { camera.position.x +=3; } function moveleft() { camera.rotation.y -=0.03; } function moveright() { camera.rotation.y +=0.03; } var xpos; var ypos; $(document).ready(function() { $( "#inner" ).draggable({ cursor: 'move', containment: 'parent', revert: true }); // sets draggable the element with id="dg" $('#inner').draggable({ // get the initial X and Y position when dragging starts start: function(event, ui) { xpos = ui.position.left; ypos = ui.position.top; }, // when dragging stops stop: function(event, ui) { // calculate the dragged distance, with the current X and Y position and the "xpos" and "ypos" var xmove = ui.position.left - xpos; var ymove = ui.position.top - ypos; // define the moved direction: right, bottom (when positive), left, up (when negative) //var xd = xmove >= 0 ? ' To right: ' : ' To left: '; //var yd = ymove >= 0 ? ' Bottom: ' : ' Up: '; if(xmove >= 0 ) { camera.rotation.y -=0.03; }else{ camera.rotation.y +=0.03; } if( ymove >= 0 ) { camera.position.z -=3; }else{ camera.position.z +=3; } } }); });
  2. ya sure and you made same pg as i want . but in this pg i want when click forward button my camera goes forward and when click reverse button its goes reverse and same as left and right button and i also want when i dragg yellow sqare up our camera goes forward and dragg down our camera goes reverse and same as when dragg left its goes left as well right . and after relese yellow square goes at center http://onecode.co.il/demos/sh3d-qdror23/shop.html?store=shoes&len=he like this website
  3. thank you for reply #Wingnut i show this playground previously but my problem is ,i made on screen key and draggable key like joystick in 2d and i want to it run smoothly , here i play with camera pls help me
  4. sir i create a simple e- shop in 3d ans technology used in babylon js but i want to customize on screen key . when i click up arrow its goes to up and when click down its goes to back . and left arrow on click or press its goes to left and same as right . and when drag yellow circle its also goes that direction my camera. and my project link is..http://34.251.77.144/vikash/index.html pls give me solution due to my on screen key navigate smoothly.
  5. sir i create a simple e shop in 3d but i want to customize on screen key . when i click up arrow its goes to up and when click down its goes to back . and left arrow on click or press its goes to left and same as right . and when drag yellow circle its also goes that direction my camera. and my project link is..http://34.251.77.144/vikash/index.html pls give me solution due to my on screen key navigate smoothly
  6. i am trying to make realstick glass like i used pbr but its not showing glass like transparent can you help me to find out like this glass
  7. mouse navigation in babylon js

    https://www.babylonjs-playground.com/#SMQ2T5 in this my playground . when i want to go inside the room in mobile version . then mouse is not working . though mouse i want to in the room . how it possibbe. and it is possible in your demo https://www.babylonjs.com/demos/sponza/ in mobile vesion i navigate with mouse . so i want to how can i do it. pls help me
  8. sir i am new in babylon js . i show your demo -https://www.babylonjs.com/demos/sponza/ ,it is smoth with navigation with mouse . but when i crete something in babylon js is working navigation though left , right, backword , and forward key though keyword . but when i navigate with mouse its not working . its only left and right . but i want to navigate backward and forward through mouse . how can i do it . pls give me suggetion or good example . and my pg is - https://www.babylonjs-playground.com/#SMQ2T5
  9. escalator in babylon js

    var animateCameraPosition = function (camera, fromPosition, toPosition) { var animCamPosition = new BABYLON.Animation("animCam", "position", 15,BABYLON.Animation.ANIMATIONTYPE_VECTOR3,BABYLON.Animation.ANIMATIONLOOPMODE_CYCLE); var keysPosition = []; keysPosition.push({ frame: 0, value: fromPosition }); keysPosition.push({ frame: 100, value: toPosition }); animCamPosition.setKeys(keysPosition); camera.animations.push(animCamPosition); scene.beginAnimation(camera, 0, 100, false); }; document.getElementById("escalator").onclick = function () { animateCameraPosition(camera, camera.position, new BABYLON.Vector3(894,850,3600)) }; i do and its working. but i want to do when my camera go infront of escalator then its automatic up to the first floor in my code its go through the on click of button
  10. i start a two floor shoping mall in babylon js with the help of 3dmax . i use escalator to go second floor . then i want when my camera go near the escalator . we automatic go to second floor . how can i do this .
  11. i am newbie in babylon js . how i can develope multiplayer game in babylon js . this question is allready discuss in your forums . but i didn't understand yet. can u give example or idea . and when we click link on previous question like this on forums its not work. give the 404 error
  12. hello every one i want to know how to create customize jyostick on screen like arrow . and attach picture of it when middle drag left , right , up and down or any direction between this circle my camera go that site .. pls help me http://onecode.co.il/demos/sh3d-qdror23/shop.html?store=shoes&len=he this project made in three.js i want to use this feature in my babylon project
  13. http://www.babylonjs-playground.com/#1WMVVY#0 when we apply on reflaction texture it not support . basically my question is when we create mesh through 3d max it support reflaction or refraction . or we can made texture which is support reflaction or refraction
  14. sir i develope a demo project its mesh created by 3d designer and its texture . i want to apply reflaction or refraction but i couldn't apply on it ,any type of reflaction which is given in your documentation. so pls help me
  15. how to apply reflaction on 3dsmax object for example (laptop) . i apply all type reflection provide in your documentation . but it not work in 3dsmax object