Author Topic: harware  (Read 4185 times)

Offline guiloic

  • byte
  • *
  • Posts: 24
    • View Profile
harware
« on: April 27, 2006, 10:34:35 pm »
How can I directly initialize jPCT ? I must do that currently :

Code: [Select]
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
ww.devcat.org

Offline Melssj5

  • double
  • *****
  • Posts: 724
    • View Profile
harware
« Reply #1 on: April 27, 2006, 11:00:47 pm »
??, i didnt understand what you mean?
Nada por ahora

Offline guiloic

  • byte
  • *
  • Posts: 24
    • View Profile
harware
« Reply #2 on: April 28, 2006, 01:58:11 pm »
Code: [Select]
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 ?
ww.devcat.org

Offline Melssj5

  • double
  • *****
  • Posts: 724
    • View Profile
harware
« Reply #3 on: April 28, 2006, 02:17:42 pm »
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

Offline guiloic

  • byte
  • *
  • Posts: 24
    • View Profile
harware
« Reply #4 on: April 28, 2006, 05:15:51 pm »
Code: [Select]
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 ?
ww.devcat.org