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 - qjvictor

#1
when I use FrameBuffer.getOutputBuffer(), I get the exception as following:
java.lang.NullPointerException
   at java.lang.System.arraycopy(Native Method)
   at com.threed.jpct.FrameBuffer.getOutputBuffer(Unknown Source)

While when I use the old version, it works.

is it a bug?
#2
Hi,EgonOlsen,
    Could you give me some idea about converting the 3d game based on jPCT to a video?
    And in the new version of jPCT, does the FrameBuffer.getOutputBuffer() still return an Image?  I got a nullpointexception here, while in previous version, it works good.
    My way to generate a video is as following:
    1. get images from the framebuffer using getOutputBuffer();
    2. create a mov file from the images created.
    I think it is not a good way to create a video, could you give me some tips about this? Is there an existed way in OpenGL, Lwjgl to do such a job?
Thanks a lot.
#3
Support / a problem about the new version of JPCT
April 11, 2007, 11:01:07 PM
I just upgraded my horse race game to Jpct new version, everything looks good, except:
  previous I used a canvas as the content of a JFrame, like following,
     canvas = buffer.enableGLCanvasRenderer(IRenderer.MODE_OPENGL);
     this.getContentPane().add(canvas);
   now, because the method "enableGLCanvasRenderer" is not supported anymore, so I have to change into:
     buffer.enableRenderer(IRenderer.RENDERER_OPENGL, IRenderer.MODE_OPENGL);
     so there is no canvas anymore.
   But the problem is that when I try to close this webstart window, the close button on the top-right of the window doesn't work!!!
And I accessed the bluethunder, the demo webstart, the close button doesn't work either, I have to use keyboard to close this webstart window, but this is not a good way, I think.

So has anybody ever met such a problem and how to figure it out, I mean use new version.
Thanks.

#4
Support / 3d animation to movie?
January 30, 2007, 06:26:48 PM
is there a simple way to convert 3d animation to a movie?
I mean with Jpct, I've already developed a nice java 3d game, but it depends on the client's local hardware to show well, so I am wonderring that is it possible to convert the 3d game to a movie?
#5
Support / a question about camera.lookat()
January 11, 2007, 08:50:25 PM
camera.lookat()  at an object,  it will put the object in the center of the screen.  Can the camera look at the object but the object is not in the center, ie, in the left or right part of the screen. notice that the object will keep on moving.
#6
The thing is that:
     I need a transparent log on the left top of the jPCT world, and I also notice that  some words blitted from a texture look much better if they are in a transparent background.
    So Can I blit some parts from a texture( a picture, maybe GIF, JPG or PNG), and set the parts transparent?
    It is not the issue about FrameBuffer.TRANSPARENT_BLITTING or FrameBuffer.OPAQUE_BLITTING, when I set the  FrameBuffer.TRANSPARENT_BLITTING, the background will be missed if it is black, and if not black, the background will be there. But I need it is transparent.
#7
Support / no lwjgl in java.library.path
December 20, 2006, 06:18:34 PM
I tried many methods, but still this error.

I try to put the lwjgl.dll to a specified folder, such as c:\temp, but how to specify the java.library.path to such a folder?  I used "System.setProperty("java.library.path","C:\\temp");" But doesn't work.

by the way, I am using webstart to show the 3d animation. So it is impossible to use commands such as "-Djava.library.path=path".

Anybody has a solution?

Thanks.
#8
Support / JPCT eats so much CPU and Memory
December 09, 2006, 12:58:28 AM
We developed a game with web start, the problem is that it seems the jPCT takes so much cpu and memory.
I think it is not the problem caused by my code. because I access http://www.jpct.net/demos.html and click some very simple demos,
it also takes much cup and memory.

Anybody has solution for this issue?

Thanks.
#9
Support / texture transparent problem
December 06, 2006, 03:48:51 PM
2 Objects, I will merge them into one object.
Can I make one object's texture transparent, while the other one is normal?
Thanks
#10
Support / Does anybody has webstart example?
December 01, 2006, 07:06:42 PM
I need a web start example.
I try to convert my applet into web start.
Thanks.
#11
Support / Applet OutOfMemoryError problem
December 01, 2006, 04:51:05 PM
Is there any way to solve such a problem?
If my 3ds and md2 files contains many objects (i.e. 1000), or my textures are big, the jPCT will cost much memory to load these resources. And when the program is compiled as Applet to use in client web browsers, the memory requested will greater than the default heap size of the JVM of client ( 64M), so any body has any solution about this issue?
Thanks a lot.
#12
Support / How to solve opacity problem in jPCT
November 29, 2006, 10:13:48 PM
as topic, thanks.
#13
Support / jPCT can't load instance objects in 3ds file?
November 29, 2006, 04:01:02 PM
in my 3ds file, some objects are instance objects, I found jPCT can't load this kind of objects by Loader.load3ds(), any way to load?
#14
Support / 2 questions when using JPCT
November 28, 2006, 09:17:07 PM
1. will the Loader.load3DS() method load all the objects in a .3ds file? If the objects are the children objects of others.
   I find some objects in 3ds file are not loaded.
2. Some objects show sawtooth effect, how to solve it?

Thanks.
#15
Support / I need the world looks like a real world.
November 23, 2006, 11:10:17 PM
if I want to my 3d world looks like a real world, is it correct that I set the light as following:
world.getLights().setOverbrightLighting(Lights.OVERBRIGHT_LIGHTING_DISABLED);
world.getLights().setRGBScale(Lights.RGB_SCALE_2X);
world.setAmbientLight(100, 100, 100);


Thanks
#16
Support / how to draw a 2D line with color in 3D world?
November 23, 2006, 04:45:58 PM
I need a 2D line to split the 3D world, and the 2D line should be in red or green, how could I do this?
and what's the pixel position of 2D line?

Thanks.
#17
Support / how to solve the shaking problem?
November 21, 2006, 09:14:07 PM
I have some objects moving in my 3D game, but when the objects move, the whole screen looks a little bit shaking, which is not acceptable. Could I adjust some parameters in the Config or World or Camera to solve such a problem?

thanks.
#18
I blitted some words and numbers from a texture, but I need to change the color of these dynamically, so is it possible to change it?
Thanks
#19
Now I am working on a horse racing game using JPCT. Everything goes well. But if I want to add some actions like 'Start','End','Exit' etc to the 3D world,  and the same problem is that I want add start list and finish result boards to it, how should I do?

By the way, how can these menus or buttons be called by mouse event?

Thx