Giter VIP home page Giter VIP logo

ardor3d's People

Contributors

jgyorfi avatar letmaik avatar mallanmba avatar mazander avatar renanse avatar runiter avatar thehiflyer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ardor3d's Issues

PSSM Example Deprecated

Just curious to know why Parallel Split Shadow Maps got phased out? I hadn't played with it much, but had plans to.

Thanks!
Jeff

UI min text height too aggressive

The min height calculated for UILabel is too small to fit text completely - the bottoms of characters like 'y' 'g' are cut off. Also, 'border' around bmfont characters seems to be cut off (see top of 'I' characters, there should be a black border but it seems the white text is touching the bottom of title bar)

min_height_text

Trouble finding the yaml files in ardor3d-examples

Seems like I don't have the project configured correctly. Basically I just clone Ardor3d and opened it using IntelliJ. I did change the Java version to use version 8 instead of 10. But that should not be causing my errors.

Here is the output when running MatrixLookAtExample ... Hope the holidays went well for you. :)

"C:\Program Files\Java\jdk1.8.0_121\bin\java.exe" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2018.1.1\lib\idea_rt.jar=53611:C:\Program Files\JetBrains\IntelliJ IDEA 2018.1.1\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_121\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\rt.jar;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-examples\out\production\classes;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-examples\out\production\resources;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-lwjgl3\out\production\classes;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-terrain\out\production\classes;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-terrain\out\production\resources;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-awt\out\production\classes;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-swt\out\production\classes;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-effects\out\production\classes;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-effects\out\production\resources;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-extras\out\production\classes;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-extras\out\production\resources;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-collada\out\production\classes;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-ui\out\production\classes;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-ui\out\production\resources;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-animation\out\production\classes;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-animation\out\production\resources;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-core\out\production\classes;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-core\out\production\resources;C:\Users\jfe.CAMPUS.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl-assimp\3.2.0\c399181a0725dcc3b3edcc6116da7f724c6ad1c6\lwjgl-assimp-3.2.0.jar;C:\Users\jfe.CAMPUS.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl-assimp\3.2.0\cf6445aa8c3c44cffaa6be15d70f01952b3b1745\lwjgl-assimp-3.2.0-natives-windows.jar;C:\Users\jfe.CAMPUS.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl-glfw\3.2.0\9ff0ed06de0a1d83dd182f2ead48ac4c90865c44\lwjgl-glfw-3.2.0.jar;C:\Users\jfe.CAMPUS.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl-glfw\3.2.0\986cd6b09807ad2d67b5002b6d9dc089e3fc88f8\lwjgl-glfw-3.2.0-natives-windows.jar;C:\Users\jfe.CAMPUS.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl-jawt\3.2.0\a5b9045217cdf5ed364d5f858ce983f9e553c13a\lwjgl-jawt-3.2.0.jar;C:\Users\jfe.CAMPUS.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl-openal\3.2.0\28174519523e11c2f3227359f242d48edfa76654\lwjgl-openal-3.2.0.jar;C:\Users\jfe.CAMPUS.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl-openal\3.2.0\f6017538443bb894faad58a3ccd0d400c4023a1c\lwjgl-openal-3.2.0-natives-windows.jar;C:\Users\jfe.CAMPUS.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl-opengl\3.2.0\1c64c692473a70af297651d369debc93efa2e49f\lwjgl-opengl-3.2.0.jar;C:\Users\jfe.CAMPUS.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl-opengl\3.2.0\b1f27bce30f8e40b03502a5d86687b30d844ba35\lwjgl-opengl-3.2.0-natives-windows.jar;C:\Users\jfe.CAMPUS.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl-stb\3.2.0\cd60eafae0690e024fab99e9864a2ea8e56d86a8\lwjgl-stb-3.2.0.jar;C:\Users\jfe.CAMPUS.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl-stb\3.2.0\cb5cb95f39fa83de93ce7fee1bb23dd1c7db4da3\lwjgl-stb-3.2.0-natives-windows.jar;C:\Users\jfe.CAMPUS.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl\3.2.0\7723544dc3fc740f0ee59cce9a3a0cecc8681747\lwjgl-3.2.0.jar;C:\Users\jfe.CAMPUS.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl\3.2.0\86c90ce2abe6129bfd5052a8b82f3dc2394c8dd1\lwjgl-3.2.0-natives-windows.jar;C:\Users\jfe.CAMPUS.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt\3.109.0\587d0334afa53455b05d9f5a94c3184a9ac588b5\org.eclipse.swt-3.109.0.jar;C:\Users\jfe.CAMPUS.gradle\caches\modules-2\files-2.1\org.eclipse.platform\org.eclipse.swt.win32.win32.x86_64\3.108.0\3ec26aaa71cb6176548a187f1ea41710488db5b3\org.eclipse.swt.win32.win32.x86_64-3.108.0.jar;C:\Users\jfe.CAMPUS.gradle\caches\modules-2\files-2.1\org.jdom\jdom2\2.0.6\6f14738ec2e9dd0011e343717fa624a10f8aab64\jdom2-2.0.6.jar;C:\Users\jfe.CAMPUS.gradle\caches\modules-2\files-2.1\jaxen\jaxen\1.1.6\3f8c36d9a0578e8e98f030c662b69888b1430ac0\jaxen-1.1.6.jar;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-math\out\production\classes;C:\Users\jfe.CAMPUS.gradle\caches\modules-2\files-2.1\com.google.guava\guava\27.0-jre\c6ad87d2575af8ac8ec38e28e75aefa882cc3a1f\guava-27.0-jre.jar;C:\Users\jfe.CAMPUS.gradle\caches\modules-2\files-2.1\org.yaml\snakeyaml\1.23\ec62d74fe50689c28c0ff5b35d3aebcaa8b5be68\snakeyaml-1.23.jar;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-savable\out\production\classes;C:\Users\jfe.CAMPUS.gradle\caches\modules-2\files-2.1\com.google.guava\failureaccess\1.0\50bacb0bdbbeeda25142aff57e2214c402e1193c\failureaccess-1.0.jar;C:\Users\jfe.CAMPUS.gradle\caches\modules-2\files-2.1\com.google.guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\b421526c5f297295adef1c886e5246c39d4ac629\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;C:\Users\jfe.CAMPUS.gradle\caches\modules-2\files-2.1\com.google.code.findbugs\jsr305\3.0.2\25ea2e8b0c338a877313bd4672d3fe056ea78f0d\jsr305-3.0.2.jar;C:\Users\jfe.CAMPUS.gradle\caches\modules-2\files-2.1\org.checkerframework\checker-qual\2.5.2\cea74543d5904a30861a61b4643a5f2bb372efc4\checker-qual-2.5.2.jar;C:\Users\jfe.CAMPUS.gradle\caches\modules-2\files-2.1\com.google.errorprone\error_prone_annotations\2.2.0\88e3c593e9b3586e1c6177f89267da6fc6986f0c\error_prone_annotations-2.2.0.jar;C:\Users\jfe.CAMPUS.gradle\caches\modules-2\files-2.1\com.google.j2objc\j2objc-annotations\1.1\ed28ded51a8b1c6b112568def5f4b455e6809019\j2objc-annotations-1.1.jar;C:\Users\jfe.CAMPUS.gradle\caches\modules-2\files-2.1\org.codehaus.mojo\animal-sniffer-annotations\1.17\f97ce6decaea32b36101e37979f8b647f00681fb\animal-sniffer-annotations-1.17.jar" com.ardor3d.example.basic.MatrixLookAtExample
[LWJGL] Version: 3.2.0 build 12
[LWJGL] OS: Windows 10 v10.0
[LWJGL] JRE: 1.8.0_121 amd64
[LWJGL] JVM: Java HotSpot(TM) 64-Bit Server VM v25.121-b13 by Oracle Corporation
[LWJGL] Loading library (system): lwjgl
[LWJGL] Found at: C:\Users\JFE1.CAM\AppData\Local\Temp\lwjglJFE\3.2.0-build-12\lwjgl.dll
[LWJGL] Loaded from org.lwjgl.librarypath: C:\Users\JFE
1.CAM\AppData\Local\Temp\lwjglJFE\3.2.0-build-12\lwjgl.dll
[LWJGL] MemoryUtil accessor: MemoryAccessorUnsafe
[LWJGL] MemoryUtil allocator: StdlibAllocator
[LWJGL] Loading library: glfw
[LWJGL] Found at: C:\Users\JFE1.CAM\AppData\Local\Temp\lwjglJFE\3.2.0-build-12\glfw.dll
[LWJGL] Loaded from org.lwjgl.librarypath: C:\Users\JFE
1.CAM\AppData\Local\Temp\lwjglJFE\3.2.0-build-12\glfw.dll
[LWJGL] Loading library (system): lwjgl_opengl
[LWJGL] Found at: C:\Users\JFE1.CAM\AppData\Local\Temp\lwjglJFE\3.2.0-build-12\lwjgl_opengl.dll
[LWJGL] Loaded from org.lwjgl.librarypath: C:\Users\JFE
1.CAM\AppData\Local\Temp\lwjglJFE\3.2.0-build-12\lwjgl_opengl.dll
[LWJGL] Loading library: opengl32
[LWJGL] opengl32.dll not found in org.lwjgl.librarypath=C:\Users\JFE~1.CAM\AppData\Local\Temp\lwjglJFE\3.2.0-build-12
[LWJGL] Loaded from system paths: C:\WINDOWS\system32\opengl32.dll
[LWJGL] [GL] Using KHR_debug for error logging.
Dec 28, 2018 11:08:04 PM com.ardor3d.example.ExampleBase init
INFO: Display Vendor: Intel
Dec 28, 2018 11:08:04 PM com.ardor3d.example.ExampleBase init
INFO: Display Renderer: Intel(R) HD Graphics 4600
Dec 28, 2018 11:08:04 PM com.ardor3d.example.ExampleBase init
INFO: Display Version: 3.3.0 - Build 20.19.15.4835
Dec 28, 2018 11:08:04 PM com.ardor3d.example.ExampleBase init
INFO: Shading Language Version: 3.30 - Build 20.19.15.4835
Dec 28, 2018 11:08:04 PM com.ardor3d.util.resource.ResourceLocatorTool locateResource
WARNING: Unable to locate: basic_white.yaml
Dec 28, 2018 11:08:04 PM com.ardor3d.renderer.material.reader.YamlMaterialReader load(ResourceSource)
WARNING: source was null. Returning null.

