Renanse / Ardor3D

Ardor3D is a free Java based, professionally oriented, open source 3D graphics engine.
Other
227 stars 77 forks source link

Trouble finding the yaml files in ardor3d-examples #83

Closed jfelrod1960 closed 5 years ago

jfelrod1960 commented 5 years ago

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\JFE~1.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\JFE~1.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\JFE~1.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

Renanse commented 5 years ago

Are you able to find these under C:\Users\jfe.CAMPUS\Documents\GitHub\Ardor3D\ardor3d-core\out\production\resources ? I'm wondering if IntelliJ needs some setup to know to copy them or something like that.

jfelrod1960 commented 5 years ago

Yes they are there. Let research this and get back with you. I may have to set something up in the run configuration to tell IntelliJ to look there.

Thanks 👍

jfelrod1960 commented 5 years ago

Unable to figure out what's going on. Looking at addDefaultResourceLocators() in ExampleBase.java it may be expecting the files to be in the out directory in ardor3d-examples and not in ardor3d-core. Are you using the Eclipse IDE?

Renanse commented 5 years ago

It is likely something different for IntelliJ's setup of the classpath vs. Eclipse. ExampleBase makes use of our typical ResourceLocatorTool.getClassPathResource to grab the url of the given directory. I'd suggest placing a debug point there and walking forward to see what you get there. I have run this unmodified directly as a gradle project in Eclipse, as well as built jars (the yaml files in question are in ardor3d-core.jar in this case).

Renanse commented 5 years ago

fwiw, on the first default MATERIAL locator addition, when I step into getClassPathResource, with arguments Class<T>(com.ardor3d.renderer.material.MaterialManager) and "com/ardor3d/renderer/material", the first line: URL result = Thread.currentThread().getContextClassLoader().getResource(name); immediately gets the URL: file:/D:/Ardor3D-src/ardor3d-core/bin/com/ardor3d/renderer/material

Would be interesting to see what that looks like in IntelliJ

Renanse commented 5 years ago

Hey, so I realized I have IntelliJ community edition installed (2018.1.2), so I imported a clean checkout of ardor3d in as a new gradle project. I had to clean out the ardor3d-performance (old comparison against vecmath, not really needed) folder to get it compiling due to IntelliJ being unable to find the vecmath lib, but otherwise it built great. I then ran BoxExample.main() via right clicking on the BoxExample class file and it ran just fine. I tried MatrixLookAtExample and aside from it never being updated with a valid material, it also ran fine.

jfelrod1960 commented 5 years ago

Hey Josh sorry for the late reply. I started having pain in my upper leg and had to go to urgent care. They got me on some heavy meds. Makes me sleep all the time.

Still no luck on running the MatrixLookAtExample:

"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=51529: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\JFE~1.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\JFE~1.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\JFE~1.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 31, 2018 10:43:14 PM com.ardor3d.example.ExampleBase init INFO: Display Vendor: Intel Dec 31, 2018 10:43:14 PM com.ardor3d.example.ExampleBase init INFO: Display Renderer: Intel(R) HD Graphics 4600 Dec 31, 2018 10:43:14 PM com.ardor3d.example.ExampleBase init INFO: Display Version: 3.3.0 - Build 20.19.15.4835 Dec 31, 2018 10:43:14 PM com.ardor3d.example.ExampleBase init INFO: Shading Language Version: 3.30 - Build 20.19.15.4835 Dec 31, 2018 10:43:14 PM com.ardor3d.util.resource.ResourceLocatorTool locateResource WARNING: Unable to locate: basic_white.yaml Dec 31, 2018 10:43:14 PM com.ardor3d.renderer.material.reader.YamlMaterialReader load(ResourceSource) WARNING: source was null. Returning null. lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml lit/textured/vertex_color_phong.yaml Dec 31, 2018 10:43:15 PM com.ardor3d.util.resource.ResourceLocatorTool locateResource WARNING: Unable to locate: lit/textured/vertex_color_phong.yaml

Process finished with exit code 0

Renanse commented 5 years ago

