I am fairly new to OpenCASCADE and I am trying to understand the process of creating a simple 3D viewer web application, similar to the WebGL sample provided in the OCCT source. I've been reading a lot about building OCCT with Emscripten, but i can't get it to work properly (i also can't get the sample to build) and I feel I am missing some basic knowledge, but I am not really sure, what exactly. If I want to make use of Emscripten, do I need to build OCCT with Emscripten (and therefore things like VTK, Freetype etc.), or would it be enough to build my project that references OCCT (that was built with CMake and Visual Studio)?
What I am trying to achieve:
I want to make a simple website that can load a STEP file and display it in a generic viewer. I am developing on Windows.
What I already got working:
I was able to build OCCT from source with Visual Studio and CMake. I included VTK and was able to successfully load a STEP file, convert it to VTK format and display it in the VTK render window. I have found examples of VTK used in the web and was thinking about using it too, but it's not a must if OCCT can achieve this goal natively.
I can't seem to find the right resources to learn how to get it to work, so even some pointers on where to start would be much appreciated! Ideally of course would be a list of steps i have to go through in order to get my already working code to work in a browser environment (preferably on Windows and by compiling to WASM).
Thank you in advance!