Fix Raw path of Min3D examples

1966 read •  •  Posted in  •  Share


Continuing with testing of 3d android frameworks, I founded this repo:

https://code.google.com/archive/p/min3d/

After some hours, I could compile and run in my android device:

videotutorial

This repo is awesome but it’s examples has some points “strange” that I fixed :D

min3d.sampleProject1:raw/camaro_obj

min3d.sampleProject1:raw/camaro_obj is the path of obj file. When I tried to run this examples I had this problem :

ERROR No package identifier when getting value for resource number 

This is because string min3d.sampleProject1 must be the initial package that was setting at the creation project moment. After some hours, and a little experience in android i could see that this string min3d.sampleProject1 is related to path for raw files insise res folder.

So I created a util class to get this path:

And worked perfectly :D

Android Studio project ready to use: https://github.com/jrichardsz/android-3d-templates/tree/master/002-TestMin3D

HTH.

System.exit(0)


Until the next,
JRichardsz

JRichardszs-signature