Process finished with exit code 0

Uses constraint violation. Unable to resolve module

i've deployed those bundles on apache-karaf-2.2.10:

[  52] [Active     ] [            ] [   80] Ardor 3D Core (0.9.0.SNAPSHOT)
[  53] [Active     ] [            ] [   80] Ardor 3D Math (0.9.0.SNAPSHOT)
[  54] [Active     ] [            ] [   80] Ardor 3D Savable (0.9.0.SNAPSHOT)
[  57] [Active     ] [            ] [   80] Ardor 3D JOGL (0.9.0.SNAPSHOT)
[  60] [Installed  ] [            ] [   80] Ardor 3D AWT (0.9.0.SNAPSHOT)
[  61] [Active     ] [            ] [   80] Guava: Google Core Libraries for Java (14.0.1)
[  62] [Active     ] [            ] [   80] jogl-all (2.0.0.rc11post06)
[  63] [Active     ] [            ] [   80] jogl-all (2.0.0.rc11post06-natives-linux-i586)
[  64] [Active     ] [            ] [   80] gluegen-rt (2.0.0.rc11post06-natives-linux-i586)
[  65] [Active     ] [            ] [   80] gluegen-rt (2.0.0.rc11post06)

but trying to start ardor3d awt results in:

org.osgi.framework.BundleException: Uses constraint violation. Unable to resolve module com.ardor3d.ardor3d-awt [60.1] because it exports package 'com.ardor3d.image.util' and is also exposed to it from module com.ardor3d.ardor3d-core [52.1] via the following dependency chain:

  com.ardor3d.ardor3d-awt [60.1]
    import: (&(package=com.ardor3d.util.screen)(version>=0.9.0)(!(version>=1.0.0)))
     |
    export: package=com.ardor3d.util.screen; uses:=com.ardor3d.image.util
    export: package=com.ardor3d.image.util
  com.ardor3d.ardor3d-core [52.1]

XZGrid is not position at 0, 0, 0

Hey Josh I upgraded to A3D 1.6.1 and now my XZGrid is either not positioned at 0, 0, 0 or the spatial objects are not positioned correctly. I did not change this code when it was created using 1.5.3.

image

MeshData.getIndexBuffer() should be of type IntBuffer

In com.ardor3d.scenegraph.MeshData, the methods getVertexBuffer() and getNormalBuffer() return a FloatBuffer, but getIndexBuffer only returns a Buffer, so I have to cast it to IntBuffer. Am I right that this should be changed?

Out of bounds exception when running the MountainShadowTerrainExample ...

