• Content count

  • Joined

  • Last visited

About dcversus

  • Rank

Contact Methods

  • Twitter
  1. On playground no error, everything worked. Once again, I went to babylonjs.com and there was no error. I update my demo to last commit and all works fine. Sounds like that in last commit error was corrected) Thank you very much for your answers!
  2. In version 2.0 no problem. I dont have another devices to check this. I will try to find them)
  3. Hi! After update to babylonjs 2.1alpha on my mobile device (C6603) i get error "WebGL: CONTEXT_LOST_WEBGL: loseContext: context lost" and white screen. All demos on babylonjs.com have these problem on my mobile device. (Chrome 42 android 4.4.4) On another browsers tab closes when scene loading. Please help solve this problem.
  4. moveWithCollisions 2.1-beta

    It's awesome! Everything works! Thank you very much)
  5. Hi! After updating to version 2.1-alpha, stopped working moveWithCollisions. In new version this is a bug or moveWithCollisions work differently. (Go back to version 2.0 I can't, there's another bug) Code forward = new BABYLON.Vector3(parseFloat(Math.sin(parseFloat(meshPlayer.rotation.y))) / speed,0.01,parseFloat(Math.cos(parseFloat(meshPlayer.rotation.y))) / speed);forward = forward.negate();meshPlayer.moveWithCollisions(forward); Live demo http://playground.babylonjs.com/#1NQTNE Please help me solve this problem.
  6. Team colors

    I decided to the task of with the use of shaders! Thank you all for answers and advice, here's the code pixel shader: #ifdef GL_ESprecision highp float;#endifvarying vec2 vUV;uniform sampler2D textureSampler;uniform vec3 color;uniform vec3 replace;void main(void) { float r = texture2D(textureSampler, vUV).r; float g = texture2D(textureSampler, vUV).g; float b = texture2D(textureSampler, vUV).b; vec4 pixel = vec4(r,g,b,1.0); vec3 eps = vec3(0.1, 0.1, 0.1); if( all( greaterThanEqual(pixel, vec4(color - eps, 1.0)) ) && all( lessThanEqual(pixel, vec4(color + eps, 1.0)) ) ) pixel = vec4(replace, 1.0); gl_FragColor = pixel;}Hope this helps someone)
  7. Team colors

    I was not able move decal with character (charapter have animations) and place it under texture. The decal can be moved together with the animation of the skeleton?
  8. Failed to execute 'uniformMatrix4fv'

    Thank you very much!
  9. Failed to execute 'uniformMatrix4fv'

    I had to spend a lot of time to post a live demo, I hope it was worth it. As you can see, when loading error occurs Failed to execute 'uniformMatrix4fv' on 'WebGLRenderingContext': No function was found that matched the signature provided.http://plnkr.co/edit/GwysJ44iNQaO6ZHPiLIf?p=preview
  10. Failed to execute 'uniformMatrix4fv'

    Sorry, but what do you mean on the "live demo". Babylonjs playground demo, yes?
  11. Team colors

    Different textures difficult to use, can be a lot of teams. I do not know how to make an object with a different texture after transparent, In my model, it is difficult to do? I tried to use a decal looks like the emissiveColor, decal can not be under the texture, right? I liked the idea of a shader, you can help write a shader that would replace one color to another for a single mesh???
  12. Failed to execute 'uniformMatrix4fv'

    Thanks for your reply Deltakosh Used babylon.2.0.debug.js
  13. Team colors

    Thanks for the answer. When I use emissiveColor becomes not so necessary I need to replace certain parts of the texture to another color like this (I manually painted texture): Maybe can use a dynamic texture? But I do not understand how
  14. Team colors

    HiI'm making a game where need use many of the same models in which the same texture, that has transparent. This transparency should be replaced with team colors. When I import model I setplayers[0].meshModel.material.diffuseTexture.hasAlpha = false;All transparent replaced with black color. How do I change this color? Thanks in advance! footman.zip
  15. HiI'm new in babylonjs. Recently I encountered a problem while creating the game. I create a model in blender and export this to .babylon format, all works fine, but when I want to add a reflection (in water) to this model game fails this error:babylon.2.0.js:4 Uncaught TypeError: Failed to execute 'uniformMatrix4fv' on 'WebGLRenderingContext': No function was found that matched the signature provided.Water init code (i use water from WORLDMONGER) water = BABYLON.Mesh.CreateGround("water", 1024, 1024, 1, scene, false); var waterMaterial = new WORLDMONGER.WaterMaterial("water", scene, light); waterMaterial.refractionTexture.renderList.push(ground); waterMaterial.reflectionTexture.renderList.push(skybox); water.visibility = 0.5; water.material = waterMaterial;After adding my mesh (after it loading) water.material.reflectionTexture.renderList.push(players[0].meshModel);In attach model that I use. In advance thanks. footman.zip