jPCT-AE - a 3d engine for Android > Support

Getting started on JPCT-AE

(1/3) > >>

S4milli4:
Hey there !

I've been looking around for some examples of code in order to get started on JPCT-AE but all i've managed to found was some terrible source codes (all code in the activity FTL !)... Is there any tutorial or codes (with a GOOD structure like MVC or at least an understandable one) that you guys could give to me so i can finally understand something to JPCT-AE ?!

Thx really much to the one that will bring me the light ! Srsly !!!

Kaiidyn:
I dont think you will be able to find them, as that will clutter the examples..
What you can do is make a new file with your class implements GLSurfaceView.Renderer..
And split different things up from there, use your imagination. :)

Also browsing the forums gave me good inspiration..
jPCT and jPCT-AE are not that different.. have a glance at the code on the wiki to get started..
If there is something specific you dont understand, check the forums (search function) and if you can't find it.. make a new topic with your question.. there are always people that will answer your questions..

EgonOlsen:
I'm not sure if it's a smart idea to enter a community by calling the source code of the examples terrible. It took me some time to make up my mind if i should take this post offensive or not...i decided to try not to.
Most examples in the forum are based on the HelloWorld example from the wiki or some similar test case. They are not meant to serve as examples for brilliant software design (i'm not going to start an argument if MVC for Android games is always a brilliant idea or not...) but to show how to deal with a certain problem in the simplest form possible. IMHO, it's much simpler to put such examples into a single file that anybody can copy, read and compile in one step instead of spreading it out to a dozen classes and force people to think more about the taken design decisions than about the actual problem itself.
If you want to look at some more or less MVC based stuff done with jPCT (not -AE), you might want to look at the Robombs sources here: http://jpct.de/download/robombs_src.zip. As said, they are for desktop jPCT, not for the Android version, but both are pretty similar so they might still be helpful. Personally, i don't see the point why looking at more complex sources should be better for learning then studying simple one class examples but that's just me. I don't dare to point you to the Alien Runner sources, because i'm doing a lot of stuff in the Activity too and view and model became one in there...which, as we all know, is nothing but pure evil...well, i think i did not quite succeed in not taking it offensive...but i tried my very best. You are still welcome... ;)

icarusfactor:
I plan on doing a code how-to with JPCT and Android.  But mine will be command line and Unix based(as that is all I have ) but should work on other platforms, again that is in my TODO list. currently I am busy working on my first app with JPCT right now , so a code review will be helpful to me as well as on the web. But not there yet.

I started out with the default code that comes with Android 2.x SDK
samples android-9 apidemos for OpenGL ES and also JPCT hello world AE
and hacked away until i could not find a resolution to a problem , then
 came on the forum here and asked how to, so far have not been stopped
in my tracks  yet.

S4milli4:
Well, i didn't mean to hurt you Oo... i was just saying that a clear code i much more understandable (at least in my opinion) and that when the while code is in the main activity that don't teach you much. A project is not harder to download or to import as a project so i still don't get your way of thinking because i tried to play with your "helloworld" and it turned out that actually there is no way to reshape it in a structured code (as there are some attributes dirty declared, etc). Here is why my post could have seemed a little frustrated because i have to evaluate quickly JPCT-AE (in terms of physics engine) in order to know if it suits to our project or not (either regarding the performances or the support). In the end i dont know how you do work but i really think that learning (or even teaching) the things right from the very beginning has always been the way to avoid bad habits. You're the main support, it means that if i start a project using JPCT-AE, i can only rely on you and i cant if i always have to doubt you.
No offense really, im just used to say what i think.
But anyway thx for the answers.

Navigation

[0] Message Index

[#] Next page

Go to full version