Sorry to hear that. Hope you are feeling better now.

I didn't make any changes that would fix your situation, only a small change to help the example look better.

As mentioned above, I was able to get the example running in IntelliJ with minimal effort, so there must be something unique in your setup. Perhaps you could try in a new workspace using gradle?

jfelrod1960 commented 5 years ago

I'm going to close this since the problem is on my side. If I find it is something else I will re-open. Thanks! :)

Renanse commented 5 years ago

Sure thing. If it would help to write some more IntelliJ instructions, let me know.

On Fri, Jan 11, 2019 at 10:31 AM Jeffrey Elrod notifications@github.com wrote:

I'm going to close this since the problem is on my side. If I find it is something else I will re-open. Thanks! :)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Renanse/Ardor3D/issues/83#issuecomment-453575505, or mute the thread https://github.com/notifications/unsubscribe-auth/AB1w2wndGeuTUMJuzLowbUx1A21kOjnoks5vCLxsgaJpZM4ZkZoZ .

jfelrod1960 commented 5 years ago

Playing around with Ardor3D again. Using Intellij in debug mode I get to line 89 in SimpleResourceLocator.java which is ... // Try to locate using resourceName as is. try { final URL rVal = new URL(_baseDir.toURL(), resourceName); ... and the values are ... _baseDir: "file:/C:/Users/jfe.CAMPUS/Documents/GitHub/Ardor3D/ardor3d-examples/out/production/resources/com/ardor3d/example/media/materials/" resourceName: "lit/textured/vertex_color_phong.yaml"

Now it seems like A3D is expecting my _baseDir to be "file;/C:/Users/jfe.CAMPUS/Documents/GitHub/ardor3d-core", but since I'm running from examples it is not finding the YAML files. Changing my working directory has no effect because it is using the base directory. I guess I can copy the out directory to ardor3d-examples?

Hope all is well :) Jeff

Renanse commented 5 years ago

Actually, you should have multiple resource locators. One is in examples as you point out above, but there should be one for core as well.

jfelrod1960 commented 5 years ago

I understand. I was trying to run BoxExample.java right out of the box and I figured no modification of code would be required.

Renanse commented 5 years ago

No modification is needed. Please see ExampleBase line's 580-584 where 2 material locators are added, one for the core materials and another for any example-specific materials. https://github.com/Renanse/Ardor3D/blob/master/ardor3d-examples/src/main/java/com/ardor3d/example/ExampleBase.java#L580

        ResourceLocatorTool.addResourceLocator(ResourceLocatorTool.TYPE_MATERIAL, new SimpleResourceLocator(
                ResourceLocatorTool.getClassPathResource(MaterialManager.class, "com/ardor3d/renderer/material")));
        ResourceLocatorTool.addResourceLocator(ResourceLocatorTool.TYPE_MATERIAL,
                new SimpleResourceLocator(ResourceLocatorTool.getClassPathResource(ExampleBase.class,
                        "com/ardor3d/example/media/materials/")));
Renanse commented 5 years ago

Ping me and we'll do a screen share to look further into this. I'm going to guess we are hitting some odd behavior with ResourceLocatorTool.getClassPathResource that is causing issues with the locator added in 580-581 above.

jfelrod1960 commented 5 years ago

I have a pretty big assignment that needs to be in TEST in a couple of weeks. I know you stay busy too. If you think ResourceLocatorTool.getClassPathResource is a good place to look then I will study the code. If I don't see anything with the code hopefully we can do a screen share in two weeks. Thanks man!

jfelrod1960 commented 5 years ago

Hey Josh I'm still having issues with the yaml files. The funny thing is that when I clone Ardor3D down into my new laptop, the Box Example others worked fine. But now the app cannot find the yaml files. Does the build/re-build change the structure, etc?

Renanse commented 5 years ago

Building the code will not change the structure of things. Ping me on hangouts or by email and we can go over this together.

Renanse commented 5 years ago

@jfelrod1960 I will close this now that you have identified what is going on in your setup. Feel free to describe things here though for posterity if you have time.