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 - Melssj5

Pages: 1 ... 46 47 [48]
Support / Again
« on: December 26, 2004, 02:17:00 am »
Quote from: "EgonOlsen"
Are you really using checkCameraCollision()? If so, you should better use checkCameraCollisionEllipsoid() instead. If it still doesn't work, maybe the scale of you scene is too large. Play around with Config.collideOffset in that case.

I set the Config.collideOffset on 400 and worked, but, It doesnt work perfectly when walking back, only when walking to the front. May anyone help me explaining me how does the collision detection works,and maybe little pieces of code or something.

Its very difficult to understand the doc of the engine becausse my English is not very good.  :(

When I found a wall, it stops, after that I can move in any direction but in back, the 50% of times I cant move back after detecting a collision. Heres the code I used:
Code: [Select]

private void formKeyPressed(java.awt.event.KeyEvent evt) {
        // Add your handling code here:
        if (evt.getKeyChar()=='w') {
            if (theWorld.checkCameraCollision(1, 3)==false)
                camera.moveCamera (Camera.CAMERA_MOVEIN, 3);
        if (evt.getKeyChar()=='s') {
            if (theWorld.checkCameraCollision(-1, 3)==false)
                camera.moveCamera (Camera.CAMERA_MOVEOUT, 3);
        if (evt.getKeyChar()=='a')
            camera.rotateAxis(camera.getBack().getYAxis(), -0.065f);
        if (evt.getKeyChar()=='d')
            camera.rotateAxis(camera.getBack().getYAxis(), 0.065f);
        if (evt.getKeyChar()==' ')
            camera.moveCamera (Camera.CAMERA_MOVEUP,5);
        if (evt.getKeyChar () == 'z')
            camera.moveCamera (Camera.CAMERA_MOVEDOWN,5);
        repaint ();

Support / Help with the collision detection
« on: December 20, 2004, 05:57:36 am »
Hello, I was reviewing the demos I downloaded, but I am afraid I cant understand them at all nor how the collision detection is made, I am making a first person game, so I am moving the camera, I tried but the all what I could do was detecting just the 5% of the walls, I need an easy and simple example of detecting a collision using the camera, please.

I set the collision mode to collide with others and with it self on the level once it was all merged, and I used check camera collision when moving the camera. I dont know, Why only works with specific walls, and only a few times?

I someone can help me with any piece of code, please do it.

I am doing an awt applet.


Support / Same problem
« on: December 20, 2004, 02:03:16 am »
You must rename your file from xxxxxx.3DS to xxxxxx.3ds, It shouldnt be difference but, I got the same problem and I solved it on that way. You can rename it from windows without problem. but it os a kind of stange becausse I solved my problem when using an applet, but not when usinga frame, well I am newbie in this, I might be wrong

Support / Help just for starting
« on: December 13, 2004, 01:03:23 am »
Quote from: "EgonOlsen"
Your code looks ok to me. It's just that it couldn't find the 3DS-file. Make sure that it can and it should work. However, i can offer you some small tutorials that somebody wrote a while ago. I've uploaded them here:
Please note that i haven't tested these nor did i had a closer look at them. The guy who wrote them seemed to have stopped working on them, so i give them to you in the state they had when i got them. I hope they compile...if they don't, please let me know. It can't be difficult to make them do.

Only the first one worked, it was usefull, but not a lot, thank you in anyway.

Support / Flashing screen on applets.
« on: December 13, 2004, 12:57:51 am »
Hello, I am doing an awt applet, so I put all the rendering code in the paint (); when something happens I use repaint (); but it flashes a lot, I thing that reloading the paint is not the best way to do it, but is there someway to constantly load that piece if code without using the paint?. I want the game to run inside my applet, thanks. :shock:

Support / Help just for starting
« on: December 07, 2004, 02:47:35 am »
Hello again, now I have reviewed the examples that I downloaded but I really cant see clearly how to begin mi program, when I tried the 3D state engine for visual C++, it was a little bit more clear. I just need some information to begin doing my own games, I have reviewed the documentation but I didnt found nothing helpfull, maybe I am not understanding well becausse I dont speak English very well., I would like some small examples, like loading a map; after that loading the map and moving the camera noting else, or any other small example in wich I can learn how to use this engine., thanks.

I tried to load the ql.3ds map, but I couldnt, thats what I did:

public class test {

    public test() {

        public static void main (String args[]) {

        World  theWorld=new World ();
        Object3D [] level=Loader.load3DS ("ql.3ds", 5f);
        for (int i=0; i<level.length; i++) {
        Object3D part=level;


a message appear in the console

Loading file ql.3ds
[ Mon Dec 06 20:45:35 GMT-05:00 2004 ] - ERROR: Couldn't read file ql.3ds
[ Mon Dec 06 20:45:35 GMT-05:00 2004 ] - ERROR: Not a valid 3DS file!

Now I am a kind of lost, very confused. :(

I use Forte 3.0 e.e.

Support / Using the mouse to move the camera
« on: December 06, 2004, 09:55:20 pm »
mouse events is what you need to control the camera through the mouse, you have to use the functions to move the camera, but controled by the mouse, you need a Listener and get coordenates of the cursor on the screen. I Guess!!!.
If the event recieves (java.awt.event.MouseEvent evt) like parameter you can get the position of the cursor on the screen in pixeles by getX () and getY (), both returns an int value.

Support / Some help here!!!!
« on: December 06, 2004, 08:14:37 pm »
Sorry  :oops:
Please excuse me if I do some fools quertions. Is the first time that I use a forum. I the future i will pay more atention before asking something.

Support / License information
« on: December 06, 2004, 10:00:53 am »
Hello, I want to know more about the license of jpct.
    What kind of licence does it have?
    It is totally free? for any use? (Personal o comercial)
    What exactly do I need to use it for comercial purposes?

thats all!.

Support / Some help here!!!!
« on: December 06, 2004, 06:00:48 am »
Sorry for my language skills, I speak Spanish and just a few English.

ok: here is my problem:

I am very interested on making video games. Now I am a novat, I enjoy doing 3D models using 3D studio max and others, I know how to use C++ and java, so I am not an expert but  I learn quickly. I have more skills using java tecnologies so I decided to try jPCT as Engine, I tried before an engine from "3D state", but I was disapointed for the graphics capabilities.


I would like help with a list of commands that uses this engine with a little explanation in Spanish of each one if possible, and another explanation on how to implement java application using this engine.
I know that nobody will send me a 100% complete list of all the commands, objects, classes, etc. but. the most usefulls please.

Thanks a lot.

Pages: 1 ... 46 47 [48]