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

#61
Support / Rotating Blitted images
July 09, 2006, 01:07:45 AM
Is it posible to rotate blitted images, I want to do a level meter (I dont know how to translate it). Anyway, I need to rotate a blited image, is ti posible or do I need to build the whole image by plotting small images.?
#62
Support / Blitting a gif
July 04, 2006, 06:38:09 PM
Is it posible to blit gif animations instead of jpg images? I want to do it for a crosshair, that may be difficult to see when its over something of the same color, I want to do a crosshair as a gif animation in which the color change smottly so its easier to see.

BTW: I have problems blitting numbers, I made a 330 x 32 pixels contaning all the numbers from 0 to 9, but only the first one blits ok, I mean, the 0 appears ok, but the rest of numbers no, each number is at 33 pixels of width, but when trying to take the next 33 pixels it takes other things. I solved this testing with values and worked so so, asuming that the numbers are 23 pixels of width, but there arent.
#63
Support / obj.lookAt ()
June 21, 2006, 07:55:47 AM
Is there anyway to implement this method into the Object3D, it may be usefull, I need to make an object3D to look at (0, 0, 1), but I dont know its actual direction, of course I cant get the zAxis and calc a angle and the rotate it, but it will be kind of messy. If anyone have another idea, please post it. I have no another object to align with!
#64
Support / Shoots!
June 18, 2006, 04:37:24 AM
Hi, I am going to add some shoots to my game, so... How can I do it. I was thinking on having a preoaded 3d object with the bullet, and when a shot is done, it creates an element inside a list of automotion objects.

My idea is to have a motion objecto that means object3d inside the world that  have an auto movement like bullets or missiles, just giving them a init feature, defined movement and condition to exist, so they will be automatically removed when its done. I was thinking on having a list like this and a thread to move them while the game is running.

Any suggestion?
#65
Support / Exception when rendering
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: ......
#66
Support / Set a Color for an object3D
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??
#67
Support / Rendering a World on Multiple Canvas!!
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?
#68
Support / 2D Primitives
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.
#69
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.
#70
Support / remove an Object from the World
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.
#71
Support / Sky
April 11, 2006, 05:02:27 AM
How to add a sky instead of that black enviroment that jpct has by default?
#72
Support / Sun light
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.
#73
Support / Collision Detection without a World!
April 08, 2006, 11:46:24 PM
Is it possible to check collisions between several objects without adding them to a World.
#74
Support / Error: out of memory
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.
#75
Support / alignment of an object3D
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.
#76
Support / referencing or copying???
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????????
#77
Bugs / Error when setting a object3d name
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.
#78
Bugs / Null pointer exception when rendering
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:



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.
#79
Support / how to get the position of an object3d
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?
#80
Support / full screen on sw rendering
March 11, 2006, 06:36:16 PM
Hi, how can I have a full screen when using software rendering.