Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

So I finally managed to get the dependencies working proerply in combination with jme3 😃

	protected void initialize(Application app) {
		this.rendererapp = app;
		fontTexture = IO.INSTANCE.getFonts().getTexDataAsRGBA32();
                //TODO pack into jme texture and upload after this

I try to roughly follow the generic lwjgl3 binding already provided, but bring it into a jme appstate. Am I missing some other required call in before?

I get some kind of assertion from the depth of the font system, sadly I do not really understand the reason for this:

    fun addCustomRectRegular(id: Int, width: Int, height: Int): Int {
        assert(id >= 0x10000 && width in 0..0xFFFF && height in 0..0xFFFF)
        val r = CustomRect() = id
        r.width = width
        r.height = height
        return customRects.lastIndex

width is 181, height is 27, but id is -2147483648. The call comes from here:

    fun buildRegisterDefaultCustomRects() {
        if (customRectIds[0] < 0)
            customRectIds[0] = addCustomRectRegular(, DefaultTexData.wHalf * 2 + 1, DefaultTexData.h)

Sadly I’m missing kotlin knowledge & ide support support a bit, and cannot figure out why the id has that value (or where it actually comes from)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14

github_iconTop GitHub Comments

elect86commented, Feb 23, 2018

Oh shit, I didn’t have -ea on my test configuration…

Anyway, fixed that, I then caught another assert… I’ll check that with calm, but in the meanwhile I commented it so imgui can work

Sylvyrfyshcommented, Feb 11, 2019

Hi! Friendly reminder that there has been no activity here for over a month and this appears to be fixed. If you wish to keep this open, please respond with what still is an issue, or this will be closed in a week. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

com.jme3.ui.Picture.<init> java code examples | Tabnine
Creates a named picture. By default a picture's width and height are 1 and its position is 0, 0. The image texture coordinates...
Read more >
jMonkeyEngine 3 Tutorial (1) - Hello SimpleApplication
A typical JME3 game has the following initialization process: You initialize game objects: You create or load objects and position them.
Read more >
BookSamples/ at master - GitHub
Code samples for the "jMonkeyEngine 3.0 Beginner's Guide" ... import com.jme3.input.controls.ActionListener; ... Initialize the physics simulation */.
Read more >
import; ... The jme3 application object ... handleError("Class " + appClass + " init failed", ex);.
Read more >
JMonkeyEngine:Beginner - Wikibooks, open books for an ...
The simpleInitApp() method is automatically called once at the beginning of every JME3 game. A typical JME3 game has the following initialization process:....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found