Author Topic: Analog stick and heightmap questions  (Read 2255 times)

Offline Fishsticks

  • byte
  • *
  • Posts: 1
    • View Profile
Analog stick and heightmap questions
« on: July 16, 2011, 05:52:03 am »
Hi there, I'm trying to create a test game which contains the player (third-person view), a camera that follows the player, and also terrain generated by a heightmap. I'm very new to this engine, so I have a couple of questions:

1. I want to create an analog stick on the screen (HUD) that I can touch and move around, controlling the player. I understand that I can just translate() the player based on its rotation via the analog stick's rotation. My question is, is it possible to create the analog stick (with all the touch events) using this fantastic engine alone, or should I look at libgdx?

2. Using Kaiidyn's heightmap class on the Wiki, while it does function, I'm curious as to how long other people's devices take to generate the terrain. On my Galaxy Tab, it takes around 6-7~ seconds. Perhaps I've got my models scaled too big, or there's something wrong with my camera, but it does seem like a long time to generate a small map, can someone please comment on this?

Thank you in advance. I hope that eventually, with enough understanding of the engine, I'll be able to help other users on this forum.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Analog stick and heightmap questions
« Reply #1 on: July 16, 2011, 12:39:27 pm »
jPCT is a 3D engine. It doesn't include support for creating control elements and such. However, it has everything to render that analog stick on screen (by simply blitting textues). I don't see the need for any other library as the Android SDK includes everything that you need to write your own stick implementation. Touch events and gestures are really simple to handle with the SDK and that's all you need.