"C:\Program Files\Java\jdk1.8.0_121\bin\java.exe" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2018.1.1\lib\idea_rt.jar=50377:C:\Program Files\JetBrains\IntelliJ IDEA 2018.1.1\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_121\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_121\jre\lib\rt.jar;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-examples\out\production\classes;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-tools\out\production\classes;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-lwjgl\out\production\classes;C:\Users\jfe.CAMPUS.m2\repository\org\lwjgl\lwjgl\lwjgl_util\2.9.3\lwjgl_util-2.9.3.jar;C:\Users\jfe.CAMPUS.m2\repository\org\lwjgl\lwjgl\lwjgl\2.9.3\lwjgl-2.9.3.jar;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-terrain\out\production\classes;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-awt\out\production\classes;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-swt\out\production\classes;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-jogl\out\production\classes;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-effects\out\production\classes;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-extras\out\production\classes;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-collada\out\production\classes;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-ui\out\production\classes;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-animation\out\production\classes;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-core\out\production\classes;C:\Users\jfe.CAMPUS.m2\repository\org\lwjgl\lwjgl\lwjgl-platform\2.9.3\lwjgl-platform-2.9.3-natives-windows.jar;C:\Users\jfe.CAMPUS.m2\repository\org\lwjgl\lwjgl\lwjgl-platform\2.9.3\lwjgl-platform-2.9.3-natives-linux.jar;C:\Users\jfe.CAMPUS.m2\repository\org\lwjgl\lwjgl\lwjgl-platform\2.9.3\lwjgl-platform-2.9.3-natives-osx.jar;C:\Users\jfe.CAMPUS.m2\repository\net\java\jinput\jinput\2.0.5\jinput-2.0.5.jar;C:\Users\jfe.CAMPUS.m2\repository\org\eclipse\swt\org.eclipse.swt.win32.win32.x86_64\4.3\org.eclipse.swt.win32.win32.x86_64-4.3.jar;C:\Users\jfe.CAMPUS.m2\repository\org\jogamp\gluegen\gluegen-rt-main\2.1.4-rc-20140126\gluegen-rt-main-2.1.4-rc-20140126.jar;C:\Users\jfe.CAMPUS.m2\repository\org\jogamp\jogl\jogl-all-main\2.1.4-rc-20140126\jogl-all-main-2.1.4-rc-20140126.jar;C:\Users\jfe.CAMPUS.m2\repository\org\eclipse\swt\org.eclipse.swt.gtk.linux.x86_64\4.3\org.eclipse.swt.gtk.linux.x86_64-4.3.jar;C:\Users\jfe.CAMPUS.m2\repository\org\jdom\jdom2\2.0.4\jdom2-2.0.4.jar;C:\Users\jfe.CAMPUS.m2\repository\jaxen\jaxen\1.1.4\jaxen-1.1.4.jar;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-math\out\production\classes;C:\Users\jfe.CAMPUS.m2\repository\com\google\guava\guava\14.0.1\guava-14.0.1.jar;C:\Users\jfe.CAMPUS.m2\repository\net\java\jutils\jutils\1.0.0\jutils-1.0.0.jar;C:\Users\jfe.CAMPUS.m2\repository\net\java\jinput\jinput-platform\2.0.5\jinput-platform-2.0.5-natives-linux.jar;C:\Users\jfe.CAMPUS.m2\repository\net\java\jinput\jinput-platform\2.0.5\jinput-platform-2.0.5-natives-windows.jar;C:\Users\jfe.CAMPUS.m2\repository\net\java\jinput\jinput-platform\2.0.5\jinput-platform-2.0.5-natives-osx.jar;C:\Users\jfe.CAMPUS.m2\repository\org\jogamp\gluegen\gluegen-rt\2.1.4-rc-20140126\gluegen-rt-2.1.4-rc-20140126.jar;C:\Users\jfe.CAMPUS.m2\repository\org\jogamp\gluegen\gluegen-rt\2.1.4-rc-20140126\gluegen-rt-2.1.4-rc-20140126-natives-android-armv6.jar;C:\Users\jfe.CAMPUS.m2\repository\org\jogamp\gluegen\gluegen-rt\2.1.4-rc-20140126\gluegen-rt-2.1.4-rc-20140126-natives-linux-amd64.jar;C:\Users\jfe.CAMPUS.m2\repository\org\jogamp\gluegen\gluegen-rt\2.1.4-rc-20140126\gluegen-rt-2.1.4-rc-20140126-natives-linux-armv6.jar;C:\Users\jfe.CAMPUS.m2\repository\org\jogamp\gluegen\gluegen-rt\2.1.4-rc-20140126\gluegen-rt-2.1.4-rc-20140126-natives-linux-armv6hf.jar;C:\Users\jfe.CAMPUS.m2\repository\org\jogamp\gluegen\gluegen-rt\2.1.4-rc-20140126\gluegen-rt-2.1.4-rc-20140126-natives-linux-i586.jar;C:\Users\jfe.CAMPUS.m2\repository\org\jogamp\gluegen\gluegen-rt\2.1.4-rc-20140126\gluegen-rt-2.1.4-rc-20140126-natives-macosx-universal.jar;C:\Users\jfe.CAMPUS.m2\repository\org\jogamp\gluegen\gluegen-rt\2.1.4-rc-20140126\gluegen-rt-2.1.4-rc-20140126-natives-solaris-amd64.jar;C:\Users\jfe.CAMPUS.m2\repository\org\jogamp\gluegen\gluegen-rt\2.1.4-rc-20140126\gluegen-rt-2.1.4-rc-20140126-natives-solaris-i586.jar;C:\Users\jfe.CAMPUS.m2\repository\org\jogamp\gluegen\gluegen-rt\2.1.4-rc-20140126\gluegen-rt-2.1.4-rc-20140126-natives-windows-amd64.jar;C:\Users\jfe.CAMPUS.m2\repository\org\jogamp\gluegen\gluegen-rt\2.1.4-rc-20140126\gluegen-rt-2.1.4-rc-20140126-natives-windows-i586.jar;C:\Users\jfe.CAMPUS.m2\repository\org\jogamp\jogl\jogl-all\2.1.4-rc-20140126\jogl-all-2.1.4-rc-20140126.jar;C:\Users\jfe.CAMPUS.m2\repository\org\jogamp\jogl\jogl-all\2.1.4-rc-20140126\jogl-all-2.1.4-rc-20140126-natives-android-armv6.jar;C:\Users\jfe.CAMPUS.m2\repository\org\jogamp\jogl\jogl-all\2.1.4-rc-20140126\jogl-all-2.1.4-rc-20140126-natives-linux-amd64.jar;C:\Users\jfe.CAMPUS.m2\repository\org\jogamp\jogl\jogl-all\2.1.4-rc-20140126\jogl-all-2.1.4-rc-20140126-natives-linux-armv6.jar;C:\Users\jfe.CAMPUS.m2\repository\org\jogamp\jogl\jogl-all\2.1.4-rc-20140126\jogl-all-2.1.4-rc-20140126-natives-linux-armv6hf.jar;C:\Users\jfe.CAMPUS.m2\repository\org\jogamp\jogl\jogl-all\2.1.4-rc-20140126\jogl-all-2.1.4-rc-20140126-natives-linux-i586.jar;C:\Users\jfe.CAMPUS.m2\repository\org\jogamp\jogl\jogl-all\2.1.4-rc-20140126\jogl-all-2.1.4-rc-20140126-natives-macosx-universal.jar;C:\Users\jfe.CAMPUS.m2\repository\org\jogamp\jogl\jogl-all\2.1.4-rc-20140126\jogl-all-2.1.4-rc-20140126-natives-solaris-amd64.jar;C:\Users\jfe.CAMPUS.m2\repository\org\jogamp\jogl\jogl-all\2.1.4-rc-20140126\jogl-all-2.1.4-rc-20140126-natives-solaris-i586.jar;C:\Users\jfe.CAMPUS.m2\repository\org\jogamp\jogl\jogl-all\2.1.4-rc-20140126\jogl-all-2.1.4-rc-20140126-natives-windows-amd64.jar;C:\Users\jfe.CAMPUS.m2\repository\org\jogamp\jogl\jogl-all\2.1.4-rc-20140126\jogl-all-2.1.4-rc-20140126-natives-windows-i586.jar;C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-savable\out\production\classes" com.ardor3d.example.terrain.MountainShadowTerrainExample
Apr 25, 2018 11:42:46 AM com.ardor3d.example.ExampleBase init
INFO: Display Vendor: Intel
Apr 25, 2018 11:42:46 AM com.ardor3d.example.ExampleBase init
INFO: Display Renderer: Intel(R) HD Graphics 4600
Apr 25, 2018 11:42:46 AM com.ardor3d.example.ExampleBase init
INFO: Display Version: 4.3.0 - Build 20.19.15.4531
Apr 25, 2018 11:42:46 AM com.ardor3d.example.ExampleBase init
INFO: Shading Language Version: 4.30 - Build 20.19.15.4531
Apr 25, 2018 11:42:47 AM com.ardor3d.extension.model.collada.jdom.ColladaAnimUtils parseLibraryAnimations
WARNING: No animations found in collada file!
Apr 25, 2018 11:42:48 AM com.ardor3d.extension.terrain.client.TerrainBuilder buildTerrainSystem
INFO: TerrainConfiguration [cacheGridSize=128, heightRangeMax=0.34, heightRangeMin=0.0, onlyPositiveQuadrant=true, scale=com.ardor3d.math.Vector3 [X=5.0, Y=2048.0, Z=5.0], totalNrClipmapLevels=7]
Apr 25, 2018 11:42:48 AM com.ardor3d.extension.terrain.client.TerrainBuilder buildTerrainSystem
INFO: server clipmapLevels: 7
Apr 25, 2018 11:42:48 AM com.ardor3d.extension.terrain.client.TerrainBuilder buildTerrainSystem
INFO: baseLevel: 0
Apr 25, 2018 11:42:48 AM com.ardor3d.extension.terrain.client.TerrainBuilder buildTerrainSystem
INFO: meshLevel: 6
Apr 25, 2018 11:42:48 AM com.ardor3d.extension.terrain.client.TerrainBuilder buildTerrainSystem
INFO: client clipmapLevels: 7
Apr 25, 2018 11:42:48 AM com.ardor3d.extension.terrain.client.TerrainBuilder buildTextureSystem
INFO: TextureConfiguration [cacheGridSize=128, onlyPositiveQuadrant=true, textureDataTypes={0=Luminance8}, textureDensity=1.0, totalNrClipmapLevels=7, useAlpha=false]
Apr 25, 2018 11:42:48 AM com.ardor3d.extension.terrain.client.TerrainBuilder buildTextureSystem
INFO: server clipmapLevels: 7
Apr 25, 2018 11:42:48 AM com.ardor3d.extension.terrain.client.TerrainBuilder buildTextureSystem
INFO: baseLevel: 0
Apr 25, 2018 11:42:48 AM com.ardor3d.extension.terrain.client.TerrainBuilder buildTextureSystem
INFO: meshLevel: 6
Apr 25, 2018 11:42:48 AM com.ardor3d.extension.terrain.client.TerrainBuilder buildTextureSystem
INFO: client clipmapLevels: 7
Apr 25, 2018 11:42:48 AM com.ardor3d.extension.terrain.client.TextureClipmap
INFO: Texture size: 128
Apr 25, 2018 11:42:48 AM com.ardor3d.extension.terrain.client.TextureClipmap
INFO: ValidLevels: 7
Apr 25, 2018 11:42:48 AM com.ardor3d.extension.terrain.client.TextureClipmap
INFO: 3D Texture depth: 8
Apr 25, 2018 11:42:49 AM com.ardor3d.extension.terrain.client.TerrainBuilder buildTextureSystem
INFO: TextureConfiguration [cacheGridSize=128, onlyPositiveQuadrant=true, textureDataTypes={0=RGB8}, textureDensity=1.0, totalNrClipmapLevels=7, useAlpha=false]
Apr 25, 2018 11:42:49 AM com.ardor3d.extension.terrain.client.TerrainBuilder buildTextureSystem
INFO: server clipmapLevels: 7
Apr 25, 2018 11:42:49 AM com.ardor3d.extension.terrain.client.TerrainBuilder buildTextureSystem
INFO: baseLevel: 0
Apr 25, 2018 11:42:49 AM com.ardor3d.extension.terrain.client.TerrainBuilder buildTextureSystem
INFO: meshLevel: 6
Apr 25, 2018 11:42:49 AM com.ardor3d.extension.terrain.client.TerrainBuilder buildTextureSystem
INFO: client clipmapLevels: 7
Apr 25, 2018 11:42:49 AM com.ardor3d.extension.terrain.client.TextureClipmap
INFO: Texture size: 128
Apr 25, 2018 11:42:49 AM com.ardor3d.extension.terrain.client.TextureClipmap
INFO: ValidLevels: 7
Apr 25, 2018 11:42:49 AM com.ardor3d.extension.terrain.client.TextureClipmap
INFO: 3D Texture depth: 8
Throwable caught in MainThread - exiting
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:653)
at java.util.ArrayList.get(ArrayList.java:429)
at com.ardor3d.extension.ui.text.TextFactory.generateText(TextFactory.java:299)
at com.ardor3d.extension.ui.AbstractLabelUIComponent.setText(AbstractLabelUIComponent.java:97)
at com.ardor3d.extension.ui.AbstractLabelUIComponent.fireStyleChanged(AbstractLabelUIComponent.java:246)
at com.ardor3d.extension.ui.UIComponent.addFontStyle(UIComponent.java:208)
at com.ardor3d.example.terrain.MountainShadowTerrainExample.initExample(MountainShadowTerrainExample.java:317)
at com.ardor3d.example.ExampleBase.init(ExampleBase.java:220)
at com.ardor3d.framework.FrameHandler.init(FrameHandler.java:178)
at com.ardor3d.example.ExampleBase.run(ExampleBase.java:145)
at java.lang.Thread.run(Thread.java:745)

