imosek8 Posted December 22, 2016 Share Posted December 22, 2016 Hello everybody! I'd like to create a terrain that is moving in cycle generated from height map in effective way. I created mesh with new BABYLON.Mesh.CreateGroundFromHeightMap('ground', "http://i1198.photobucket.com/albums/aa455/BelindaSaxondale/album/HeightMap.jpg", 200, 200, 50, -20, 20, scene, true); So I have 200x200 plane with 50 subdivisions. Then I registered before render function in which I take first 51*3 points (51 vertices, cause there is 51*51 vertices) and put it at the end of position array of vertices data of mesh. So it should move the terrain in the cycle, but maybe I'm doing something wrong. Here is my playground: http://www.babylonjs-playground.com/#1CUE8G#5 . I achived something like this here: http://www.babylonjs-playground.com/#1CUE8G#3 but I don't think it's effective way. Quote Link to comment Share on other sites More sharing options...
Wingnut Posted December 22, 2016 Share Posted December 22, 2016 Hi I Effective, efficient, or not... #3 is very cool... and quite fast. I have been looking for ways to simulate high speeds... and #3 is does it well. ArcCam view from re-positioned sphere... crazy ground-hugging speeds. Fun! http://www.babylonjs-playground.com/#1CUE8G#8 I think that's fast enough for jet flight sim, or dragster/funnycar racing. Pretty nice! Well done. Add a little vibration, a little banking, and it gets "intense". http://www.babylonjs-playground.com/#1CUE8G#10 I have no other suggestions. Sorry. Just wanted to give #3 the Wingnut Stamp of Coolness. Quote Link to comment Share on other sites More sharing options...
imosek8 Posted December 22, 2016 Author Share Posted December 22, 2016 @Wingnut Thanks for your response. It looks nice! But I also would like to know why #5 doesn't work? It doesn't do the same ? 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.