How to Use the "Corner" TexCoord?

47 views
Skip to first unread message

Lingyi Kong

unread,
Oct 27, 2022, 8:53:15 AM10/27/22
to alembic-discussion
Hello there. i have a very stupid question(i think).
i want to draw the alembic file in Opengl with texture.

some alembic file with texture coordinate store in points are OK. the number i get from            "schema.getUVsParam().getExpandedValue(ss).getVals()->size()" is equal to the point number. i just pass them to opengl then draw the mesh (i know it's wrong when a point share texCoord between another faces)

for now i just gather all the texture coordinates from one point and add them together then get the average coordinate. . the uv seams is very ugly.

so how can i use these vertex uv(we call this corner "vertex" in Houdini)?
i need duplicate these point which shared uv?

sorry for my stupid quesion... i have tried my best.T T

Lingyi Kong

unread,
Nov 17, 2022, 9:44:08 PM11/17/22
to alembic-discussion

for now. i just use face indices attribute to create vertex for every triangle.  it's pretty stupid. waste a lot of memory but works..
how can i use index buffer for rendering?
Reply all
Reply to author
Forward
0 new messages