RaananW Posted October 28, 2015 Author Share Posted October 28, 2015 Oimo cannot support heightmap, as it only has spheres and boxes impostors. The heightmap demo on oimo's website is actually a lot of spheres simulating a surface. this works only with specific surfaces.I have to say that I am trying to work on a solution, but so far my tests were not very successful. I will keep everyone informed. BTW - I find cannon.js better than Oimo in regards to physics calculations. Oimo runs smoother, but lacks a lot of features that cannon offers. GameMonetize and Pryme8 2 Quote Link to comment Share on other sites More sharing options...
jerome Posted October 28, 2015 Share Posted October 28, 2015 mmh.. just re-checked here with another computer : the spheres aren't triggered with Chrome v46 (ubuntu 14), but it works with Chromium and FFprobably something related to the onPointerUp event Quote Link to comment Share on other sites More sharing options...
RaananW Posted October 28, 2015 Author Share Posted October 28, 2015 No way for me to debug that, but it is probably event-naming or something similar... Would be nice to have it repaired thou. But! physics engine is working :-) jerome 1 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted October 28, 2015 Share Posted October 28, 2015 Yeah Jerome, stop pooping the party. GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
wo997 Posted December 23, 2016 Share Posted December 23, 2016 I'm having trouble with my project, textures and heightmap load without any glitches, but it doesn't create physics impostor. Is anyone active there? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 4, 2017 Share Posted January 4, 2017 Can you elaborate a bit more? Quote Link to comment Share on other sites More sharing options...
wo997 Posted January 17, 2017 Share Posted January 17, 2017 On 4.01.2017 at 8:53 PM, Deltakosh said: Can you elaborate a bit more? Sorry I didn't see your message, I'm new to this website and I followed this topic to get notifications. I think it's just because only spheres can collide with heightmap right? Then I have to do physics bodies on my own. Is there a way to plot any object (triangle in 3d space) and give it physics? I'm not talking about cloth physics, but I think I the best way to make physics body is to create many invisible boxes or spheres and joint them. I will try it anyway, if you have any other suggestions please let me know BTW how I'm doing "rigid" joint? I use two hinge joints in 2 different axis. That's all. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 17, 2017 Share Posted January 17, 2017 spheres and boxes can interact with heighmaps. If you want to use mesh impostors I do not think there is a good (fast) solution. Joining basics impostors is fine. You can use Conpound for this task:http://doc.babylonjs.com/classes/2.5/Scene#createcompoundimpostor-parts-options-rarr-any Quote Link to comment Share on other sites More sharing options...
cosmicBubble Posted May 4, 2017 Share Posted May 4, 2017 I'm new! I have a problem with my project, whenever I try to put the impostor at the heightmap it does not work. I used the callback for the impostor, then I assigned the impostor there and created the sphere. I already tried the old post about height and physics. ¿Could you help me plz? Quote Link to comment Share on other sites More sharing options...
Wingnut Posted May 4, 2017 Share Posted May 4, 2017 Hiya Cosmic, welcome to the forum. We (I) am currently working an issue that might be related to your problem. Here's the talkie thread: http://www.html5gamedevs.com/topic/29881-heightmapimpostor-dont-work-correct/ Here's the playground demo that shows the heightmapImpostor ONLY working on its southWest 25% area. The latest theory (mine only) is that the invisible heightmapImpostor needs to be re-position northEast a bit, and then... fixed. Still studying it. There's some talk around the forum (including recently, in the Bugs sub-forum) about a recent change in some boundingBox measuring tools... that COULD be causing the problem. I'm not really qualified to find the problem, but I AM a professional whiner... so I'll keep whining until someone can explain what is going-on. So far, I've been kept in the dark... but I am still investigating. Since pinging @RaananW seems to be 'en vogue', I'll do it yet again. He's pretty sharp in the physics department, but he's darned busy in real life. Stay tuned, and try to be patient. Again, welcome. Sorry to hear you are having troubles. We're on it... I think. Quote Link to comment Share on other sites More sharing options...
Wingnut Posted May 5, 2017 Share Posted May 5, 2017 Hi Cosmic and other forum folk. Whelp, I've been grinding this issue for a week, now. Needless to say, I'm failing miserably. It is also related-to another issue. http://www.babylonjs-playground.com/#1RKZXB#16 Changed camera to aiming +z. All core physics classes have been inserted into this testing PG. The only working physics quadrant is lower right [-z/+x quadrant]. Impostor extends beyond lower right corner of mesh, so I am assuming impostor needs re-positioning. I think the problem is in lines 1023-1043 area... but I am having NO LUCK correcting it, or even working-around it. Calling all forum helpers. I/we need the impostor positioned 250 units northwest (-x+z) (or a fix for whatever is causing the issue). Please help. Thanks. Quote Link to comment Share on other sites More sharing options...
Raggar Posted May 5, 2017 Share Posted May 5, 2017 I've been through this without any luck as well. http://www.babylonjs-playground.com/#1PX171#23 In all those examples, I use the very first heightfield I got working using the function implemented in Babylon.js: For some reason, I've had a really hard time switching this heightfield with just about any other heightfield/mesh, This leads me to believe that the issue is with the createHeightmap function. Somewhere. Maybe the extentsize handling. I'm not at all sure. Cannon.js is known to have issues with heightfields, but I believe this is an issue with that function. If memory serves me right, I got it working only after exporting my model to clara.io, and then using clara.io's .babylon blender-exporter. Using 3Ds max' own exporter didn't work for some reason. In my example, look how much the heightfield in 'off' based on its scale: heightBody.position.y = -18; heightBody.position.x = -120; heightBody.position.z = 120; Wingnut 1 Quote Link to comment Share on other sites More sharing options...
cosmicBubble Posted May 14, 2017 Share Posted May 14, 2017 Thank you all for your help, in the end I solved the problem, apparently it was a problem importing the library. Quote Link to comment Share on other sites More sharing options...
nittrus Posted September 7, 2017 Share Posted September 7, 2017 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... Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 7, 2017 Share Posted September 7, 2017 Can you repro on the PG? Quote Link to comment Share on other sites More sharing options...
nittrus Posted September 7, 2017 Share Posted September 7, 2017 28 minutes ago, Deltakosh said: Can you repro on the PG? 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. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 7, 2017 Share Posted September 7, 2017 Not on top of my mind Quote Link to comment Share on other sites More sharing options...
nittrus Posted September 7, 2017 Share Posted September 7, 2017 4 minutes ago, Deltakosh said: Not on top of my mind OK Thanks Quote Link to comment Share on other sites More sharing options...
Wingnut Posted September 7, 2017 Share Posted September 7, 2017 Hi Nittrus. Could you test one thing for me? Imagine your ground is divided into 4 equal "quadrants" or sub-areas. Please test all 4 quadrants... for player fall-through. In other words, drop your player towards back-left corner of ground, then back-right quadrant, then front-left, and front-right. Any interesting things seen? Perhaps player doesn't fall-thru in ONE quadrant, but DOES in other 3 quadrants? Just curious. We have seen something like that before. In that issue, I believe the solve was related to the ORDER of ground.convertToFlatShadeMesh() and adding the physicsImposter. If you ARE using flat shading on your ground, you might want to turn that off, and see if anything changes. *shrug* Also, physics world.step and physics world scaling, have been mentioned around the forum. If the player drops from the sky at a very fast velocity, there is a chance that the physics engine steps... are not happening fast enough to "catch" the collision. You'll need to do some forum searches and playground searches... to get the details on those. Most times, those things don't need adjustments. And the inconsistency of your fall-thru... hmm... that seems to point to some other problem. We'll all keep thinking, and you report discoveries, ok? The Cannon HeightMap demo #75 has been seemingly working pretty well, last we knew. (not seriously torture-tested, though) Just some thoughts. Quote Link to comment Share on other sites More sharing options...
nittrus Posted September 8, 2017 Share Posted September 8, 2017 4 hours ago, Wingnut said: Hi Nittrus. Could you test one thing for me? Imagine your ground is divided into 4 equal "quadrants" or sub-areas. Please test all 4 quadrants... for player fall-through. In other words, drop your player towards back-left corner of ground, then back-right quadrant, then front-left, and front-right. Any interesting things seen? Perhaps player doesn't fall-thru in ONE quadrant, but DOES in other 3 quadrants? Just curious. We have seen something like that before. In that issue, I believe the solve was related to the ORDER of ground.convertToFlatShadeMesh() and adding the physicsImposter. If you ARE using flat shading on your ground, you might want to turn that off, and see if anything changes. *shrug* Also, physics world.step and physics world scaling, have been mentioned around the forum. If the player drops from the sky at a very fast velocity, there is a chance that the physics engine steps... are not happening fast enough to "catch" the collision. You'll need to do some forum searches and playground searches... to get the details on those. Most times, those things don't need adjustments. And the inconsistency of your fall-thru... hmm... that seems to point to some other problem. We'll all keep thinking, and you report discoveries, ok? The Cannon HeightMap demo #75 has been seemingly working pretty well, last we knew. (not seriously torture-tested, though) Just some thoughts. 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! GameMonetize and Wingnut 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.