Android ARToolKit - Changing the reference images in the NFT sample project? -
good day everyone. i've been tinkering artoolkit , sample android studio projects see 1 can modify purpose. opened nftbookproj
, it's 1 using pinball.jpg
, places animated propeller plane along 3d axis in origin of image.
i noticed nftbookproj/nftbook/src/main/assets/datanft/
directory had pinball.iset
, pinball.fset
, , pinball.fset3
files. made own image (with definite features, high resolution, high dpi , all) , using the methods specified in tutorial, created own set of reference_1.iset
, reference_1.fset
, reference_1.fset3
files. placed 3 files in same folder pinball
files are.
i checked activites , classes find out lines have change make app reference own reference
files instead of pinball
ones. wasn't in of classes found markers.dat
file under /assets/data/
folder , looked this:
# number of markers 1 # entries each marker. format is: # # name of pattern file (relative file) # marker type (single) # marker width in millimetres (floating point number) # optional tokens: # filter [x] enable pose estimate filtering preceding marker # x (optional) specifies cutoff frequency. default # value ar_filter_trans_mat_cutoff_freq_default, # @ time of writing, equals 5.0. # blank line ../datanft/pinball nft filter 15.0
i changed ../datanft/pinball
../datanft/reference_1
, compiled project, ran on tablet.
however, when ran code, wasn't reacting image made , when checked pinball image, worked. means wasn't able change image refer to.
i triple checked classes couldn't see indicates there pinball image should used. dead end stumps me because no longer know look.
has had luck in changing reference image in artoolkits nftbookproj android? or lead appreciated. thanks!
found it. in nftbookapplication
class, says there if file(s) in assets folder changed, should update assets folder, should update version code in manifest.
if aren't going upload app google play store, can update 1 on manifest , remove versioncode
, versionname
lines in build gradle file. if don't, version info in gradle file override 1 in manifest. can use version codes in gradle file if you're okay spending minute or 2 on when have sync it.
Comments
Post a Comment