Main Menu

harware

Started by guiloic, April 27, 2006, 10:34:35 PM

Previous topic - Next topic

guiloic

How can I directly initialize jPCT ? I must do that currently :

buffer = new FrameBuffer(Configuration.width, Configuration.height, FrameBuffer.SAMPLINGMODE_NORMAL);
buffer.enableRenderer(IRenderer.RENDERER_SOFTWARE);
buffer.setBoundingBoxMode(FrameBuffer.BOUNDINGBOX_NOT_USED);
buffer.enableRenderer(IRenderer.RENDERER_OPENGL, IRenderer.MODE_OPENGL);
buffer.disableRenderer(IRenderer.RENDERER_SOFTWARE);


thx

Melssj5

??, i didnt understand what you mean?
Nada por ahora

guiloic

buffer = new FrameBuffer(Configuration.width, Configuration.height, FrameBuffer.SAMPLINGMODE_NORMAL);
buffer.setBoundingBoxMode(FrameBuffer.BOUNDINGBOX_NOT_USED);
buffer.enableRenderer(IRenderer.RENDERER_OPENGL, IRenderer.MODE_OPENGL);


What's wrong ?

Melssj5

It seems theat nothing. The opengl render gime problems when initialized from outside the render thread. If you have a problem please post th error message you got to clearly see what is happening?
Nada por ahora

guiloic

Software renderer (legacy mode) initialized
Current mode:800 x 600 x 16 @85Hz
Driver is: nv4_disp/6.14.10.8198
OpenGL renderer initialized (using 4 texture stages)
Loading Texture...data/textures\hud.png
Exception in thread "Thread-5" java.lang.ArrayIndexOutOfBoundsException: 9
at com.threed.jpct.FrameBuffer.blit(Unknown Source)
at com.threed.jpct.FrameBuffer.blit(Unknown Source)
at jfs.simulator.graphic.HUD.blit(HUD.java:46)
at jfs.simulator.graphic.WorldRenderer.render(WorldRenderer.java:148)
at jfs.simulator.graphic.WorldRenderer.run(WorldRenderer.java:184)
at java.lang.Thread.run(Thread.java:595)


If I switch from software renderer to hardware renderer I don't have problem but it's dirty. didn't it ?

-------------------

I've a class called WorldRenderer which is a Runnable class. Then I've my own thread, does jpct use a Thread for rendering ?