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

Import .obj files in C++ version of VTS browser #13

Closed
shrikant-panchal opened this issue Apr 3, 2020 · 2 comments
Closed

Import .obj files in C++ version of VTS browser #13

shrikant-panchal opened this issue Apr 3, 2020 · 2 comments

Comments

@shrikant-panchal
Copy link

I observed that the vts-browser-js allows users to import models in .obj format using the ModelOBJ library.
Could you please suggest, which library/API should be used to import the model in vts-browser-minimal-cpp?

Any help would be greatly appreciated!

@malytomas
Copy link
Contributor

Simple OBJ models can be loaded in vts-browser-cpp.

The GpuMeshSpec in the vts-browser library has constructor that parses an obj from memory buffer:

explicit GpuMeshSpec(const Buffer &buffer); // decode obj file

Be warned, this function can parse simple OBJ files only.

The Mesh class in vts-renderer library can load it into gpu memory:

void load(ResourceInfo &info, GpuMeshSpec &spec,

(Apologies for late reply, I did not notice this issue since I am not a maintainer for this repository)

@malytomas malytomas transferred this issue from melowntech/vts-libs Jun 3, 2020
@shrikant-panchal
Copy link
Author

Thank you so much Tomos!
It is definitely helpful!

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

2 participants