DJousto Posted March 18, 2017 Share Posted March 18, 2017 Hi, is there a native babylonjs way to design a game map from basic tiles like those : tiles for example to get a racing game circuit ? Quote Link to comment Share on other sites More sharing options...
Wingnut Posted March 20, 2017 Share Posted March 20, 2017 Hiya D! I don't think there is anything 'wonderful', but texture scaling and offsetting can convert an "atlas" like that... into a tile collection. http://www.babylonjs-playground.com/#14VBAE#3 I suggest a hi-rez texture atlas. Perhaps others have other ideas. Be well. c75 1 Quote Link to comment Share on other sites More sharing options...
V!nc3r Posted March 20, 2017 Share Posted March 20, 2017 I think it's better to play with UV vertex coordinates rather than UV scale & offset combination. Don't know how to do that by coding however ^^ Quote Link to comment Share on other sites More sharing options...
jerome Posted March 20, 2017 Share Posted March 20, 2017 once again, the SPS is your friend for this : http://doc.babylonjs.com/overviews/solid_particle_system Play with the particle property "uvs" : http://doc.babylonjs.com/overviews/solid_particle_system#uvs Don't think about particles as particles in some particle system, but think rather about them as subparts of your mesh that you can set directly. GameMonetize and Wingnut 2 Quote Link to comment Share on other sites More sharing options...
DJousto Posted March 23, 2017 Author Share Posted March 23, 2017 thank you, I'll try this week-end and post the result if i get some result 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.