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

Messages - chupakabra

#1
Support / Re: GUI over JPCT
June 24, 2013, 01:35:41 PM
Ok, I'll try to get some answers on their forums.

Thank you for your time.
#2
Support / Re: GUI over JPCT
June 24, 2013, 10:47:59 AM
First I got this problem:

LWJGLRenderer renderer = new LWJGLRenderer();
Caused by: java.lang.NullPointerException
   at org.lwjgl.opengl.GL11.glGetInteger(GL11.java:1436)
   at de.matthiasmann.twl.renderer.lwjgl.LWJGLRenderer.syncViewportSize(LWJGLRenderer.java:224)
   at de.matthiasmann.twl.renderer.lwjgl.LWJGLRenderer.<init>(LWJGLRenderer.java:125)

I've read, that I should call Display.create() or Display.makeCurrent();
In both cases, I get an exception.
#3
Support / Re: GUI over JPCT
June 21, 2013, 11:26:36 AM
If I call
     Display.create();
my application stops responding(freezes).
#4
Support / GUI over JPCT
June 21, 2013, 09:16:39 AM
Hello,

I would like to add a couple of buttons on a JPCT application. Something like game menu.
What is the best way to achive this functionality?

I tried with TWL -http://l33tlabs.org/ and nifty-gui http://nifty-gui.lessvoid.com/, but with no success.
Is there an tutorial or example source code?
#5
Support / Re: Flickering planes
June 11, 2013, 09:08:38 AM
I increased the distance to 1000 and now it works great. Thanks :)

I'll try to minimize the distance, but it won't be such a problem if they hover a little.

Can you advise me, what to do with forklift, to resolve the flickering?
#6
Support / Re: Flickering planes
June 11, 2013, 08:48:55 AM
Thank you for quick answer.

I tried to increase the distance. Now "little planes" are 40 units higher than ground. Before they were 20 units higher.
I still get flickering. I added an example picture with forklift roof flickering.

I am using:
      buffer = new FrameBuffer(resWidth, resHeight, FrameBuffer.SAMPLINGMODE_GL_AA_4X);
      buffer.enableRenderer(IRenderer.RENDERER_OPENGL, IRenderer.MODE_OPENGL);
      buffer.disableRenderer(IRenderer.RENDERER_SOFTWARE);

[attachment deleted by admin]
#7
Support / Flickering planes
June 10, 2013, 10:30:56 AM
Hello,

I am trying to draw squares on the ground. Currently I am drawing small planes on a big plane.

When I move camera around, litle planes starts flickering. I pasted two images as good and bad example.

How can I resolve this issue? Is this because camera is too far?

[attachment deleted by admin]