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

Topics - Melssj5

#101
Support / Getting an object from a World
September 10, 2005, 04:11:42 AM
Hi, am am doing a game in wixh I want to use two Worlds.

I wanted to have a methos that loads all the .3DS files from a given directorie so I have ordered my level in direcories like

MAP1

MAP2

MAP3

and I just have to call a method to load all 3D objects inside, but as the my loading method loads Object in general, I used a local temporalObject3D, and after loading all inside the direcorie it builds them into the world with buildAllbjects ();

Now I need to move one of the .3DS files inside the directory I loaded, bus as I used a local object3D for generality reasons now I need to get the Object3D whose file is called Seleccionador.3DS but I cant, how can I do it, the file only have 2 pyramids but I need to move it, I tried using the getObjectByName (String name) from World but it didnt work.

Which are the names of the 3DS loaded, I tried using "Seleccionador", "Seleccionador.3DS", as it didnt worked I think can only the parts can be gotten with this method so I tried with "Pyramid01_jPCT18" because I saw that name when the 3DS file is being loaded, but it didnt worked too, how can I do that.
#102
Support / Detecting OpneGL capability
September 05, 2005, 09:29:11 AM
Hi, when I began trying this engine again, I tried to use the openGL but all what I got was a white screen, so I tried all what was possible, but I just couldnt, then I thought that it could be due to my graphic card, because I lend my GForce 4 to my brother and I was using my sis651 of 64MB that is supposed to have OpenGL compatibility.

When I bring my GForce again it worked perfectly, so I want to know if is there any way that the engine API can detect this capability!!!!!
#103
Support / Using the mouse when using OpenGL
September 04, 2005, 08:11:21 AM
Well, I have a pair of questions:

First is about using the openGL rendering, it opens a new Frame, how can I change the properties of that frame created when enabling the openGL render, for example, changing the title or things like that?

Second: KeyMapper is used to manage key events, but what about the mouse events?
#104
Support / Whats wrong with my collision detection
September 04, 2005, 03:24:53 AM
Hi, I have not used the engine in ages, so 2 days ago I began to do little project, but I just cant do the collision detection.

When I thought that it was good, I noticed that it didnt worked on the corners, I tried with other ways, but now the camera moves very quickly and no matter the speed I set.

here is my code for managing the events taken from the KeyState


public void movimientos () {
       
       boolean piso=false;
       try {
           if (Mundo.checkCameraCollision (new SimpleVector (0, 1, 0), alturaPersonal, alturaPersonal, false))
               piso=true;

           if (adelante)
               if (Mundo.checkCameraCollision (camaraPersonal.getDirection (), alturaPersonal, alturaPersonal, true))
                   camaraPersonal.moveCamera (Camera.CAMERA_MOVEIN, velocidadPersonal);

           if (atras)
               if (Mundo.checkCameraCollision (camaraPersonal.getDirection (), alturaPersonal, alturaPersonal, true))
                   camaraPersonal.moveCamera (Camera.CAMERA_MOVEOUT, velocidadPersonal);
           
           if (izquierda) camaraPersonal.rotateAxis(camaraPersonal.getBack().getYAxis(), -0.02f);
           
           if (derecha) camaraPersonal.rotateAxis(camaraPersonal.getBack().getYAxis(), 0.02f);
           
           if (salto)
               if (Mundo.checkCameraCollision (Camera.CAMERA_MOVEUP, alturaPersonal, alturaPersonal*4/3, true))
                   camaraPersonal.moveCamera (Camera.CAMERA_MOVEUP, velocidadPersonal);
           
           if (agache) camaraPersonal.moveCamera (Camera.CAMERA_MOVEDOWN, velocidadPersonal/2);
           if (salida) System.exit (0);
       }
       catch (Exception E) {
           
       }
   }


Well, the gravity done on the second line works good, the problem is when moving the camera to the front and back.

If I have to use another kind of collision detection please could someone explain me why and how?.
#105
Feedback / Free 3ds files
February 17, 2005, 01:56:51 AM
Somebody knows where can I download some free .3DS files, I am tired if doing own models, they are ugly.
#106
Support / strange malfunction
February 15, 2005, 08:45:23 AM
Hello, I made a program, not a game, just for my University, about a mouse inside a maze that must find the chesse. So it worked perfectly so I made a 3D aplication for that, and it worked the mouse moved along the maze by it self, but when I tried to set a camara in front of the mouse, the mouse doesnt rotate, only move, just for changing the camera, that have nothing to do with the object called "Rat".

Another problem but this is not strange, when I move the rat, The mobement is not continuous. it moves like a teletransportation and not like a movement like walking, is just about moving with a slow speed?

by the way someone have a rat model .3ds  U can use, vecausse as long as its very difficult to do a rat using 3D sturio max, I used an airplane  :oops:
#107
Support / Rendering different cameras
January 30, 2005, 12:27:49 AM
Hello I am trying to make a multiplayer game, so I made a class called "Escenario", that have static fields and methods so they can be accesed from anywhere without declaring objects, The problem is that the render that I know how to do, renders the world throught an asigned camera, but I need to render what an specific and not asigned camera is viewing, for example: the examples that came with the api reference the camera to the asigned camera
Camera C=theWorld.getCamera ();

and C is the asigned camera, but if I want to use another camera I can do:

Camera C=new Camera ();
theWorld.setCameraTo (C);

and C is the asigned camera here.

But the camera to render must be always the camera asigned to World. My question is:

Is there any way to render to diferent cameras at the same time, because when I run my applet in my browser, it renders in both web pages the same camera. I dont know if my problem is being understood.

I nned to know how to render the content of a camera without asigning it as the World default camera.
#108
Support / Watching everything
January 02, 2005, 04:33:31 PM
Hello, I what can I do to avoid that the far objects disappears, I am doing a game with huge outdoors maps, so I want to be able to see everything arround me but far objects dissaperas, everything gets black. Or how can I do to change the distance to became dark, I tried to use the Config fields but everything is the same.
#109
Support / crooshair
December 31, 2004, 05:05:23 AM
Is there any way of adding something like a crooshair to the camera, I think that I could link an Object3D to the camera, but I am looking for something like a texture placed on the camera, so I won need to move both objects.

Happy new year for everybody!!! :P
#110
Feedback / Just suggestions.
December 26, 2004, 04:58:03 AM
Well, I think that the engine is great, but should support more kinds of textures and maps, no only placing a file.jpg as a color, but also having bump, opacity, etc. all the features that are placed on the models when making them in whatever software like 3d Studio Max. On that way more realistic Graphics can be used on games or any other application. Especially the reflection and the opacity. What would be really great is supporting moving textures that may be great for water or the sky.
#111
Support / Help with the collision detection
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.

Thanks.
#112
Support / Flashing screen on applets.
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:
#113
Support / Help just for starting
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;

        theWorld.addObject(part);
     }
       theWorld.buildAllObjects();
   }
}

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.
#114
Support / License information
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!.
#115
Support / Some help here!!!!
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.

now:

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.