mangomongo

Members
  • Content Count

    9
  • Joined

  • Last visited

About mangomongo

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Cool...is it more challenging to do on a sphere? Also, as I understand it, that method limits the # of "terrains" to 3 - what if I wanted to do more than three(eg. water, desert, jungle, forest and snow)?
  2. I am making an app that has planets and currently all my planets are all land, like this: http://www.babylonjs-playground.com/#F6P9N4 You can place markers on the planet by clicking and you can rotate the planet with the arrow keys. Any tips on how I would go about displaying planets that have both land and water? I imagine I could color the whole planet blue and then place brown "islands" on top. How can I procedurally generate the closed loops for the brown patches? I would also need to detect whether the user clicks land or water.
  3. I have this code: https://playground.babylonjs.com/#58YIK7 that does a 2d button in the lower left corner. But I'm using quite a bit of code. Is there a way to simplify the display and click event code? I'm only showing one button here but I have multiple buttons in my real app. Also, is there a way to make the cursor a pointer when over the button?
  4. Hey thanks, it's a bit off though. I forgot to mention that you can use the arrow keys to rotate the sphere. So you need to take the rotation into consideration when finding the point. And when you rotate the big sphere all the little white markers should rotate with the whole sphere. So I think you need to attach the white markers to the sphere using their parent property like I did in my playground.
  5. When a sphere is clicked I want to place an object on the surface of the sphere where the sphere is clicked. I have a playground that places an object at a random point on the surface when the sphere is clicked: http://www.babylonjs-playground.com/#AV08NV Can someone update the unitX, unitY and unitZ vars on lines 33-35 so that they reflect the point on the sphere that was clicked instead of random? These unit x, y and z values are between 0-1.
  6. Hey thanks. It looks like you fixed it for the up and down arrow keys but now the left and right arrow keys have the issue. Is it not possible to fix both at the same time?
  7. I have a wire frame sphere with some markers on its surface: http://www.babylonjs-playground.com/#Q3WWIK You can use the left and right arrow keys to rotate around the y-axis. And you can use the up and down arrow keys to rotate around the x-axis. When you rotate with the left and right arrow keys each marker always stays on a plane that is parallel to the bottom of the screen, no matter what the x-axis rotation is that you may have altered with the up and down arrows. But when you rotate with the up and down arrow keys the markers don't always rotate on a plane that is parallel to the side of the screen. If you use the up and down arrow keys at the very beginning then it will work like I want it to. But if you use the left and right arrow keys a little bit and then rotate with up and down, the up and down rotation will then start to go sideways. How can I always have the up and down arrow keys rotate the sphere like they do at the beginning of the scene? In other words how can I make it so that when using the up and down arrow keys, the markers on the sphere always rotate on a plane that is parallel to the side of the screen?