Skip to content

Add packed normals#31

Open
jamierobertson1 wants to merge 1 commit intovsg-dev:masterfrom
jamierobertson1:packed-normals
Open

Add packed normals#31
jamierobertson1 wants to merge 1 commit intovsg-dev:masterfrom
jamierobertson1:packed-normals

Conversation

@jamierobertson1
Copy link
Copy Markdown
Contributor

Adds support for normals packed into a 32 bit integer (10 bits each component). Currently only used when the ASCII Reader reads a sufficient number of fields (assumes x,y,z,r,g,b,nx,ny,nz ASCII format), if normals are detected then the phong shader is automatically used.

This does increase the memory overhead a bit when generating data sets slightly due to the increased size of vsgPoints::PackedPoint.

Ideally there could be different PackedPoint variants depending on formats of points (e.g. xyz, xyzrgb, xyzn and other combinations of colours, normals etc, possibly intensity also).

Tested on windows.

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

Successfully merging this pull request may close these issues.

1 participant