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.

Topics - Melssj5

Pages: 1 2 [3] 4 5 ... 8
Bugs / NullPointerException when calling to renderScene
« on: March 03, 2008, 06:18:52 pm »
Hi, I am getting a NullPointerException when calling to renderScene (buffer)

I am sure than neither the world nor the FrameBufer is null, so the problem must be a bug os something becausse it happens sometimes. not always.

I have tested the app on 2 machines. and this happens mostly on my P3 laptop with a GForce 2. on my P4 qith a fx 5600 almost never happens this.

this is the stackTrace:

Java version is: 1.6.0
-> support for BufferedImage
Version helper for 1.2+ initialized!
-> using BufferedImage
Software renderer (OpenGL mode) initialized
Current mode:800 x 600 x 32 @60Hz
Driver is: nv4_disp/ on NVIDIA Corporation / GeForce2 MX/AGP/SSE
FBO not supported or disabled!
OpenGL renderer initialized (using 2 texture stages)
Software renderer disposed
Exception in thread "Thread-3" java.lang.NullPointerException
        at com.threed.jpct.Object3D.render(Unknown Source)
        at com.threed.jpct.World.renderScene(Unknown Source)
Conexion establecida con: lrocha en el puerto: 8888
Recibiendo identificador del jugador y su nave
Identificador recibido: 2

Basicly this happens when I want to switch Worlds for rendering.

Support / How to remove the mouse pointer when playing
« on: March 03, 2008, 06:12:59 pm »
Hi, Is there anyway to remove the windows mouse pointer?????

Support / How to blit a pic into a diferent size
« on: March 03, 2008, 06:01:33 pm »
Hi, how can I blit an image in a diferent size than the original pic.

I have a pic of 800x600 and I want it to be blitted on all the screen but the resolution is not always of 800x600 so I need it to be resized on somehow.

Is there anyway to change the size of the original pic?

Is there anyway of changing the size of the texture used for blitting?

Support / Re: Possible downtimes!
« on: July 18, 2007, 01:36:46 am »
Hey Egon, I forgot to report something about the enviroment map on the second layer. On many machines the enviroment map is not being applied, I thought it was due a bad quality video card such as the s3 on mainboards like biostar or asrock, but I tested more and on a intel 128MB and on a Nvidia 256 MB the reflection efect didnt appeared!

Feedback / distance from a point to an Object3D?
« on: July 13, 2007, 06:23:29 pm »
Can I get the distance from a point to an Object3D?, not just getting the difference from its centers, but calculating a perpendicular projection from a point to the body?. I will post images later

Feedback / using JPCT for cartography!
« on: July 10, 2007, 02:30:47 am »
Hi, I  must do an own "google maps" system from 0, no maps, no tools, no nothing.  >:( >:( >:(

I was thinking on using jpct for loading the maps but I am worried about the memory becausse they would be huge (a city map) but I could use many of their advantages like getting names from the objects, rendering, the interact2D methods, being able to mark points, java based and trace a route. I guess I might use jpct for this but I am afraid becausse I must do it fast and well, but I got too many requirement and 0 resources for that. I have been looking for GIS tools but I have had not luck with it.

If anyone knows how can I do a mini google maps for tracking vehicles, tracing routes, showing address info, etc etc etc, please tell me becausse I really really need it!  :'( :'( :'(

Hi, how can I do this. for example a cube on a horizontal that begans to climb for an inclinated plane. The Object3D class has only check for collision methods but they do not slide nor adjust the rotaion of the object, how can I do this?

Bugs / Null when Object3D.CheckForCollision
« on: July 01, 2007, 07:26:22 am »
Hi, I am getting a NullPointerException when calling to any of the checkForCollision methods on an Object3D.

the exception is:

        at com.threed.jpct.Object3D.checkForCollision(Unknown Source)
        at Auto.RenderThread.hacerMovimientos(

both objects has the collision modes:

carro.setCollisionMode(Object3D.COLLISION_CHECK_OTHERS | Object3D.COLLISION_CHECK_SELF);

I am using the beta version with the env forced to the second stage.

Feedback / Suggestion
« on: June 25, 2007, 05:31:43 pm »
ok I have this suggestion:

I would want that jpct could draw and renderScene of certain objects3D or maybe from an ArrayList of object3D. Now why?

To be able to show just some objects and later add another ones. The use I am thinking is a lightweight sky or enviroment.

for example we can use a small sphere placed always arround the camera and this sphere can have an sky texture. Now we could draw and render only this Object3D and the overwrite the parts drawed by the rest of the world. this would result on drawing the sky only and the drawing the rest, like if there were 2 main layers on the final render to be displayed!

Support / Reflection efect
« on: May 26, 2007, 04:54:14 pm »
Hi, how can I get a reflection efect over an object3d? like in the fps demo on the weapon. The object3d wont act like a mirror, only want to get that effect. Its for placing in over a car.

Can I have it together with another texture?

Feedback / I am back! I hope!
« on: May 24, 2007, 04:38:22 am »
Hey, I guess I am back to jpct for my Thesis. This time I MUST finish it to be able to get my degree so I hope to finish the project this time. Not as in Flier Match.

Support / Problems creating an executable jar
« on: May 17, 2007, 05:38:05 pm »
Hi, this is more a java than a jpct problem. Anyway please help, I cant create an executable jar. I am using Eclipse, exporting the jar, setting the main class and when trying to execute it just nothing happends. It seems it began to process something for the mouse icon, but after a few seconds nothing happens.

I have tried to do it manually but its the same. Y¡The MANIFEST file has only 2 entries. The version and the main class options set.

Please am I missing something?

Support / Problem receiving data from a Socket.
« on: May 15, 2007, 04:51:38 pm »
Hi, I am having a problem at receiving some data via a network.

I use the DataInputStream to read the data from a Socket. I always used to ask first for the number of bytes to receive, then create a byte array and store the data on there. The problem is that I need to read the data without asking the number of bytes. I tried reading until getting the -1 from the read method that means the end of the transmition, but the -1 is never read until  the client closes the stream. That would be easy to solve just asking the client to close the stream, but the problem is that the client WONT close any stream because is not programmed on java but on another language that doesnt allow to close the streams.

What I am doing now is this:

1.- creating a byte array of 197 slots.

2.- read on it until the number of bytes read is different from the array length.

3.- store the parts on a file, if the number of bytes is different from the array length then add the new part to the file and finish.

this works but I am afraid that is the number of bytes to read is multiple of the array length then the server will blocked until getting new data. and thats a problem because I need to answer inmediatly with another things.

Feedback / MS Virtual Machine and Pocket PCs
« on: February 28, 2007, 12:11:44 am »
Hi, I need this urgently so please help me.

I need to know if pocket PCs have or can have a jvm installed, QTEK devices hace the ms jvm installed by default.

So my questions are:

POCKET PCs have or can have a jvm, not the j2me but the j2se?

Does the ms jvm run the same byte code than the normal jvm.

Feedback / calling to a pre created dialup connection
« on: February 14, 2007, 10:00:52 pm »
Hi, I hope anyone can help me, I need to began an internet connection from my java app. What I need this because my app asumes that not everyone has a 24/7 connection, so based on a Schedule on certain times I need to send some data and close the connection when finished. How can I do that.

The dial up connection is already done and has on it the username and the password.

Pages: 1 2 [3] 4 5 ... 8