@Renanse I tried to drill down into the code but could see how this is happening.

Jeff

Can't run examples.

I installed Ardor3D using: https://github.com/Renanse/Ardor3D/wiki/Getting-started-with-Git-and-Eclipse.
When I try to run ExampleRunner, I get this error message in the console:

Exception in thread "main" java.lang.NoClassDefFoundError: com/ardor3d/example/ExampleRunner
Caused by: java.lang.ClassNotFoundException: com.ardor3d.example.ExampleRunner
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

Please help!

Error running ShadowedTerrainExample

Hey Josh,

I got the following error:

Throwable caught in MainThread - exiting
com.ardor3d.util.Ardor3dException: Error compiling Fragment shader: ERROR: 0:214: '=' : assigning non-constant to 'const highp float'
ERROR: 0:215: '=' : assigning non-constant to 'const highp float'
ERROR: 0:231: '=' : assigning non-constant to 'const highp float'
ERROR: 0:232: '=' : assigning non-constant to 'const highp float'
ERROR: 0:249: '=' : assigning non-constant to 'const highp float'

at com.ardor3d.scene.state.lwjgl3.util.Lwjgl3ShaderUtils.prepareShader(Lwjgl3ShaderUtils.java:191)
at com.ardor3d.scene.state.lwjgl3.util.Lwjgl3ShaderUtils.createShaderProgram(Lwjgl3ShaderUtils.java:88)
at com.ardor3d.renderer.material.TechniquePass.startPass(TechniquePass.java:151)
at com.ardor3d.renderer.material.TechniquePass.setupForDraw(TechniquePass.java:135)
at com.ardor3d.scenegraph.Mesh.render(Mesh.java:287)
at com.ardor3d.scenegraph.Mesh.render(Mesh.java:255)
at com.ardor3d.renderer.lwjgl3.Lwjgl3Renderer.draw(Lwjgl3Renderer.java:249)
at com.ardor3d.scenegraph.Mesh.draw(Mesh.java:378)
at com.ardor3d.renderer.queue.AbstractRenderBucket.render(AbstractRenderBucket.java:82)
at com.ardor3d.renderer.queue.RenderQueue.renderBuckets(RenderQueue.java:110)
at com.ardor3d.renderer.lwjgl3.Lwjgl3Renderer.renderBuckets(Lwjgl3Renderer.java:109)
at com.ardor3d.renderer.lwjgl3.Lwjgl3Renderer.renderBuckets(Lwjgl3Renderer.java:102)
at com.ardor3d.example.ExampleBase.renderExample(ExampleBase.java:296)
at com.ardor3d.example.ExampleBase.render(ExampleBase.java:278)
at com.ardor3d.framework.lwjgl3.Lwjgl3CanvasRenderer.draw(Lwjgl3CanvasRenderer.java:122)
at com.ardor3d.framework.lwjgl3.GLFWCanvas.draw(GLFWCanvas.java:179)
at com.ardor3d.framework.FrameHandler.updateFrame(FrameHandler.java:91)
at com.ardor3d.example.ExampleBase.run(ExampleBase.java:147)
at java.base/java.lang.Thread.run(Thread.java:834)

