JME3: Init
See original GitHub issueSo I finally managed to get the dependencies working proerply in combination with jme3 😃
@Override
protected void initialize(Application app) {
this.rendererapp = app;
ImGui.INSTANCE.initialize();
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:
fontAtlas.class@461
fun addCustomRectRegular(id: Int, width: Int, height: Int): Int {
assert(id >= 0x10000 && width in 0..0xFFFF && height in 0..0xFFFF)
val r = CustomRect()
r.id = id
r.width = width
r.height = height
customRects.add(r)
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.id, 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:
- Created 6 years ago
- Comments:14
Top 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/PhysicsTown.java 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 >engine/src/android/com/jme3/app/AndroidHarness.java
import com.jme3.audio.android.AndroidAudioRenderer; ... 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 workHi! 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!