top of page

Unity Scene Exporter

Presenting my Unity Scene Exporter, the culmination of my efforts during the autumn semester of 2023. Enrolled in a graphics course, I delved into WebGL, mastering the creation of 2D and 3D renderings using low-level graphics code and JavaScript. Inspired by my coursework, I embarked on a journey to develop a tool capable of exporting scene data from Unity, encompassing vital information such as mesh data and textures, and translating it into a dynamic 3D rendering on a webpage. To achieve this feat, I delved into Unity's object storage mechanisms, crafting a custom Unity editor window to seamlessly convert scene game objects into a comprehensive JSON file. Subsequently, leveraging insights from both professor-provided lecture materials and my own class projects, I engineered WebGL and JavaScript code to parse the JSON data and render a one-to-one representation of the Unity scene. Furthermore, I meticulously crafted shader code employing Phong Lighting and Phong Shading techniques to enhance the scene's visual fidelity. To bring this project full circle, I developed a Python script to launch a local server and webpage, empowering users to navigate the scene dynamically and showcase their creations.

bottom of page