Hope all is well with you
Jeff

KeyframeController creates an incorrect morphed mesh when the update time is "big"

Hi

When the value passed to the variable "time" of the method update() is greater than the elapsed time between 2 frames of a frame set (typically 1 / getSpeed()), the morphed mesh is weird, the linear interpolation gives a wrong result, a mesh that doesn't match with the frame set, like it was going beyond the animation. You can find a screen capture illustrating this problem here:
http://www.java-gaming.org/topics/problems-with-key-framed-md2-animations/29361/view.html

I'm investigating and some help would be welcome.

Strange behavior attaching two meshes to a Node

I have the following code:

vehicleNode.attachChild(cyl);
vehicleNode.attachChild(line);
vehicleNode.setRenderMaterial("car_mat.yaml");

vehicleNode can be accessed by the calling program using a getter.

cyl is a coin shape mesh
line is a white line on top from the center to the edge used to indicate forward direction

When I attach both meshes to vehicleNode only the cyl mesh shows. But when I only attach the line mesh, it shows.

Another thing, I created my own "ExampleBase" called DemoBase. When I use ExampleBase it shows. I have lines drawn on other demos and they display using DemoBase.

Thanks
Jeff

ContextGarbageCollector to handle shaders

ContextGarbageCollector is not handling shaders. It is only handling textures, VBOs and DisplayLists. In the context loss the shaders stop working, because the new GL context is not having them.

Work arounds:

if(contextChanged) {
shaderState._needSendShader = true;
shaderState._programID = -1;
shaderState.setNeedsRefresh(true);
}

or

Create a new ShaderState and apply that.

BMText throws exception when set to autorotate

When a BMText object is set to auto rotate, the following exception is occasionally thrown.

JNA: Callback org.gstreamer.elements.BaseSink$1@1571f07 threw the following exception:
java.lang.RuntimeException: com.ardor3d.math.TransformException: Scale is already provided by 3x3 matrix. If this is a mistake, consider using setRotation instead of setMatrix.
at jogamp.opengl.GLRunnableTask.run(GLRunnableTask.java:65)
at jogamp.opengl.GLDrawableHelper.execGLRunnables(GLDrawableHelper.java:628)
at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:568)
at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:377)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1029)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:904)
at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:568)
at jogamp.opengl.GLDrawableHelper.invoke(GLDrawableHelper.java:724)
at jogamp.opengl.GLAutoDrawableBase.invoke(GLAutoDrawableBase.java:515)
at com.ardor3d.framework.jogl.JoglNewtWindow.draw(JoglNewtWindow.java:199)
at com.kablab.vision.jogl.AugmentedRealityPlayer.update(AugmentedRealityPlayer.java:565)
at com.kablab.vision.jogl.GstGLComponent$RGBListener.rgbFrame(GstGLComponent.java:281)
at com.kablab.vision.VideoDataSink$VideoHandoffListener.doHandoff(VideoDataSink.java:170)
at com.kablab.vision.VideoDataSink$VideoHandoffListener.handoff(VideoDataSink.java:146)
at org.gstreamer.elements.BaseSink$1.callback(BaseSink.java:137)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.sun.jna.CallbackReference$DefaultCallbackProxy.invokeCallback(CallbackReference.java:444)
at com.sun.jna.CallbackReference$DefaultCallbackProxy.callback(CallbackReference.java:474)
Caused by: com.ardor3d.math.TransformException: Scale is already provided by 3x3 matrix. If this is a mistake, consider using setRotation instead of setMatrix.
at com.ardor3d.math.Transform.setScale(Transform.java:250)
at com.ardor3d.math.ValidatingTransform.setScale(ValidatingTransform.java:80)
at com.ardor3d.math.ValidatingTransform.setScale(ValidatingTransform.java:1)
at com.ardor3d.ui.text.BMText.correctTransform(BMText.java:327)
at com.ardor3d.ui.text.BMText.draw(BMText.java:307)
at com.ardor3d.renderer.queue.TransparentRenderBucket.render(TransparentRenderBucket.java:104)
at com.ardor3d.renderer.queue.RenderQueue.renderBuckets(RenderQueue.java:132)
at com.ardor3d.renderer.jogl.JoglRenderer.renderBuckets(JoglRenderer.java:144)
at com.ardor3d.renderer.jogl.JoglRenderer.renderBuckets(JoglRenderer.java:137)
at com.ardor3d.renderer.jogl.JoglRenderer.flushFrame(JoglRenderer.java:222)
at com.ardor3d.framework.jogl.JoglCanvasRenderer.draw(JoglCanvasRenderer.java:256)
at com.ardor3d.framework.jogl.JoglDrawerRunnable.run(JoglDrawerRunnable.java:16)
at jogamp.opengl.GLRunnableTask.run(GLRunnableTask.java:59)
... 19 more

commenting out the section of code that throws the exception causes no problems aside from the BMText resizing for a frame, then returning to normal

in class com.ardor3d.math.Transform

public Transform setScale(final ReadOnlyVector3 scale) {
//---Comment this section out to work----
// if (!_rotationMatrix) {
// throw new TransformException(
// "Scale is already provided by 3x3 matrix. If this is a mistake, consider using setRotation instead of setMatrix.");
// }
//---End Hack---
if (scale.getX() == 0.0 && scale.getY() == 0.0 && scale.getZ() == 0.0) {
throw new IllegalArgumentException("scale may not be ZERO.");
}

    _scale.set(scale);
    _identity = _identity && scale.getX() == 1.0 && scale.getY() == 1.0 && scale.getZ() == 1.0;
    _uniformScale = scale.getX() == scale.getY() && scale.getY() == scale.getZ();
    return this;
}

