Git Product home page Git Product logo

dispersion's People

Contributors

bkuker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

roguextech

dispersion's Issues

Manual method to use the source code

Hello, @bkuker!

I loved your project's idea, that is an outstanding feature for Open Rocket users!
And I would really want to use that feature in my projects, but I'm kind of a beginner and I'm having a hard time trying to apply the source code.
Is there something like a simple manual to use your code? I searched on the files here and found nothing.
So I tried by myself and imported to an eclipse project the open rocket 15.03 code as a library (Is it the right version to be used?) and all the necessary java libraries (slf4j-api-1.7.5, log4j-1.2.17, guice-3.0, gluegen-rt-2.0.2, jogl-all-2.0.2, colt-1.2.0, commons-math3-3.2) and imported the dispersion's source code files also. Then I executed the Dispersion.java, but I got this error message:

91             INFO  [main] c.b.r.d.Dispersion - Loading databases
1530           INFO  [main] n.s.o.s.p.TranslatorProvider - Using default locale pt_BR
1553           INFO  [main] n.s.o.s.p.TranslatorProvider - Set up translation for locale pt_BR, debug.currentFile=messages.properties
1555           INFO  [DatabaseLoadingThread] n.s.o.d.ComponentPresetDatabaseLoader - Loading component presets from datafiles/presets
1557           DEBUG [DatabaseLoadingThread] n.s.o.u.JarUtil - Found jar file using codeSource
1559           INFO  [main] c.b.r.d.Dispersion - Setting best LAF
1566           INFO  [DatabaseLoadingThread] n.s.o.d.MotorDatabaseLoader - Starting reading serialized motor database
1567           DEBUG [DatabaseLoadingThread] n.s.o.u.JarUtil - Found jar file using codeSource
1570           DEBUG [DatabaseLoadingThread] n.s.o.d.MotorDatabaseLoader - Reading motors from file datafiles/thrustcurves/thrustcurves.ser
2082           DEBUG [DatabaseLoadingThread] n.s.o.d.ComponentPresetDatabaseLoader - Time to load presets: 527ms 1622 loaded from 1 files
2086           INFO  [DatabaseLoadingThread] n.s.o.d.MotorDatabaseLoader - Ending reading serialized motor database, motorCount=1721
2087           INFO  [DatabaseLoadingThread] n.s.o.d.MotorDatabaseLoader - Starting reading user-defined motors
2087           INFO  [DatabaseLoadingThread] n.s.o.d.MotorDatabaseLoader - Ending reading user-defined motors, motorCount=1721
2244           DEBUG [main] c.b.r.d.v.Display - Setting up GL capabilities...
Catched FileNotFoundException: /home/yuri/UFSC/GAfoguete/Libraries/gluegen-2.0.2-natives-linux-amd64.jar (Arquivo ou diretório inexistente), while TempJarCache.bootstrapNativeLib() of jar:file:/home/yuri/UFSC/GAfoguete/Libraries/gluegen-2.0.2-natives-linux-amd64.jar!/ (file:/home/yuri/UFSC/GAfoguete/Libraries/ + gluegen-2.0.2-natives-linux-amd64.jar)
2281           ERROR [main] c.b.r.d.v.Display - An error occurred creating 3d View
java.lang.UnsatisfiedLinkError: Can't load library: /home/yuri/eclipse-workspace/Dispersion_Test/libgluegen-rt.so
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1827) ~[na:1.8.0_201]
	at java.lang.Runtime.load0(Runtime.java:809) ~[na:1.8.0_201]
	at java.lang.System.load(System.java:1086) ~[na:1.8.0_201]
	at com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:468) ~[gluegen-2.0.2.jar:2.0.2]
	at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:63) ~[gluegen-2.0.2.jar:2.0.2]
	at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNILibLoaderBase.java:94) ~[gluegen-2.0.2.jar:2.0.2]
	at com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.java:332) ~[gluegen-2.0.2.jar:2.0.2]
	at com.jogamp.common.os.DynamicLibraryBundle$GlueJNILibLoader.loadLibrary(DynamicLibraryBundle.java:390) ~[gluegen-2.0.2.jar:2.0.2]
	at com.jogamp.common.os.Platform$1.run(Platform.java:210) ~[gluegen-2.0.2.jar:2.0.2]
	at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_201]
	at com.jogamp.common.os.Platform.<clinit>(Platform.java:173) ~[gluegen-2.0.2.jar:2.0.2]
	at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:82) ~[jogl-all-2.0.2.jar:2.0.2]
	at com.billkuker.rocketry.dispersion.vizualization.Display.initGLCanvas(Display.java:162) [bin/:na]
	at com.billkuker.rocketry.dispersion.vizualization.Display.<init>(Display.java:155) [bin/:na]
	at com.billkuker.rocketry.dispersion.Dispersion.startup(Dispersion.java:75) [bin/:na]
	at com.billkuker.rocketry.dispersion.Dispersion.main(Dispersion.java:43) [bin/:na]
Exception in thread "main" java.lang.NullPointerException
	at com.billkuker.rocketry.dispersion.vizualization.Display.setupMouseListeners(Display.java:234)
	at com.billkuker.rocketry.dispersion.vizualization.Display.<init>(Display.java:156)
	at com.billkuker.rocketry.dispersion.Dispersion.startup(Dispersion.java:75)
	at com.billkuker.rocketry.dispersion.Dispersion.main(Dispersion.java:43)

I have checked the "gluegen-rt-2.0.2-natives-linux-amd64" library and it is there. And it seams that there is a problem in the 3d vizualization part. What is your opinion? Have I done something wrong on the way?

I just love your project and it would be really amazing if you could help me with this, I would appreciate a lot.

Big thanks! 😁

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.