Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - PaniX

#1
Support / Re: assign a GL texture to an Object3D
May 24, 2015, 02:48:27 PM
Just a small question... Did you were able to get LenseFlare to work?
Any idea how I could use the function in the StereoRenderer?

Just interested, no need to hack something together for a noob like me :)
#2
German corner / Re: Mond :)
March 31, 2015, 08:33:00 PM
Entschuldigung, kenne mich leider nicht so mit den Begrifflichkeiten aus...
Gibt es einen Unterschied (bzw. was wäre der?) zwischen Bump/Parallex/Normal/Offset-Mapping?
Bumpmaps vom Mond gibt es durchaus, auch in sehr hohen Qualitätstufen...
Hat da jPCT-AE irgendwelche Beschränkungen? Wie groß dürften meine Texturen denn maximal sein?
Technisch ebenso gesehen wie in Richtung der FPS?

Danke dennoch schon mal für die Antwort, ich werde das mal eben probieren.
#3
Feedback / Re: Android Studio...
March 22, 2015, 02:15:52 PM
Hihi

Started Android programming again, tried Android Studio...
Gradle needs 3min to compile a simple Hello World - without upload to mobile phone. In Terminal.
5 seconds in Eclipse to compile and upload to Smartphone...

Eclipse FTW :)
#4
German corner / Mond :)
March 22, 2015, 02:11:31 PM
Hallo!

Bin zwar immer noch ein blutiger Anfänger, habe aber generell im programmieren etwas
Erfahrung seit dem letzten Versuch mit jPCT gesammelt...

Wie würdet ihr denn einen Mond mit jPCT-AE realtime rendern? Mit einer bumpmap?
Oder dann lieber doch direkt als *echtes* 3D-Modell?

Wie macht man denn am besten eine Bumpmap um eine Kugel, gibt's da schon irgendwo Infos
oder muss ich das von "scratch" selber programmieren?

Liebe Grüße,
PaniX
#5
Support / Re: Screen Size +FullScreen
September 21, 2013, 07:27:01 PM
I don't like the XML that much, because it was confusing when I've started learning java on Android.
#6
Support / Re: Screen Size +FullScreen
September 21, 2013, 07:01:57 AM
Hm, I've also found the method adding
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
to the Manifest...
Is it a good way?
#7
Support / Screen Size +FullScreen
September 20, 2013, 07:12:44 PM
Two hopefully smaller questions, which aren't direct about JPCT-AE, but which may be helpful for others using the engine too.
1) How to get the screen size from the smartphone the user uses?
2) How to make the application full screen, without the status bar on the upper part of the screen?
Thanks!
#8
Support / setScale which values?
September 17, 2013, 04:23:57 PM
Hey guys,
just a small question. When I use setScale();, between which values the scale must be?
Thanks!
#9
Somehow an import com.threed.jpct.example.R; or something like that managed to get into my Java codings...
:-[
But thank you for your great help, now I also have some informations how to debug with try-catches, thanks!
#10
I don't think getResource() returns null, or even gun.md2 is null, because it works in the real example. What could be wrong in the project setup, and how it has to be fixed? I hate sdk's, normally I just use nano for programming, but Android needs J***...
#11
Must be something wrong in the project setup. In the original HelloWorld-AE example (Android Application from Existing File) it works, in my project it doesn't work (Android Application Project)...
Where could the error be?
#12

09-16 20:10:49.377: I/jPCT-AE(6202): Texture loaded...16384 bytes/64*64 pixels!
09-16 20:10:49.377: I/jPCT-AE(6202): Loading model
09-16 20:10:49.397: I/jPCT-AE(6202): [ 1379355049402 ] - ERROR: java.lang.NullPointerException
09-16 20:10:49.397: I/jPCT-AE(6202): at free.codeninja.theone.MainActivity$MyRenderer.onSurfaceChanged(MainActivity.java:177)
09-16 20:10:49.397: I/jPCT-AE(6202): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1456)
09-16 20:10:49.397: I/jPCT-AE(6202): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1217)
09-16 20:10:49.407: W/dalvikvm(6202): threadid=11: thread exiting with uncaught exception (group=0x2b4e71f8)
09-16 20:10:49.417: E/AndroidRuntime(6202): FATAL EXCEPTION: GLThread 627
09-16 20:10:49.417: E/AndroidRuntime(6202): java.lang.RuntimeException: [ 1379355049402 ] - ERROR: java.lang.NullPointerException
09-16 20:10:49.417: E/AndroidRuntime(6202): at free.codeninja.theone.MainActivity$MyRenderer.onSurfaceChanged(MainActivity.java:177)
09-16 20:10:49.417: E/AndroidRuntime(6202): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1456)
09-16 20:10:49.417: E/AndroidRuntime(6202): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1217)
09-16 20:10:49.417: E/AndroidRuntime(6202): at com.threed.jpct.Logger.log(Logger.java:189)
09-16 20:10:49.417: E/AndroidRuntime(6202): at com.threed.jpct.Logger.log(Logger.java:136)
09-16 20:10:49.417: E/AndroidRuntime(6202): at free.codeninja.theone.MainActivity$MyRenderer.onSurfaceChanged(MainActivity.java:180)
09-16 20:10:49.417: E/AndroidRuntime(6202): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1456)
09-16 20:10:49.417: E/AndroidRuntime(6202): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1217)
09-16 20:10:49.517: D/OpenGLRenderer(6202): Flushing caches (mode 0)
09-16 20:10:50.247: D/OpenGLRenderer(6202): Flushing caches (mode 1)
09-16 20:10:51.257: I/Process(6202): Sending signal. PID: 6202 SIG: 9
#13
When I do it like this:
Logger.log("Loading model");
try {
cube = Loader.loadMD2(getResource().openRawResource(R.raw.gun), 0.5f);
Logger.log("Loaded model!");
}catch(Throwable e) {
Logger.log("ERROR:" + e.getMessage());
}


(not sure if this IS right, I'm new to Java)

It tells me this:

09-16 17:10:51.987: I/jPCT-AE(3728): Loading model
09-16 17:10:51.987: I/jPCT-AE(3728): ERROR:null
09-16 17:10:52.017: W/dalvikvm(3728): threadid=11: thread exiting with uncaught exception (group=0x2b4e71f8)
09-16 17:10:52.017: E/AndroidRuntime(3728): FATAL EXCEPTION: GLThread 366

Hopefully it helps :D
#14
Made a Logger.log();
before cube = Loader.load [..]
It tells me that it fails loading the model, because the next Logger.log(); after Loader.loadMD2(); doesn't come (bad english, yay)
But I don't know what's wrong. Because I loaded the model before in JPCT-AE without any problems...
The model is in res/raw/gun.md2


09-16 14:54:43.977: I/jPCT-AE(2378): Loading model
09-16 14:54:44.007: W/dalvikvm(2378): threadid=11: thread exiting with uncaught exception (group=0x2b4e71f8)
09-16 14:54:44.007: E/AndroidRuntime(2378): FATAL EXCEPTION: GLThread 219
#15
There is nothing more in the logcat. Maybe in the .xml files? Could there be a problem? I don't think so, because getCube works...