Mezzorio Posted September 5, 2017 Share Posted September 5, 2017 Hey Guys! I have a video demo of what my build, What i'm struggling with is how to make it seem flatter when panning from left to right and hiding the fact you can see the edges or the circle the sprites are positioned in and can tell they are coming round in a circle not across a flat image, which is the effect i'm after. Here is a youtube video of my current build, and a babylon playground with broken textures (sorry!) to view how i'm going about the build! Playground: https://playground.babylonjs.com/#IDDZ4K Youtube: Quote Link to comment Share on other sites More sharing options...
adam Posted September 5, 2017 Share Posted September 5, 2017 Don't position them in a circle. Line them all up and then translate the camera instead of rotating it. When you the camera gets to the end, move the meshes one by one from one side to the other. I just looked at your PG. If you aren't moving the camera, move the meshes and when a mesh gets to the end, move it to the other side. You should be able to do that easily with the modulus operator (%). Quote Link to comment Share on other sites More sharing options...
Mezzorio Posted September 5, 2017 Author Share Posted September 5, 2017 6 minutes ago, adam said: Don't position them in a circle. Line them all up and then translate the camera instead of rotating it. When you the camera gets to the end, move the meshes one by one from one side to the other. I just looked at your PG. If you aren't moving the camera, move the meshes and when a mesh gets to the end, move it to the other side. You should be able to do that easily with the modulus operator (%). Hey @adam I have been looking at doing that, but i've been struggling to get it working and looping, could you possibly make a mini demo for me? Quote Link to comment Share on other sites More sharing options...
adam Posted September 5, 2017 Share Posted September 5, 2017 https://playground.babylonjs.com/#4GCPF4 https://playground.babylonjs.com/#4GCPF4#1 Quote Link to comment Share on other sites More sharing options...
Mezzorio Posted September 5, 2017 Author Share Posted September 5, 2017 10 minutes ago, adam said: https://playground.babylonjs.com/#4GCPF4 Thanks! I'm gonna play around with this! I'll probably come back to you because i'll break something simple as I usually do :') Quote Link to comment Share on other sites More sharing options...
Mezzorio Posted September 5, 2017 Author Share Posted September 5, 2017 @adam Do you know if i can set the movement using my mouse hover controls? Also struggling to swap over from spheres/meshes to the sprites and sprite manager 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.