nexus icon indicating copy to clipboard operation
nexus copied to clipboard

Applying per vertex color after load in THREE js

Open ascandal opened this issue 5 years ago • 2 comments

Assuming the initial loaded nxs and /or nxz model does not have color. How can I update the color attribute to apply a color value for each vertex after the model is loaded in THREE js?

ascandal avatar Jul 01 '19 21:07 ascandal

I'm having this problem too. Neither on threejs nor on nxsview I can view per vertex colors. Any updates since then?

vitorkrau avatar Aug 22 '19 22:08 vitorkrau

Sorry for the delay, missed this issue.

ascandal: you cannot change a buffer which is not allocated. Simply add a dummy color attribute to the model (you will need to use ply format, obj does not supports it).

vitorkrau: nxsedit will tell you what is in the nexus. The color attribute must be present in the original model... in case send me a sample (and the command line you used to process it).

ponchio avatar Nov 10 '19 15:11 ponchio