You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having a problem accessing mesh normals, using RenderMesh::normals.data isn't working for me, is there an example available of the new technique in rendermesh-refactor branch? Here's the approach I'm using:
const size_t stride_bytes{render_scene.meshes[meshIdx].normals.stride_bytes()};
x = render_scene.meshes[meshIdx].normals.get_data()[faceVertIdxOffset + j];
y = render_scene.meshes[meshIdx].normals.get_data()[faceVertIdxOffset + j + stride_bytes];
z = render_scene.meshes[meshIdx].normals.get_data()[faceVertIdxOffset + j + 2 * stride_bytes];
P.S.
On dev branch I was accessing individual normal vec3 elements using
x = render_scene.meshes[meshIdx].facevaryingNormals[faceVertIdxOffset + j][0];
y = render_scene.meshes[meshIdx].facevaryingNormals[faceVertIdxOffset + j][1];
z = render_scene.meshes[meshIdx].facevaryingNormals[faceVertIdxOffset + j][2];
which was working very well
The text was updated successfully, but these errors were encountered:
On branch
rendermesh-refactor
I'm having a problem accessing mesh normals, using
RenderMesh::normals.data
isn't working for me, is there an example available of the new technique inrendermesh-refactor
branch? Here's the approach I'm using:P.S.
On
dev
branch I was accessing individual normal vec3 elements usingwhich was working very well
The text was updated successfully, but these errors were encountered: