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.

Messages - mustafa1991

Pages: [1]
Support / Re: Strange coordinate system
« on: July 26, 2011, 01:04:54 am »
The coordinate system is as much upside down as any other. It's just uncommon...but apart from that, you must be doing something strange. Are you sure that you are looking at your scene from the right angle?

Thanks for replying

Well, here is a demo I simplified the program to be one Java file, so you can test it if you want to.  8)

Code: [Select]
import java.awt.Color;
import javax.swing.JFrame;
import com.threed.jpct.*;

public class Game {

private JFrame frame;
private FrameBuffer buffer;
private World world;

public static void main(String[] args) {
new Game().loop();

public Game() {
frame = new JFrame("Game");
frame.setSize(800, 600);

world = new World();

// create cubes
Object3D cube = null;
for(int i=0; i<5; i++) {
cube = Primitives.getCube(10f);
cube.translate(i*30, 0, 0);;


                // camera angle 1
//world.getCamera().setPosition(50, 0, -150); // you can uncomment this and comment the next to lines for an other anlge

                // camera angle 2
world.getCamera().setPosition(50, -150, 50);

private void loop() {
buffer = new FrameBuffer(800, 600, FrameBuffer.SAMPLINGMODE_NORMAL);
while(frame.isShowing()) {
try {
} catch (InterruptedException e) {}

Do I have the right angle?
I didn't rotate the cubes, did I rotate them somehow in my code?  ???

Support / Strange coordinate system
« on: July 25, 2011, 11:45:50 pm »
First the coordinate system is upside-down  ???
This is not the main problem, I can deal with that.

The problem is that I want to create a row of cubes
like this: (+ = cube)


Code: [Select]
for(int i=0; i<5; i++) {
Object3D cube = Primitives.getCube(10f);
cube.translate(i*30, 0, 0);;


I get a strange row of cubes, I get something like this:


Why does this happen I translated them on the X axis, I tried the other axis same thing but in other directions  :'(
I didn't rotate anything!

Support / Difference between jPCT and jPCT-AE.
« on: July 25, 2011, 07:10:07 pm »
Hi, I'm new to jPCT.  :)
I read that there is a small difference between jPCT and jPCT-AE.

How much different are they? What part is different?
How much time/effort will it take to port from one to another?

Testing on android is very slow ... I would rather develop the game for the desktop and test it and then port it to the Android platform and do Android specific testing.

Do you think I will be faster at developing if I do so?


Pages: [1]