jPCT - a 3d engine for Java > Support

blitting text and images

<< < (7/8) > >>

Kaiidyn:
see edit in previous post

EgonOlsen:
You are constantly getting an exception thrown in the draw method, but the catch swallows it. Change


--- Code: ---Logger.log("Drawing thread terminated!", Logger.MESSAGE);
--- End code ---

to something like


--- Code: ---Logger.log(e, Logger.MESSAGE);
--- End code ---

to see the actual reason.

Kaiidyn:
It appears namePos2D is null sometimes..

--- Code: ---namePos2D = Interact2D.project3D2D(Render.camera.getJpctCamera(), Render.frameBuffer, namePos3D);
--- End code ---

EgonOlsen:
Of course it is. Like the docs say:

--- Quote ---Returns null if the transformation can't be done (i.e. the vertex is behind the viewplane).
--- End quote ---

...or that's at least what the docs should say. What they actually say, is something about the center being behind the viewplane...i'll correct this. Anyway, it can be null. If it is, your draw thread crashes causing the creation of new visibility lists over and over again leading to an out of memory after a while.

Kaiidyn:
Ya, fixed it by surrounding if namePos2D != null :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version