Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Hi.
Attached below is a simple use case that demonstrates the problem. In it, using preview, you can see the model navigating sequences. However, on the Hololens 2, the model doesn't show up in its default sequence (set by the setSection function, which returns, by default, the first sequence of the model), and is also not navigating through sequences with the help of the buttons.
Pretty much what is going on here is that I have a JSON object that specifies the sequence files inside an array, so it can be iterated in the experience. The iteration through this array is done by the forwardSection and backSection functions. Once the buttons are pressed, forwardSection/backSection is called, with setSection being called afterwards with the proper argument (the next/previous sequence number).
Has anyone encountered this before or knows what could be the reason why? Any help is appreciated.
Thank you!
Solved! Go to Solution.
Hello, I have an older version of Vuforia (without press buttons, still have the old ones) so I cannot fully test your experience. But I did notice a problem. For Hololens you need to upload the pvi files separately. To get the pvi files, take a copy of your pvz file and rename it, take off the .pvz extension and put zip. This turns it into a zip file. Unzip it and you'll find all your pvi files. Upload all the pvi files in Vuforia and everything should work.
I use a system where it reads the studioID of the button, which should match the name of the pvi file, and switches it to that one. That line of code looks like this:
$scope.view.wdg['model-1']['sequence'] = 'app/resources/Uploaded/l-Creo 3D - ' + name + '.pvi';
Hope that helps.
- Mark
Hello, I have an older version of Vuforia (without press buttons, still have the old ones) so I cannot fully test your experience. But I did notice a problem. For Hololens you need to upload the pvi files separately. To get the pvi files, take a copy of your pvz file and rename it, take off the .pvz extension and put zip. This turns it into a zip file. Unzip it and you'll find all your pvi files. Upload all the pvi files in Vuforia and everything should work.
I use a system where it reads the studioID of the button, which should match the name of the pvi file, and switches it to that one. That line of code looks like this:
$scope.view.wdg['model-1']['sequence'] = 'app/resources/Uploaded/l-Creo 3D - ' + name + '.pvi';
Hope that helps.
- Mark
Hey, Mark.
Great response, fantastic! Importing each .pvi file separately solved the issue.
Thanks a lot for your help!