Comments (22)
Hi dear,
I just wanted to let you know that I didnt forget you :D
I'm working on a deep restructuration of glm (everything backed by primitive arrays), which will bring as performance improvements more than 10X
It's almost done
from imgui.
Ok, popupModals bug is fixed, thanks
from imgui.
This is the project : https://github.com/Catvert/Imgui-test
Import as a Gradle Project in Intellij Idea and u will be ok.
The main method is in lwjgl3/src/main/kotlin/Lwjgl3Launcher and the game class is in core/src/main/kotlin/Game
I included an exemple with the problem, just scroll down the window and click on the last imageButtons and no console log will be print.
Thanks,
Catvert.
from imgui.
Pushed, increased to 1024
Give me a feedback
:)
from imgui.
Unfortunately, it doesn't seem to be working.
I have another bug since the last commits, popupModals doesn't work anymore, when I open one, the interface freeze and no controls reacts.
Thanks for your help,
Catvert.
from imgui.
Note that normal popup works without problems.
from imgui.
For the other issue, the problem happen when I press an image button in a container that have more than 256 images. The image button #255 is working but not the #256.
Thanks,
Catvert.
from imgui.
Thanks for the info, I'll have a look
from imgui.
Can I debug it if I clone your project?
from imgui.
Hum I will create a simple project, this will be easier.
I post the link here when it's done.
Thanks,
Catvert.
from imgui.
Hei Catvert,
does it work to you?
Because whenever I try to sync I always get
Warning:<i><b>project ':core': Unable to build Kotlin project configuration</b>
Details: java.lang.reflect.InvocationTargetException: null
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':core:compileClasspath'.
Caused by: org.gradle.internal.resolve.ArtifactNotFoundException: Could not find lwjgl-glfw-natives-windows.jar (org.lwjgl:lwjgl-glfw:3.1.7-SNAPSHOT).
Searched in the following locations:
file:/C:/Users/gBarbieri/.m2/repository/org/lwjgl/lwjgl-glfw/3.1.7-SNAPSHOT/lwjgl-glfw-3.1.7-SNAPSHOT-natives-windows.jar</i>
Warning:<i><b>project ':lwjgl3': Unable to build Kotlin project configuration</b>
Details: java.lang.reflect.InvocationTargetException: null
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':lwjgl3:compileClasspath'.
Caused by: org.gradle.internal.resolve.ArtifactNotFoundException: Could not find lwjgl-glfw-natives-windows.jar (org.lwjgl:lwjgl-glfw:3.1.7-SNAPSHOT).
Searched in the following locations:
file:/C:/Users/gBarbieri/.m2/repository/org/lwjgl/lwjgl-glfw/3.1.7-SNAPSHOT/lwjgl-glfw-3.1.7-SNAPSHOT-natives-windows.jar</i>
Also, are you using jave 8, 9 or 10? Because I had troubles with 9 and had to fallback to 8
from imgui.
It seems the sync problem was something wrong with my connection.
Anyway, I get now a missing lib Exception in thread "main" java.lang.UnsatisfiedLinkError: Failed to locate library: lwjgl.dll
from imgui.
Hi ! It's strange, I dont have this issue, I have only tested on Linux, are you running it on Windows ? Perhaps there is a missing lib for Windows ? I'll check in the evening.
from imgui.
Hi !
There was indeed a missing lib, I've updated the project.
Thanks,
Catvert.
from imgui.
Hi Catvert,
could you update your project to the last imgui snapshot?
from imgui.
Hello, the problem still here.
Best regards, Catvert.
from imgui.
I get
[LWJGL] Failed to load a library. Possible solutions:
a) Add the directory that contains the shared library to -Djava.library.path or -Dorg.lwjgl.librarypath.
b) Add the JAR that contains the shared library to the classpath.
[LWJGL] Enable debug mode with -Dorg.lwjgl.util.Debug=true for better diagnostics.
[LWJGL] Enable the SharedLibraryLoader debug mode with -Dorg.lwjgl.util.DebugLoader=true for better diagnostics.
Exception in thread "main" java.lang.UnsatisfiedLinkError: Failed to locate library: lwjgl.dll
at org.lwjgl.system.Library.loadSystem(Library.java:147)
at org.lwjgl.system.Library.loadSystem(Library.java:67)
at org.lwjgl.system.Library.<clinit>(Library.java:50)
at org.lwjgl.system.MemoryUtil.<clinit>(MemoryUtil.java:61)
at org.lwjgl.system.MemoryStack.<init>(MemoryStack.java:61)
at org.lwjgl.system.MemoryStack.create(MemoryStack.java:82)
at org.lwjgl.system.MemoryStack.create(MemoryStack.java:71)
at java.base/java.lang.ThreadLocal$SuppliedThreadLocal.initialValue(ThreadLocal.java:284)
at java.base/java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:180)
at java.base/java.lang.ThreadLocal.get(ThreadLocal.java:170)
at org.lwjgl.system.MemoryStack.stackGet(MemoryStack.java:628)
at org.lwjgl.system.MemoryStack.stackPush(MemoryStack.java:637)
at org.lwjgl.system.Callback.<clinit>(Callback.java:40)
at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.initializeGlfw(Lwjgl3Application.java:78)
at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.<init>(Lwjgl3Application.java:88)
at Lwjgl3Launcher.main(Lwjgl3Launcher.kt:19)
I guess because I'm using lwjgl 3.1.7 and your project 3.1.6..
I tried to upgrade to 3.1.7
in the core\src\build.gradle
, but it keeps saying
Unable to resolve lwjgl-stb-3.1.7:7
Do you have any idea why?
from imgui.
Hi,
Yes, it doesn't work with 3.1.7 version.
By the way, I think you can easily reproduce the problem on your system. Just tried without libgdx, with your traditional environment and try the following code :
functionalProgramming.withWindow("Test") {
for(i in 0..500) {
if (ImGui.imageButton(-1, Vec2(50f))) {
println("Click ! index : $i")
}
}
}
normally, you should notice that imageButtons with an index greater than 256 doesn't react to the click (do not display a message in the console).
from imgui.
That gives me an opengl error for the invalid textureId I guess.
This works fine, though:
for(i in 0..300)
if (button("$i"))
println("Click ! index : $i")
from imgui.
Hi,
Yes I've just tried, it's working with the button but not the imageButton. Can you try with a blank texture or anything else (the same texture for all buttons is ok) ?
Best regards,
Catvert.
from imgui.
so, I guess I narrowed down the problem.
It had to do with the id generation. And since we were relying on bytes, they can only express 256 different values, so even if our array was 512 slots, it could indeed hold only 256 max different values
Looking for a feedback :)
from imgui.
It's working !
Thank you !
Best regards,
Catvert.
from imgui.
Related Issues (20)
- Example Log doesn't display any text unless a filter is applied HOT 1
- is jdk8-snapshot doesnt work anymore? HOT 1
- Shaders do not compile on M1 (macOS 11.4) HOT 3
- Methods need unecessary parameters when used in java HOT 3
- Some clear, modern example would help
- Unable to load ForwardDeclarationsKt when using Java modules HOT 2
- Use of `static` in package identifier can cause Java interoperability problems HOT 1
- MainMenuBar causes NullPointerException when clicking on free space HOT 1
- `listbox` shows no items
- ImGui can't access static fields and members of org.lwjgl.stb.STBRPRect HOT 3
- Invalid Package name HOT 3
- Index 33619455 out of bounds for length 0 HOT 1
- Documentation still references dl.bintray.com (shutdown nearly two years ago) HOT 1
- Is there a version of imgui for kotlin that works with lwjgl 3.3.1 HOT 7
- Cant get VertexBuffer data from DrawList class HOT 27
- Update Wiki HOT 1
- java.lang.NoClassDefFoundError: uno/glfw/HWND HOT 4
- Rendering artifacts on non-square elements HOT 1
- useBufferSubData breaks rendering completely, if set to true
- NoClassDefFoundError: uno/glfw/HWND HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imgui.