Author Topic: 3D Campus using JPCT  (Read 527 times)

Offline mauriceaj

  • byte
  • *
  • Posts: 1
    • View Profile
3D Campus using JPCT
« on: November 04, 2014, 10:04:20 pm »
Hello Guys,

For my Final Year Project, I am doing an Android app that will provide navigation around our university campus in 3D, along with shuttle tracking and viewing.

I am studying the ability of JPCT-AE to help me achieve my purposes.

In summary, I need to design a 3D scene of the campus using a 3D software tool (like 3DS Max for example) and then import this 3D campus on an Android device and be able to manipulate it (like highlight buildings or a certain route, showing shuttle buses traversing the campus).

I want to ask if this is doable using JPCT-AE, and I need an answer asap :(

After a long day of trials I have managed to load an .OBJ object which was less than 1Mb (Couldn't load bigger .OBJ)

Thank you for your replies :-)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11776
    • View Profile
    • http://www.jpct.net
Re: 3D Campus using JPCT
« Reply #1 on: November 04, 2014, 11:36:29 pm »
Yes, it is possible. You just have to keep in mind that you are on a mobile device with limited resources, which is the reason why you had problems loading larger OBJ files. The memory available to the VM depends on the Android version, on the vendor and on the android:largeHeap setting in your AndroidManifest.xml. In general, OBJ is the most memory intense format to load, because it's all ASCII. 3DS is usually less demanding. The best way to load an object is to use serialized objects where you load the object with a desktop application using desktop jPCT and write it to disk in an optimized format: http://www.jpct.net/wiki/index.php/Differences_between_jPCT_and_jPCT-AE#Performance_and_memory_issues.2C_serialized_objects
Keep in mind that, regardless of which way you are choosing, the amount of memory that an object uses after loading is always the same.
Some more hints for reducing memory usage: http://www.jpct.net/wiki/index.php/Reducing_memory_usage
And, maybe helpful as well, as scene exporter for Blender: https://github.com/andresjesse/jpctblend