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

Virtualizer and storing models (.ser) on SD card

(1/2) > >>

AceGIS:
Hi Egon,

Just wondering if you could show an example of using the virtualizer for transferring texture data to SD card. I would also like to store my models on SD card, is this a matter of using the correct path to the SD card??

Thanks in advance.

EgonOlsen:
It's pretty simple to use the Virtualizer. Create it, assign it to the TextureManager and then call TextureManager.virtualize(<Texture>); on textures that you want to process.

Do load something from the sd directly, you have to know the path and you have to create an inputstream to access it. Depending on where you stored it, you might need additional rights to access it. Check out the Android SDK documentation for more information.

AceGIS:
Thanks Egon. Still working on a large GIS modelling project for real world 3D data and augmented reality. Will let you know more when closer to completion. Thanks again.

AceGIS:
Hi Egon,

I have implemented the virtualizer for my textures but I am getting the following in my logcat.


--- Quote ---Texture loaded...65536 bytes/128*128 pixels!
Stored texture data on disk!
Storage state : error
--- End quote ---

What does the error mean?

EgonOlsen:
No idea. It's nothing that jPCT-AE prints out. Try to add

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

to your AndroidManifest.xml

Navigation

[0] Message Index

[#] Next page

Go to full version