Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - nsnatraj

#1
Support / Re: control camera using dkey / touch
July 13, 2012, 08:56:17 AM
What I am trying to do with this code is
((float) (cube.getYAxis().y + 0.2)
place the camera from the +0.2 from cube's y axis.

Same I had tried with camera.getYAxis() and camera.getPosition().y it is also giving me the same result or only once the camera moves. :(

I have tried following values 1, 0.1, 0.01, 0.001 but for each one the cube goes out of the screen.
#2
Support / Re: Help creating architect walk through
July 13, 2012, 08:41:51 AM
Thanks.. its working.  ;D

I was using "Overlay(World world, FrameBuffer buffer, java.lang.String textureName) " 
#3
Support / Re: Help creating architect walk through
July 12, 2012, 01:14:06 PM
sorry went through the android documentation  ;D and found that when OpenGL renders it takes what ever screen space is available.  ;D

I did set other coordinates using "setSourceCoordinates" but no use  :(.

Am I right or am I missing something?
#4
Support / Re: control camera using dkey / touch
July 12, 2012, 01:05:03 PM
Sorry that I am not able to properly explain my problem.

As you have told to get the camera from world I had done that and then I am rotating the camera.


world.getCamera().gtBack().setIdentity();
world.getCamera().rotateY((float) (cube.getYAxis().y + 0.2));


But when this code is executed the camera movement is to drastic any times the cube moves out of the screen. I want a smooth transition like FPS game.

Can you help me in controlling the camera in a smooth fashion?
#5
Support / Re: Help creating architect walk through
July 12, 2012, 06:04:42 AM
I added the buttons in the Android code but they are not shown on the UI. I had used the HelloWorld example and in the layout\main.xml file I added two buttons but when I run the project if does not show the buttons. so I tried adding a overlay,  but the overylay image is covering the whole screen. :(

Can you let me know how and where the worldspace is inserted in the UI by jPCT?
#6
Support / Re: control camera using dkey / touch
July 12, 2012, 05:54:52 AM
Thanks for the reply.

What I wanted was to rotate the camera around based on the key event, similar to waking in a maze or fps game.
For e.g. when the character moves forward the camera should also move in that direction and when the character moves in right / left direction the camera should also move in that direction.

The app which I am creating is just a Proof Of Concept for our sales team.
#7
Support / control camera using dkey / touch
July 10, 2012, 03:06:38 PM
I want to create an app where I want to control the camera using dkey / touch. Say something like,  a cube which we can see from all sides.

I have checked the HelloWorld example. in it the cube is rotated, but I want to control the camera using dkey /touch so that the end user would see the four sides of the cube.
#8
Support / Help creating architect walk through
July 10, 2012, 08:21:56 AM
I am creating a POC for a architect walkthrough on android using game engine. I came across JPCT and trying out some things. But I am not able to

  • Add buttons for moving the camera.
  • Move the camera based on swipe/button press like in FPS game
Any pointers to how to do it would be very much appreciated.