Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening mesh stream .fb file. #1

Open
mdovgialo opened this issue Aug 31, 2020 · 0 comments
Open

Opening mesh stream .fb file. #1

mdovgialo opened this issue Aug 31, 2020 · 0 comments

Comments

@mdovgialo
Copy link

Hello,
I'm amazed by this tech and would love to experiment with it on my own.

I was experimenting with your viewer and files. Thanks to the simple viewer I've managed to properly load and view using my little custom viewer in Unity still frame from 16 layers (ply files) and PNG atlas. But I couldn't get video to work.

How do I open fb file to view the series of meshes needed for video viewing? As far as I understood it's flatbuffers serialized object, and seems that to open it I would need to have a class definitions source file (which could be compiled to python, js, c# etc). Is it available?

As you've suggested I tried to play with the viewers using Chrome debug tools. I've tried to extract meshes from web video viewer by stopping code in this lines:

 if (b != this.lastGopIndex_) {
            if (0 == this.scene.children.length)
                for (var d = 0; d < a.length; ++d) {
                   > var e = new THREE.Mesh(a[d].geometry,this.material_);
                    e.frustumCulled = !1;
                    this.scene.add(e)

and then using using THREE.PLYExporter on the created meshes.

Code is minified so it's kinda hard to find anything, extracted meshes are all perfectly spherical layers and have the same size. Seems like some sorts of displacement map needs to be applied, which I couldn't find. Maybe you have a tool to convert fb mesh stream to separate ply files which you could share? If so I would appreciate it.

Is the coder to create meshes and atlases is going to be released to public one day?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant