Hi,
i want to make a chess-like game using basegame and gamestates.
i’ve followed the gamestate example (TestGameStateSystem).
in the example, they use firstPersonHandler to move/turn/tilt the camera.
But actually, i would like my camera to stay a few meters above my chess-board and the player should only be able to turn/tilt the camera.
Just like the board was the center of a sphere and my camera could be on any spot on the surface of the sphere and yet always looking at the center(the board)
No special key-bindings or something, just a simple mouselook
How can i set up a camera like this?
Ive searched alot, and even gone through the monkey-mahjongg code, but couldnt find any proper hints.
Thanks for your help in advance
hey there and welcome to the boards
Take a look at ChaseCamera and create your own CameraThingy similar to it but lock the distance from the object as suggested by Core_Dump in: http://www.jmonkeyengine.com/jmeforum/index.php?topic=9989.0
Thanks for the fast reply
This works fine. Now i got another problem though.
Whenever i move the camera around, all transparent textures start to flicker for as long as i move the camera.
What could be the reason for this / how can i fix this?
papercut said:
Thanks for the fast reply :)
This works fine. Now i got another problem though.
Whenever i move the camera around, all transparent textures start to flicker for as long as i move the camera.
What could be the reason for this / how can i fix this?
It sounds like it might be a z-fighting issue. Look through the forums for either "z-fighting" or ZBufferState.