iiceman Posted July 26, 2015 Share Posted July 26, 2015 I think Sprites are always squares. But yeah, you could use a plane of course and then just scale that plane. Use the image as a Texture and it gets stretched until it fits the size of the plane... I think Quote Link to comment Share on other sites More sharing options...
elkyu Posted July 26, 2015 Author Share Posted July 26, 2015 But, for a plane, it's also predefined size, no ? I didn't found how to define a precise size.For example If my image size is 720x360, is it possible to define this size to the plane ? Quote Link to comment Share on other sites More sharing options...
iiceman Posted July 26, 2015 Share Posted July 26, 2015 Well, as long as you keep the aspect ratio it should look good I assume. So if you make your plane 72x36 or 10x5 or 2x1... as long as the aspect ratio is the same it should look good. Like that maybe: http://www.babylonjs-playground.com/#272WDW#5 Quote Link to comment Share on other sites More sharing options...
elkyu Posted July 26, 2015 Author Share Posted July 26, 2015 Ok, I see !I think I can do what I want with that Thanks ! Quote Link to comment Share on other sites More sharing options...
BdR Posted July 30, 2015 Share Posted July 30, 2015 A thought from a non-programmer. Could you use a shader to accomplish this? Ground distorting shader From a few minutes tinkering, the crucial part that influences the geometry with time is line 19 of the vertex shader. Could substituting the appropriate math at line 19 create the kind of effect you want? cheers, gryff I'm not really familiar with shaders, but here is a pretty convincing water effect https://www.shadertoy.com/view/MdlXz8 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.