-
Notifications
You must be signed in to change notification settings - Fork 389
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
GeomID, PrimID in Pathtracer Tutorial #457
Comments
The Embree API supports geometries (such as triangle meshes) and primitives inside these geometries (such as triangles inside a triangle mesh). You attach geometries to Embree scenes, and the slot it got attached corresponds to the geometry ID returned. The n'th triangle has primitive ID of n. |
I have two associated problems/ideas in mind: |
|
Regarding 2.) use case: |
You could change the OBJ loader to create a mesh for each object. Have a look at the obj_loader.cpp and execute flushFaceGroup at the places you want. |
I am trying to figure out, where and how geometry IDs and primitive IDs are assigned in the Tutorial Code (specifically the pathtracer tutorial).
Could someone please help me to understand how a read .obj file with a single mesh ends up with hundreds of primitive IDs and thousands of geometry Ids?
All the best and thanks,
Tobias
The text was updated successfully, but these errors were encountered: