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
How we use indices when vt or vn index is omitted. #61
Comments
You can just fill dummy value(or compute geometric normal) when https://github.com/lighttransport/nanort/blob/master/example/main.cc |
Thank you for reply! I want to know the way when some face element is complete format i/j/k and another is omitted fomat i//k in same material group, too. Is it the improbable? |
First, you should investigate .obj specification so that your .obj data is correct or not. Then, it would be better to take a look at @chrisliebert's https://github.com/chrisliebert/sdlgl3-wavefront |
I found obj specification. I read renderer of chrisliebert too. I very thank you for your replies. |
Cool! > spec. And you can send PR of reporting error for such an inconsistent/illegal input. |
Current balance: 0.000000 ETH |
@syoyo this bounty has no funds yet, we can allocate some SNT to it if its still a valid bounty. |
Ah, the posted bounty was just an testing purpose and invalid. We can remove it and allocate new valid bounty. |
Hi syoyo.
Thanks for your project. I have referred your code for my project MGRRenderer.
I have one question for it.
In updateVertex(), you have not registered the normal value to normals in case normal index is omitted such as 1//3, this is same as textures, therefore it looks that indices exist only for positions but not for normals or textcoords in mesh_t
Therefore I have no way to use glDrtawElements of OpenGLES2 when normal and textcoords do not exist.
The text was updated successfully, but these errors were encountered: