Jump to content


  • Content Count

  • Joined

  • Last visited

About nittrus

  • Rank
    Advanced Member
  • Birthday November 2

Contact Methods

  • Website URL

Profile Information

  • Location
    Vermont, USA
  • Interests
    Programming, game development, everything HTML5, web development, cycling, kayaking

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I know this is rather old but I feel this should be updated so others searching for a solution have up to date information so here ya go. mesh.getPhysicsImpostor().getLinearVelocity(); To get the velocity of rotation of an object use getAngularVelocity. mesh.getPhysicsImpostor().getAngularVelocity();
  2. Just a follow up, I had to set the terrain tri-planar mapping material needDepthPrePass to true. trimaterial.needDepthPrePass=true; This resolves the issue, just in case anyone needs to know.
  3. Found the issue and I haven't a clue what the line of coding causing it was for but it had to do with clamping Z quaternion, I'm going based on memory now as I had to leave after I had fixed the issue and came back to see your reply. I still have no idea why that would have caused the issue but it seems it was something that got added for a reason that is no longer valid so yeah, all fixed, not a bug in Babylon after all just my code!
  4. I may have spoke to soon.. this is odd, I create objects then give them imposter and they are fine, but for some reason my actor model falls through the ground and it uses boxImposter so it's not complex, it only happens with certain imported meshes though.. is there anything known that could cause one imported mesh to behave like that but not another all using boxImposter? Something is going on but not what I initially thought.
  5. Sadly physics with heightmap no longer works in versions > 3.0 objects sink through terrain This is a rather important and critical feature and it was working fine until 3.0...
  6. I found that this issues is the same for trying to receive shadows on the built in watermaterial, so maybe it is related? waterMesh.receiveShadows=true true babylon.2.5.js:3 BJS - [17:26:31]: Unable to compile effect: t._ErrorEnabled @ babylon.2.5.js:3t._prepareEffect @ babylon.2.5.js:15(anonymous function) @ babylon.2.5.js:15t._processIncludes @ babylon.2.5.js:15(anonymous function) @ babylon.2.5.js:15t._loadFragmentShader @ babylon.2.5.js:15(anonymous function) @ babylon.2.5.js:15t._processIncludes @ babylon.2.5.js:15(anonymous function) @ babylon.2.5.js:15t._loadVertexShader @ baby
  7. var terratiles = scene.getMeshesByTags("terra"); var meshes = scene.getMeshesByTags("mesh"); for(var index=0; index < terratiles.length; index++){ //remove tiles outside of max range var tt = terratiles[index]; var ttid = tt.id; //Remove if(phys){ if(Math.round(getdist({x: tt.position.x, y: tt.position.y, z: tt.position.z},{x: actor.physicsImpostor.getObjectCenter().x, y: actor.physicsImpostor.getObjectCenter().y, z: actor.physicsImpostor.getObjectCenter().z})/terrasize)*terrasize > terrasize*6){ var ttobs = scene.getMeshesByTags(tt.id+'_mesh'); ttobs.filter(function
  8. It seems I was wrong in my understanding of the dispose function, it doesn't remove the object it's self only it's data from the scene, the object is still there, I can not find a way to remove the object, I set it to null for garbage collection but I am still having the draw calls going up so must be something else, back to debugging my code.. fun times.. Does BJS have a method for completely destroying an object by chance? Thanks!
  9. This seems to no longer work in 2.5 release, I was having an issue with to many draw calls and tracked it to the call I had to remove meshes no longer working, works fine in 2.5 beta though, so weird.
  10. Any updates on this, I been waiting as it seems to be far better than cannon in efficiency and I looking at the demo's looks great! Noticed the domain http://www.energy-js.com is no more x.x
  11. Here is source code of what I am doing.. //Setup TriPlanarMaterial for terrain trimat = new BABYLON.TriPlanarMaterial("trimat", scene); trimat.diffuseTextureX = new BABYLON.Texture("img/rock.png", scene); trimat.diffuseTextureY = new BABYLON.Texture("img/grass.png", scene); trimat.diffuseTextureZ = new BABYLON.Texture("img/floor.png", scene); trimat.normalTextureX = new BABYLON.Texture("img/rockn.png", scene); trimat.normalTextureY = new BABYLON.Texture("img/grassn.png", scene); trimat.normalTextureZ = new BABYLON.Texture("img/rockn.png", scene); trimat.specul
  12. This issue persists in Babylon v2.5 When setting receiveShadows to true I get all the errors above, if I set to false I do not. Also, when receiveShadows is set to false on my terrain tiles tri-planar material looks like this for some reason.. Keep in mind each tile is using the same material and same exact setup in general, it either has 0 height or what ever the vertices are set to is the only difference between tiles. Notice how many of the tiles are black, these are all negative X and Z coordinates, that is the only thing the black ones have in common, so it seems tri
  13. Also I noticed that the tutorial page doesn't have a link or explanation that one has to include anything, so people may assume it's built into Babylon, I knew otherwise and went to the GitHub to find it. So a little blurb at the top of this page http://doc.babylonjs.com/extensions/Tri_Planar_Mapping pointing to the place to get it would be helpful. Cheers!
  • Create New...