Summary of issues when running examples on Mac OSX

I wanted to catalog issues I ran into when running the Ardor3D examples on Mac OSX (2018 Mac Mini, Catalina, Java 11 running from Eclipse), hopefully to help others (and perhaps I'm mistaken on certain points).

  1. The PropertiesDialog never appears. I suspect this is the same lwjgl3 issue that jME saw as well: https://hub.jmonkeyengine.org/t/lwjgl-v2-versus-v3/42125/74. I do not need this dialog for my purposes; I simply use an ardorSettings.properties file instead.

  2. Examples crash with the following error because of this line: new Thread(example).start();. Note that the common suggestion to use VM argument -XstartOnFirstThread did not fix the issue. To workaround I simply call example.run() on the main thread.

[LWJGL] Version: 3.2.3 build 13
[LWJGL] 	 OS: Mac OS X v10.15.7
[LWJGL] 	JRE: 11.0.2 x86_64
[LWJGL] 	JVM: Java HotSpot(TM) 64-Bit Server VM v11.0.2+9-LTS by Oracle Corporation
[LWJGL] Loading JNI library: lwjgl
[LWJGL] 	Module: org.lwjgl
[LWJGL] 	Loaded from org.lwjgl.librarypath: /var/folders/rd/fj31shf90jq1gngpwgpnwy0r0000gn/T/lwjgljslott/3.2.3-build-13/liblwjgl.dylib
[LWJGL] Warning: Failed to instantiate memory allocator: org.lwjgl.system.jemalloc.JEmallocAllocator. Using the system default.
[LWJGL] MemoryUtil allocator: StdlibAllocator
[LWJGL] Loading library: glfw
[LWJGL] 	Module: org.lwjgl.glfw
[LWJGL] 	Loaded from org.lwjgl.librarypath: /var/folders/rd/fj31shf90jq1gngpwgpnwy0r0000gn/T/lwjgljslott/3.2.3-build-13/libglfw.dylib
[LWJGL] Loading library: objc
[LWJGL] 	Module: org.lwjgl
[LWJGL] 	libobjc.dylib not found in org.lwjgl.librarypath=/var/folders/rd/fj31shf90jq1gngpwgpnwy0r0000gn/T/lwjgljslott/3.2.3-build-13
[LWJGL] 	Loaded from system paths: /usr/lib/libobjc.A.dylib
[LWJGL] Loading library: com.apple.AppKit
[LWJGL] 	Success
[LWJGL] GLFW can only be used for offscreen rendering.
2020-11-28 12:16:07.677 java[73623:2726150] *** Assertion failure in +[NSUndoManager _endTopLevelGroupings], /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/Foundation/Foundation-1677.104/Foundation/Misc.subproj/NSUndoManager.m:363
2020-11-28 12:16:07.677 java[73623:2726150] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '+[NSUndoManager(NSInternal) _endTopLevelGroupings] is only safe to invoke on the main thread.'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff2f976b57 __exceptionPreprocess + 250
	1   libobjc.A.dylib                     0x00007fff686295bf objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff2f99fd08 +[NSException raise:format:arguments:] + 88
	3   Foundation                          0x00007fff32091e9d -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 191
	4   Foundation                          0x00007fff31fce5ee +[NSUndoManager(NSPrivate) _endTopLevelGroupings] + 440
	5   AppKit                              0x00007fff2cb5b65c -[NSApplication run] + 864
	6   libglfw.dylib                       0x00000001128d4a85 libglfw.dylib + 68229
	7   libglfw.dylib                       0x00000001128ce416 libglfw.dylib + 42006
	8   ???                                 0x0000000112bce950 0x0 + 4609337680
	9   ???                                 0x0000000112bc8790 0x0 + 4609312656
)
libc++abi.dylib: terminating with uncaught exception of type NSException
  1. Terrain examples (e.g. ArrayTerrainExample) crashes with the following exception. Setting withShowDebugPanels(false) fixed the issue and I suspect the problem is related to that of #1 above.
Throwable caught in MainThread - exiting
java.lang.IllegalArgumentException: textureId must != 0
	at com.ardor3d.util.TextureKey.setTextureIdForContext(TextureKey.java:313)
	at com.ardor3d.image.Texture.setTextureIdForContext(Texture.java:361)
	at com.ardor3d.scene.state.lwjgl3.Lwjgl3TextureStateUtil.load(Lwjgl3TextureStateUtil.java:96)
	at com.ardor3d.scene.state.lwjgl3.Lwjgl3TextureStateUtil.apply(Lwjgl3TextureStateUtil.java:475)
	at com.ardor3d.renderer.lwjgl3.Lwjgl3Renderer.doApplyState(Lwjgl3Renderer.java:331)
	at com.ardor3d.renderer.AbstractRenderer.applyState(AbstractRenderer.java:90)
	at com.ardor3d.renderer.material.TechniquePass.applyRenderStates(TechniquePass.java:312)
	at com.ardor3d.renderer.material.TechniquePass.setupForDraw(TechniquePass.java:139)
	at com.ardor3d.scenegraph.Mesh.render(Mesh.java:278)
	at com.ardor3d.scenegraph.Mesh.render(Mesh.java:255)
	at com.ardor3d.renderer.lwjgl3.Lwjgl3Renderer.draw(Lwjgl3Renderer.java:248)
	at com.ardor3d.scenegraph.Mesh.draw(Mesh.java:370)
	at com.ardor3d.renderer.queue.AbstractRenderBucket.render(AbstractRenderBucket.java:82)
	at com.ardor3d.renderer.queue.RenderQueue.renderBuckets(RenderQueue.java:110)
	at com.ardor3d.renderer.lwjgl3.Lwjgl3Renderer.renderBuckets(Lwjgl3Renderer.java:108)
	at com.ardor3d.renderer.lwjgl3.Lwjgl3Renderer.renderBuckets(Lwjgl3Renderer.java:101)
	at com.ardor3d.example.ExampleBase.renderExample(ExampleBase.java:295)
	at com.ardor3d.example.ExampleBase.render(ExampleBase.java:277)
	at com.ardor3d.framework.lwjgl3.Lwjgl3CanvasRenderer.draw(Lwjgl3CanvasRenderer.java:122)
	at com.ardor3d.framework.lwjgl3.GLFWCanvas.draw(GLFWCanvas.java:179)
	at com.ardor3d.framework.FrameHandler.updateFrame(FrameHandler.java:91)
	at com.ardor3d.example.ExampleBase.run(ExampleBase.java:149)
	at com.ardor3d.example.ExampleBase.start(ExampleBase.java:406)
	at com.ardor3d.example.terrain.ArrayTerrainExample.main(ArrayTerrainExample.java:78)

Spacial Trees ? BSP QuadTree

Hello , where is Ardor3D QuadTree mechanism?
i want to make a big scene.
But i just want to render visible part of the scene.

instancing inconsistencies

I have modified GeometryInstancingExample.java to load a collada file which has a texture with an alpha set. I've noticed everything renders great until the number of models exceeds the InstancingManager max batch size.

