*Semester 2 W2 | Coding Experimentation (File corruption)
- Soo Zhi Jing
- Nov 28, 2020
- 2 min read
Due to the slight change of scheduling, coding and testing is brought forward. My task here is to figure out how to play transparent video and allowing that video to play when hand tracking is approaching that trigger point. While I was looking through tutorials to learn how to do it, there was this sample scene that I could download and learn from it. Turns out I imported it wrongly as it was another version of Unity. Hence, the file I opened with that sample scene corrupted my original file that was already coded with hand tracking. I was in panic and tried to fix it, I browsed a lot of tutorials to find out how to code everything again but to no avail. I resorted to asking for external help, which was Minken, a lecturer in our college whose unity game developing knowledge is high.
I scheduled a time to meet through video call with him and discussed the whole process. I recorded the session too in case I forget what he taught me that day. During the session with him, he requested control and guided me through.
During the session I learnt how to insert PNG sequence to trigger video on unity directly. This way it runs faster because a video file typically takes up more space within the project. The next thing I learnt is to use box colliders to trigger interaction instead of raycast. The trick is to attach the box collider to the oculus hand and make the interactables to connect with the triggers. After the session, I understood the mechanics more and I could gage what I needed to do afterwards.
Comments