android - How to change the size of the video in ARMovieProj (ARToolkit) -


i new artoolkit , try use armovieproj examples (android studio projects). https://github.com/artoolkit/artoolkit5/tree/master/androidstudioprojects/armovieproj

i able change nft marker in marker.dat

# 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/markerkanji nft filter 15.0 

also video displayed in armovieactivity

 private static final string moviefile = "data/myvideo.mp4"; 

but problem size of video when appears on screen. it's small.

screenshot

i tried changing sizes saw in project unable enlarge video. can't find solution online either.

the video 1280*720.

does knows how do?

actually video projected using perspective projection theory. means creates matrix used projection of video on marker. so, have find line in code scale factor used, in below code snippet.

 filename : armovie.cpp // have new pose, set that. arglcameraviewrhf(markersnft[i].trans, markersnft[i].pose.t, 0.25f /*view_scalefactor*/); // tell dependent objects update. //armarkerupdatedposenotification 

all have change last arg of function call according need i.e. (0.25f /view_scalefactor/) , build jni part.


Comments