In the code attached I load 29 models. If you set that value to 31 and load the example up and compare side by side with the 29 models window you'll notice the textures with an alpha set don't render the same. You have to look close. One is significantly lighter on part of the model.

A code example can be found here:
http://ardor3d.forumatic.com/viewtopic.php?f=10&t=12713

Unable to resolve problem with dependency

I get the following error when trying to use Ardor3d as a dependency ...

C:\Users\jfe.CAMPUS\Documents\GitHub\game-tools>gradle build

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not resolve all files for configuration ':compileClasspath'.

Could not find org.eclipse.swt:swt:3650.
Searched in the following locations:
https://oss.sonatype.org/content/repositories/snapshots/org/eclipse/swt/swt/3650/swt-3650.pom
https://oss.sonatype.org/content/repositories/snapshots/org/eclipse/swt/swt/3650/swt-3650-${swt.classifier}.jar
http://repo.maven.apache.org/maven2/org/eclipse/swt/swt/3650/swt-3650.pom
http://repo.maven.apache.org/maven2/org/eclipse/swt/swt/3650/swt-3650-${swt.classifier}.jar
http://jogamp.org/deployment/maven/org/eclipse/swt/swt/3650/swt-3650.pom
http://jogamp.org/deployment/maven/org/eclipse/swt/swt/3650/swt-3650-${swt.classifier}.jar
https://swt-repo.googlecode.com/svn/repo/org/eclipse/swt/swt/3650/swt-3650.pom
https://swt-repo.googlecode.com/svn/repo/org/eclipse/swt/swt/3650/swt-3650-${swt.classifier}.jar
file:/C:/Users/jfe.CAMPUS/.m2/repository/org/eclipse/swt/swt/3650/swt-3650.pom
file:/C:/Users/jfe.CAMPUS/.m2/repository/org/eclipse/swt/swt/3650/swt-3650-${swt.classifier}.jar
Required by:
project : > com.ardor3d:ardor3d-swt:1.0-SNAPSHOT

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1s
1 actionable task: 1 executed

I'm using Intellij on Windows 10. I'm including subproject ardor3d-examples so I can use ExampleBase.java until I build my on superclass.

I'm including the repository in the main build.grade class from the Ardor3d project. If I had to guess I'm thinking you may have a repository in MavenLocal() that is needed for my project.

Thanks
Jeff

Java 11 compatibility

I see 1.0.0 is not Java 11 compatible, because it depends on JWJGL 2.9.3 which is not Java 11 compatible (AWTGLCanvas class at least is not).

JWJGL 3 seems to be compatible with Java 11 and I see that the master branch is already depending on that version.

Any plans on when a release supporting Java 11 would be ready or are there any open issues that would benefit from contributions?

Add a callback to indicate when a buffer is not referenced any more

I already talked about this problem on the forum and I have a very simple solution to suggest. I would like to be able to use a listener or an overridable method that would be called when a NIO buffer created with BufferUtils is not referenced any more, I need a reference on this buffer and some indications about how it was used in OpenGL (texture id, VBO id, ...). Then I would be able to destroy the OpenGL resource using this buffer and release its native memory if it is a direct NIO buffer. Direct NIO buffers are still page-aligned in Java 1.6 and they need some manual handling as the garbage collector is not called when there is not enough native memory but enough memory for the Java heap space.

Intellij does not recognize Java source as source files

When I open Ardor3D as a gradle project it downloads Gradle 6.0.1 and gives the following error:

<ij_msg_gr>Project resolve errors<ij_msg_gr><ij_nav>C:\Users\JFE\GitHub\Temp\Ardor3D\build.gradle<ij_nav>root project 'ardor3d': Unable to resolve additional project configuration.Details: org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':ardor3d-examples:runtimeClasspath'.Caused by: org.gradle.internal.resolve.ArtifactNotFoundException: Could not find lwjgl-opengl-3.2.3-natives-${platform}.jar (org.lwjgl:lwjgl-opengl:3.2.3).Searched in the following locations: https://repo.maven.apache.org/maven2/org/lwjgl/lwjgl-opengl/3.2.3/lwjgl-opengl-3.2.3-natives-${platform}.jar

