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 / Rotating Blitted images
« on: 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
« on: 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 ()
« on: 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!
« on: 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
« 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: ......

66
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??

67
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?

68
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.

69
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.

70
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.

71
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?

72
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.

73
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.

74
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.

75
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.

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