Alex10

Members
  • Content Count

    65
  • Joined

  • Last visited

About Alex10

  • Rank
    Advanced Member
  • Birthday January 1

Profile Information

  • Gender
    Male
  • Location
    Ukraine
  • Interests
    Javascript, Python, Linux

Recent Profile Visitors

939 profile views
  1. I was referring to examples of the presence of Z coordinates on the video camera. For example: https://github.com/buildar/awe.js
  2. Someone can give some examples babylon.js and augmented reality? Or to give a direction where to look?
  3. http://www.babylonjs-playground.com/#28YUR5#91 I can't do at the same time the effect of pbr and texture.
  4. –°an be assigned to show diffuse texture to the model if it is to apply PBR? I founded in the documentation, only examples of pre-set: metal, plastic, glass and wood. For example: var scene = new BABYLON.Scene(engine); var camera = new BABYLON.ArcRotateCamera("Camera", -Math.PI / 4, Math.PI / 2.5, 200, var hdrTexture = new BABYLON.HDRCubeTexture("textures/room.hdr", scene, 512); var hdrSkybox = BABYLON.Mesh.CreateBox("hdrSkyBox", 1000.0, scene); var hdrSkyboxMaterial = new BABYLON.PBRMaterial("skyBox", scene); hdrSkyboxMaterial.reflectionTexture = hdrTexture.clone(); hdrSkyboxMaterial.disableLighting = true; hdrSkybox.material = hdrSkyboxMaterial; material = glass; glass.refractionTexture = hdrTexture; glass.reflectionTexture = hdrTexture; ???? material.diffuseTexture = new BABYLON.Texture("/path", scene);
  5. How to remove glare from light? I need to model the illumination light but did not glare. Is it possible to do something to remove the glare? http://www.babylonjs-playground.com/#132VFT
  6. Yes, thank you, this is what I needed. Here is a simplified version of the work and the like. http://www.babylonjs-playground.com/#2ATSCM#11
  7. @aWeirdo No, it's the right button works as the left button. I need to right buttons function as in this example: http://www.babylonjs-playground.com/#AMEB6#1 But for the loaded mesh. I need to panning right button to work like sketchfab.
  8. @aWeirdo In this options, the panning does not work. http://www.babylonjs-playground.com/#2ATSCM#1
  9. How to make a pan to turn on when click the right mouse button events? In this example, when you hold the right mouse button model does not move. http://www.babylonjs-playground.com/#2ATSCM#0
  10. Thanks for the good reviews, I'm very pleased. I want to answer a few questions. Sorry for my english :) I love javascript, but I really love python. I started to write game backend in javascript but moved on to Python, because of Python's more advanced OOP and Python is much easier to use data types. In Python I can write asynchrony code for to work with sockets without callback, this greatly simplifies debugging and code reading. To my regret now I just have nowhere to run the game in addition to my laptop. As soon as I have some vps I will run and will share the link. This is a very good idea. I think we can do it that way: We can make the balancing of players between rooms on different servers. A specific rooms already appointed will serve for balancing server. All statistics will be accumulated and distributed This collection of all the servers to select strategies and ratings.
  11. Exactly, I think this is what I need. How I can the model change color or texture when I click on button? Event occurs but the error occurs. $('#button').on('click', function(){ console.warn('Yes'); m[i].material = new BABYLON.StandardMaterial("texture1", scene); m[i].material.diffuseColor = new BABYLON.Color3(1, 0, 0); }); For example: http://www.babylonjs-playground.com/#I7U4M#5
  12. If I multiply these coordinates: { 0*1.1, 0*1.1, -0.000014999999997655777*1.1 } Then I'll have the following coordinates for "setPosition" cam.setPosition( 0, 0, -0.000016499999997421355 ) and get this result: http://178.62.253.28/test - model not got completely into the viewport and I need to get around these coordinates cam.setPosition( new BABYLON.Vector3(216, 93, -17) ); http://178.62.253.28/ - model got completely into the viewport How do I get the coordinates of the camera in which the model will got completely into the viewport?
  13. @aWeirdo Ok, When I scaled the model, the model becomes unmanageable fine. for example: http://178.62.253.28/test How to calculate a zoom on the camera? I need zoom to set automatically. Or to set automatically camera.setPosition()
  14. @aWeirdo Yes I am using arcRotateCamera. I wrote cam.target = mesh.position; but the model does not fit into the screen. For example: http://178.62.253.28/test2