It does not recognize the Java code as source code. The version of A3D I'm currently using does not contain the new module ardor3d-lwjgl3-awt. It loads fine and I can study the examples. With this version I can't run any of the examples. :( The new module may not be making the difference, but it is a suspect. Appreciate any help. Thanks!

Examples run but won't display graphics (Missing material)?

I haven't run the examples in awhile but tried just now and nothing will display. I got the following output. I usually run a git pull whenever I see that a change has been made.

Sep 02, 2022 7:31:36 PM com.ardor3d.example.PropertiesGameSettings load
WARNING: Could not load properties. Creating a new one.
[LWJGL] Version: 3.2.3 build 13
[LWJGL] OS: Windows 10 v10.0
[LWJGL] JRE: 17.0.2 amd64
[LWJGL] JVM: OpenJDK 64-Bit Server VM v17.0.2+8 by Eclipse Adoptium
[LWJGL] Loading JNI library: lwjgl
[LWJGL] Module: org.lwjgl
[LWJGL] Loaded from org.lwjgl.librarypath: C:\Users\JFE\AppData\Local\Temp\lwjglJFE\3.2.3-build-13\lwjgl.dll
[LWJGL] Warning: Failed to instantiate memory allocator: org.lwjgl.system.jemalloc.JEmallocAllocator. Using the system default.
[LWJGL] MemoryUtil allocator: StdlibAllocator
[LWJGL] Loading library: glfw
[LWJGL] Module: org.lwjgl.glfw
[LWJGL] Loaded from org.lwjgl.librarypath: C:\Users\JFE\AppData\Local\Temp\lwjglJFE\3.2.3-build-13\glfw.dll
[LWJGL] Loading JNI library: lwjgl_opengl
[LWJGL] Module: org.lwjgl.opengl
[LWJGL] Loaded from org.lwjgl.librarypath: C:\Users\JFE\AppData\Local\Temp\lwjglJFE\3.2.3-build-13\lwjgl_opengl.dll
[LWJGL] Loading library: opengl32
[LWJGL] Module: org.lwjgl.opengl
[LWJGL] opengl32.dll not found in org.lwjgl.librarypath=C:\Users\JFE\AppData\Local\Temp\lwjglJFE\3.2.3-build-13
[LWJGL] Loaded from system paths: C:\WINDOWS\system32\opengl32.dll
[LWJGL] Java 10 multiplyHigh enabled
[LWJGL] Java 9 check intrinsics enabled
[LWJGL] Java 10 memcpy enabled
[LWJGL] Java 9 text decoding enabled
Sep 02, 2022 7:31:44 PM com.ardor3d.renderer.lwjgl3.Lwjgl3Renderer
INFO: Lwjgl3Renderer created with a 3.3 context.
Sep 02, 2022 7:31:44 PM com.ardor3d.example.ExampleBase init
INFO: Display Vendor: Intel
Sep 02, 2022 7:31:44 PM com.ardor3d.example.ExampleBase init
INFO: Display Renderer: Intel(R) UHD Graphics 630
Sep 02, 2022 7:31:44 PM com.ardor3d.example.ExampleBase init
INFO: Display Version: 3.3.0 - Build 27.20.100.9664
Sep 02, 2022 7:31:44 PM com.ardor3d.example.ExampleBase init
INFO: Shading Language Version: 3.30 - Build 27.20.100.9664
Sep 02, 2022 7:31:44 PM com.ardor3d.renderer.material.MaterialManager chooseTechnique
WARNING: Mesh sphere (com.ardor3d.scenegraph.shape.Sphere) missing material. Auto-guessing.
Sep 02, 2022 7:31:45 PM com.ardor3d.renderer.material.MaterialManager chooseTechnique
WARNING: Mesh torus (com.ardor3d.scenegraph.shape.PQTorus) missing material. Auto-guessing.

Trouble with running PointSpritesExample.java

I'm getting this error when trying to execute the above mention code. For now this is a question. Do I need to update my drivers? Or do I need to get a more advance graphics card?

Thanks
Jeff

[#version 330 core

out vec4 FragColor;

in vec4 DiffuseColor;

uniform sampler2D diffuse;

void main()
{
FragColor = vec4(texture2D(diffuse, gl_PointCoord)) * DiffuseColor;
}]
Throwable caught in MainThread - exiting
com.ardor3d.util.Ardor3dException: Error compiling Fragment shader: ERROR: 0:11: 'function' : is removed in Forward Compatible context texture2D
ERROR: 0:11: 'texture2D' : no matching overloaded function found (using implicit conversion)
ERROR: 0:11: 'texture2D' : function is not known

at com.ardor3d.scene.state.lwjgl3.util.Lwjgl3ShaderUtils.prepareShader(Lwjgl3ShaderUtils.java:192)
at com.ardor3d.scene.state.lwjgl3.util.Lwjgl3ShaderUtils.createShaderProgram(Lwjgl3ShaderUtils.java:89)
at com.ardor3d.renderer.material.TechniquePass.startPass(TechniquePass.java:151)
at com.ardor3d.renderer.material.TechniquePass.setupForDraw(TechniquePass.java:135)
at com.ardor3d.scenegraph.Mesh.render(Mesh.java:287)
at com.ardor3d.scenegraph.Mesh.render(Mesh.java:255)
at com.ardor3d.scenegraph.Point.render(Point.java:173)
at com.ardor3d.renderer.lwjgl3.Lwjgl3Renderer.draw(Lwjgl3Renderer.java:249)
at com.ardor3d.scenegraph.Mesh.draw(Mesh.java:378)
at com.ardor3d.renderer.queue.AbstractRenderBucket.render(AbstractRenderBucket.java:82)
at com.ardor3d.renderer.queue.RenderQueue.renderBuckets(RenderQueue.java:110)
at com.ardor3d.renderer.lwjgl3.Lwjgl3Renderer.renderBuckets(Lwjgl3Renderer.java:109)
at com.ardor3d.renderer.lwjgl3.Lwjgl3Renderer.renderBuckets(Lwjgl3Renderer.java:102)
at com.ardor3d.example.ExampleBase.renderExample(ExampleBase.java:296)
at com.ardor3d.example.ExampleBase.render(ExampleBase.java:278)
at com.ardor3d.framework.lwjgl3.Lwjgl3CanvasRenderer.draw(Lwjgl3CanvasRenderer.java:122)
at com.ardor3d.framework.lwjgl3.GLFWCanvas.draw(GLFWCanvas.java:185)
at com.ardor3d.framework.FrameHandler.updateFrame(FrameHandler.java:91)
at com.ardor3d.example.ExampleBase.run(ExampleBase.java:147)
at java.base/java.lang.Thread.run(Thread.java:834)

Looks like gradle cannot get the value from ${platform} when trying to run CompoundTerrainExample.

Execution failed for task ':ardor3d-examples:CompoundTerrainExample.main()'.

Could not resolve all files for configuration ':ardor3d-examples:runtimeClasspath'.
Could not find lwjgl-opengl-3.2.3-natives-${platform}.jar (org.lwjgl:lwjgl-opengl:3.2.3).
Searched in the following locations:
https://repo.maven.apache.org/maven2/org/lwjgl/lwjgl-opengl/3.2.3/lwjgl-opengl-3.2.3-natives-${platform}.jar
Could not find lwjgl-3.2.3-natives-${platform}.jar (org.lwjgl:lwjgl:3.2.3).
Searched in the following locations:
https://repo.maven.apache.org/maven2/org/lwjgl/lwjgl/3.2.3/lwjgl-3.2.3-natives-${platform}.jar

Possible solution:

LwjglBaseApplet should implement Updater and should use FrameHandler

LwjglBaseApplet doesn't use FrameHandler and doesn't implement Updater unlike ExampleBase. It doesn't help to use existing examples as applets. A better solution would consist in modifying all examples to implement Updater and in modifying LwjglBaseApplet to use FrameHandler; then, it would be very easy to use all existing examples both with ExampleBase and with *BaseApplet, rewriting all examples for applets would not be necessary.

Is Ardor3D dead?

I like Ardor3D because this project seems simpler and more logical than JMonkeyEngine. But the last release was 1 year ago and there is no documentation, is the project dead?

Release from master

Any plans to cut a release from master branch? I am eagerly waiting for an "official" release with lwjgl3.

Resolve Non-rotational matrices at import time in Animation Manager from collada

This issue has been raised in this forum topic before by me, here:
http://ardor3d.com/forums/viewtopic.php?f=10&t=5919

This issue seems to be constant and quite random depending on changes i do to my mode in 3D Max(It also occurs from versions 2009 to 2013 of the fbx exporter). I also know now that if autodesk fbx collada exporter knows that it has non-rotational matrices the export issues a warning about it.
This issue seems to caused by because of the rounding of decimal values, which makes sense since there quite a few decimal points in my model.

Since i am fed up with this issue, as both autodesk fbx collada and opencollada give the same results, i would like to attempt to solve it by implementing an iterative gram-schmidt to orthogonalise the matrix at import time before it is modified into a Transform.

And to get a permanent fix that will suit the integration with ardor3d and possibly help others, i would like to know if integrating a new method in Matrix4.java to orthogonalise it where the three steps to do this process will be done for this type of matrix.

this method will test at the end if the process worked or not (and will return a Warning flag about it).

I will attempt to do this right before a Transform object is created from Matrix4 during import in collada.

I would suggest to turn this method on and off by using a boolean flag.
This method depends on a k value which must be below one, would it be necessary to create a flag method to allow this value to change?

Sources for this method can be found here:
http://gamemath.com/powerpoint/6%20More%20on%20Matrices.pptx slide 59

If there is no interest in having this solution implemented in ardor please cancel this issue:).

I think as a community maybe creating an fbx importer using their python wrapper would be the best solution i really don't like collada:S, (Maybe thats another story).

Thanks.

Needs better documentation

I'm not sure where to comment this, so I'm doing this as an issue. You NEED better documentation.

Right now your only form of tutorial is something telling you how to copy paste from your example code, and even then, I can't figure out the context it should be running in because you abstracted out your initialization code. You have an outline for in introduction tutorial, but I can't find the tutorial itself. Right now, the only way to figure out how to use this thing is to reverse engineer your example code, which is not good.

If you want people to use your API, you need to fix this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.