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 ... 3 4 [5] 6 7 8
61
Support / Exception when rendering
« on: May 19, 2006, 08:53:08 am »
Hi, I am receiving this exceptions, and they continue to the infinite.

I add a cube primitive to the World, and when rendering they began to appear this.

I have 4 FrameBuffers. The World is static, on the RenderThread I render the 4 FrameBuffers one by one separated by a sleep (10);

Please help
Java version is: 1.5.0
-> support for BufferedImage
-> using BufferedImage
Software renderer (legacy mode) initialized
Software renderer disposed
Java version is: 1.5.0
-> support for BufferedImage
-> using BufferedImage
Software renderer (legacy mode) initialized
Software renderer disposed
Java version is: 1.5.0
-> support for BufferedImage
-> using BufferedImage
Software renderer (legacy mode) initialized
Software renderer disposed
Java version is: 1.5.0
-> support for BufferedImage
-> using BufferedImage
Software renderer (legacy mode) initialized
Software renderer disposed
Driver is: ati2dvag/6.14.10.6601
OpenGL renderer initialized (using 4 texture stages)
Driver is: ati2dvag/6.14.10.6601
OpenGL renderer initialized (using 4 texture stages)
Driver is: ati2dvag/6.14.10.6601
OpenGL renderer initialized (using 4 texture stages)
Driver is: ati2dvag/6.14.10.6601
OpenGL renderer initialized (using 4 texture stages)
Pressed
Released
Clicked
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: java.lang.NullPointerException
        at com.threed.jpct.AWTJPCTCanvas.paintGL(Unknown Source)
        at org.lwjgl.opengl.AWTGLCanvas.paint(AWTGLCanvas.java:256)
        at sun.awt.RepaintArea.paintComponent(RepaintArea.java:248)
        at sun.awt.RepaintArea.paint(RepaintArea.java:224)
        at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:254)
        at java.awt.Component.dispatchEventImpl(Component.java:4031)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Caused by: java.lang.NullPointerException
        at com.threed.jpct.AWTGLRenderer.drawVertexArray(Unknown Source)
        ... 13 more
Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: From thread Thread[AWT-EventQueue-0,6,main]: Thread[AWT-EventQueue-0,6,] already has the context current
        at org.lwjgl.opengl.Context.checkAccess(Context.java:169)
        at org.lwjgl.opengl.Context.makeCurrent(Context.java:176)
        at org.lwjgl.opengl.AWTGLCanvas.paint(AWTGLCanvas.java:251)
        at sun.awt.RepaintArea.paintComponent(RepaintArea.java:248)
        at sun.awt.RepaintArea.paint(RepaintArea.java:224)
        at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:254)
        at java.awt.Component.dispatchEventImpl(Component.java:4031)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: ......

62
Support / Set a Color for an object3D
« on: May 18, 2006, 08:49:43 am »
Object3D.setColor ();

Hi, how can I set a color for a Object3D?? I know I can add it a texture with the setTexture () method. But what i I dont want to load a image but just use a Color!!!!!!

It should be a method called setColor or something on the Object3D!!

ANyway. What can I do to get my primitives painted on a rgb color??

63
Support / Rendering a World on Multiple Canvas!!
« on: May 18, 2006, 08:14:35 am »
Hi, I am doing a program that needs to render a World into 4 diferrent canvas unsing GLCAnvas. But I noticed that it seems to use only the last one referenced. Is the resultant Canvas dereferenced when referencing another one to the original???? it seems to behave on that way. Any suggestions?

64
Support / 2D Primitives
« on: May 15, 2006, 01:18:41 am »
Hi, is ti posible to draw 2d primitives like Lines, circles, rectangles and things like that???? I need them for a homework and all my classmates are asking for a engine to do that.

65
Support / How to rescale a object3D to a desired size.
« on: May 07, 2006, 11:56:08 pm »
Hi, how can I resize an object3D to a specific size. I mean one method to let resize an object giving a parameter of size, for example Object3D.scaleUntilY(25f); to rescale to object until the Y size is 25f relative units.

