renjianfeng

Members
  • Content Count

    101
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by renjianfeng

  1. hi~ I try to make the model shadow, and also allow it to be shaded Like this:http://www.babylonjs-playground.com/#1CMD3G#55 But when I use useBlurExponentialShadowMap, it becomes so :http://www.babylonjs-playground.com/#1CMD3G#56 The shadow seemed to fill the whole model
  2. I will try, but it will be a lot of work, my time is limited, but I will try to finish it
  3. Hi~ I'm from Hangzhou, China. I wrote a FPS game with babylonjs, but there are still many things to do. I uploaded some complete code to GitHub, and if you're interested, you can always download it, and I'll synchronize the latest code with GitHub in time github url:https://github.com/renjianfeng/BabylonFpsDemo (click Star) github.io url:https://renjianfeng.github.io/BabylonFpsDemo/example/index.html (Thinks satguru) Also, please remember to bring your headphones and enjoy the perfect sound effects. (at least I think so.) Some screenshots
  4. super fun! Best practices of the physics engine!
  5. I've isolated the code for the explosion If you can access this link:http://www.babylonjs-playground.com/#DF7L62 Or copy the following code var createScene = function () { var scene = new BABYLON.Scene(engine); // 改变场景的背景色为绿色. scene.clearColor = new BABYLON.Color3(0,0,0); // 创建并放置一个自由相机 camera = new BABYLON.ArcRotateCamera("ArcRotateCamera", 1, 0.8, 10, new BABYLON.Vector3(0, 10, 10), scene); // 将相机朝向对准场景原点 camera.setTarget(BABYLON.Vector3.Zero()); camera.alpha=-1.5323623309935623 camera.beta=1.5432693652698335 camera.radius=30230.65589950958778 camera.maxZ=60000 // 将相机附加到画布上 camera.attachControl(canvas, false); // 创建一个光源,在0,1,0点朝向天空. var light = new BABYLON.HemisphericLight("light1", new BABYLON.Vector3(115, 115, 115), scene); // 将光源光线置为昏暗 light.intensity = 2; //var sphere = BABYLON.Mesh.CreateSphere("sphere1", 1, 10, scene); // 让我们尝试Babylonjs内置的'球'状造型. 参数:名称, 细分度, 大小, 场景 urlCdn="https://meshcdn.dim3d.xyz/zhanji/" var setBoom=new setBooms(new BABYLON.Vector3(-16,0,0)) setInterval(function(){ setBoom.Position(new BABYLON.Vector3(0,0,0)) setBoom.start(); setTimeout(function(){ setBoom.stop(); },100) },1000) function setBooms(position){ var fountain = BABYLON.Mesh.CreateBox("fountain", 1.0, scene); fountain.visibility=0; fountain.rotation.x=Math.PI*0.9; var particleSystem = new BABYLON.ParticleSystem("particles", 2000, scene); //粒子的纹理 particleSystem.particleTexture = new BABYLON.Texture(urlCdn+"images/boom.png", scene); //颜色过滤 particleSystem.textureMask = new BABYLON.Color4(1, 1, 1 ,1.0); //定义发射器 particleSystem.emitter = fountain; // the starting object, the emitter, a box in this case. particleSystem.minEmitBox = new BABYLON.Vector3(0, 0, 0); // Starting all From particleSystem.color1 = new BABYLON.Color4(1, 1, 1 ,1.0); particleSystem.color2 = new BABYLON.Color4(1, 1, 1 ,1.0); particleSystem.colorDead = new BABYLON.Color4(0, 0, 0 ,0); particleSystem.minSize = 2000; particleSystem.maxSize = 2000; // console.log(particleSystem) particleSystem.minLifeTime = 6; particleSystem.maxLifeTime = 6; particleSystem.emitRate = 40; // particleSystem.manualEmitCount = 300; particleSystem.blendMode = BABYLON.ParticleSystem.BLENDMODE_ONEONE; particleSystem.direction1 = new BABYLON.Vector3(10, -10, 10); // particleSystem2.direction2 = new BABYLON.Vector3(0, 100, 0); // Speed particleSystem.minEmitPower = 50; particleSystem.maxEmitPower = 50; particleSystem.updateSpeed = 0.1; particleSystem.stop(); this.start=function(){ particleSystem.start(); } this.stop=function(){ particleSystem.stop(); } this.Position=function(position){ fountain.position=position; } fountain.position=position; // fountain.rotation=rotation; } // var yun2=yun.clone() // BABYLON.Animation.CreateAndStartAnimation('boxposition', yun, 'position.x', 30, 120, 0, 13); // 将移动球向上 1/2 其高度 // sphere.position.y = 1; // 离开该函数 return scene; };
  6. Hi,Can you provide a specific 404 url? Our side is normal, or you can refresh it now, remember to clear the browser cache.
  7. Hi,Maybe that's not obvious,You can select the last option here!
  8. Holle!~~ Translation of some keywords 【进入游戏】->【PLAY】 【瞄准方式】->【Target mode】 【重新开始】->【restart】 【重力感应】->【gravity sensor】 Sorry, My English is not so good Babylon is an excellent js game engine Play with it! thinks!!!! url:https://forreall.cn/3ds/app/zhanji/
  9. Holle!~~ Translation of some keywords 【进入游戏】->【PLAY】 【瞄准方式】->【Target mode】 Sorry, My English is not so good Play with it! thinks!!!! url:https://forreall.cn/3ds/app/zhanji/
  10. Yes, I find it in version 3.0 is right, I'll update our project to use babylon3.0, thank you!
  11. Look here~~~ http://www.babylonjs-playground.com/index2_5.html#WAHD81#9
  12. Ok, I'll try to reproduce it,in the babylonjs-playground!
  13. yeah~~~ Using local video: http://www.babylonjs-playground.com/#I2U8S7 Using external video (cross domain) http://babylonjs-playground.com/index.html#4NJA2G Use an external video cannot be played correctly! Thinks~~~~
  14. Hello! 使用本地视频: http://www.babylonjs-playground.com/#I2U8S7 使用外部视频(跨域) http://babylonjs-playground.com/index.html#4NJA2G 使用外接影像无法正确播放!
  15. My colleague found that this method can be used to fix the bug for the time being radioUi = new BABYLON.Group2D({ ... }); box.onBeforeDraw = function(){ radioUi.levelVisible=true; } scene.beforeRender = function(){ radioUi.levelVisible=false; }
  16. I'm so sorry,My English is not very good,Maybe I didn't describe my problem,I added a lot of tags on the meshes,This effect is very good, But there are some labels I don't need,They seem to be behind the camera,I don't know how to handle it....Thanks to all the people who helped me!!! If you can read Chinese,Please Look at the words here! 我在使用canvas2d中的Group2D trackNode时,出现了一个bug,当我转动相机视野的时候,在相机的背面出现了一些不需要的标签,这些标签使用canvas2d绘制,通过trackNode绑定到所有需要的mesh上面,我不知道如何解决这个问题,感谢所有提供帮助的人。 @Deltakosh