It would be nice to have a method like that.

66
Support / remove an Object from the World
« on: April 30, 2006, 03:58:36 am »
How can I remove an object from its world without calling to World.removeObject ();

Object3D have a build method to be built without a world calling it from thee World, now I need something similar but to remove it. How can I do it. SUposse I have no acces to the World, only to the object3D and I need it to be removed.

67
Support / Sky
« on: April 11, 2006, 05:02:27 am »
How to add a sky instead of that black enviroment that jpct has by default?

68
Support / Sun light
« on: April 11, 2006, 05:01:24 am »
Just a Suggestion, you should add a sun light to jpct, I mean a very strong light able to iluminate all the map (if needed) to give it some shadow effects.

69
Support / Collision Detection without a World!
« on: April 08, 2006, 11:46:24 pm »
Is it possible to check collisions between several objects without adding them to a World.

70
Support / Error: out of memory
« on: March 22, 2006, 03:29:37 am »
Hi, I am getting this error all the time, my game used to compile well, but one day just this began to appear.

I have not added new objects. It appears on the first part of th program when loading the textures. I also tried to increased the asigned memory to java but nothing seems to work.

71
Support / alignment of an object3D
« on: March 20, 2006, 10:39:34 pm »
how to get and set the alignment of an object3D?. Well for my game I decided to transmit the position and direction of some objects3D istead of the entire World, but I have noticed that the object3D class has no methods to do it, I mean, I can get the position easyly and the axis x, y and z, but how can align an object3D to that values if an object3D can be only aligned to a camera.

72
Support / referencing or copying???
« on: March 20, 2006, 03:11:49 am »
Hi, I have a problem here.

I transmitted a world through a network inside another object, and when the client recieves the World it does World X=Another.getWorld (); to get the World of the object transmited, in this case (another), but after deleting some objects on it, I have problems trying to delete them again on the next time that the World is received.

So, my question is: The World on the client machine is being referenced to the World on the server one??????? or is another new object????????

73
Bugs / Error when setting a object3d name
« on: March 20, 2006, 03:04:55 am »
When I use the setName () method to an object3D it appears a error mesage.

cant retrieve the Object xxxxxxxx

I am usning the version 1.11 you gave me.

74
Bugs / Null pointer exception when rendering
« on: March 18, 2006, 12:57:06 pm »
I got this exception when rendering, is strage, the problem is that I am using several worlds, one for chossing a craft, one for a trailer one for the menu and one for the game.

The switchs of worlds works good except when entering to the game.

The World of the game is received from the networks using an object with an int, a world and a String as fields, from this object I receive the World to render, but I got his:

Code: [Select]


Exception in thread "Thread-2" java.lang.NullPointerException
        at com.threed.jpct.Object3D.transformVertices(Unknown Source)
        at com.threed.jpct.World.renderScene(Unknown Source)
        at Flier_Match.FMCliente.RenderThread.mostrarImagen(RenderThread.java:391)
        at Flier_Match.FMCliente.RenderThread.run(RenderThread.java:156)


Neither the World nor the FrameBuffer are null, I already tested that, the Object is being transmited well, because I tested the int and the string that came along with the world, I dont know what can it be?

When receiving the world I tested it by getting the objects using getObjectByName ("whatever") and comparing them with null to see if the World was empty, but no. it had all the objects3D byt appears that exception.

75
Support / how to get the position of an object3d
« on: March 12, 2006, 10:16:04 am »
Hi, I am doing my game, and to be able to easy load new maps, I defined som objects on the map with specific names, when reading the parts of the 3ds, if the partname is the one I used to locate a certain pint, it must take the position of that object3D and save it on another place, but I cant get the position of that Object, I always get 0, 0, 0 using getTranslation, getCenter, etc etc etc etc. Always the same.

What can I do?

Pages: 1 ... 3 4 [5] 6 7 8