nexus icon indicating copy to clipboard operation
nexus copied to clipboard

PLY format and alpha channel

Open ua4192 opened this issue 4 years ago • 2 comments

Hi.

First to say sorry if this is not the appropiate channel for raising questions. If it is not, please forward me the appropiate one and I will close this ticket.

My question is directly linked with PLY files that are turned into NXS files and after to NXS using nxsbuild and nxsedit commands. I am using PLY in its binary format.

As I have read, the PLY format has no specific property for alpha channel (only red, green and blue properties). I can change my PLY Exporter in order to create a new property and add alpha channel but my question is ¿Does your framework support ply files with RGBA or not?

In fact, from the PLYExporter and PLYLoader from THREEJS there is not currently support for alpha channel.

Looking into your src files at plyloader.cpp I have seen that you are using an extra vertex property named alpha.

I guess that simply exporting my ply files with this new property would be enough?

The modifications under PLYExporter are quite simple to enable this transparency support.

Again many thanks for your support.

Best regards

ua4192 avatar Dec 12 '19 07:12 ua4192

Yes alpha channel in color per vertex is supported, even in compression. It has been used sometimes for ambient occlusion.

If something doesn't work properly, contact me.

On Thu, Dec 12, 2019 at 8:29 AM Alex [email protected] wrote:

Hi.

First to say sorry if this is not the appropiate channel for raising questions. If it is not, please forward me the appropiate one and I will close this ticket.

My question is directly linked with PLY files that are turned into NXS files and after to NXS using nxsbuild and nxsedit commands. I am using PLY in its binary format.

As I have read, the PLY format has no specific property for alpha channel (only red, green and blue properties). I can change my PLY Exporter in order to create a new property and add alpha channel but my question is ¿Does your framework support ply files with RGBA or not?

In fact, from the PLYExporter and PLYLoader from THREEJS there is not currently support for alpha channel.

Looking into your src files at plyloader.cpp I have seen that you are using an extra vertex property named alpha.

I guess that simply exporting my ply files with this new property would be enough?

The modifications under PLYExporter are quite simple to enable this transparency support.

Again many thanks for your support.

Best regards

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cnr-isti-vclab/nexus/issues/67?email_source=notifications&email_token=AAUDV265SM3RIOIDUX6Z7WLQYHR53A5CNFSM4JZ2FUGKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H767THQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUDV266G5YQCYUG5XHSZZLQYHR53ANCNFSM4JZ2FUGA .

ponchio avatar Dec 12 '19 15:12 ponchio

Many thanks.

I will keep you informed.

Best regards

ua4192 avatar Dec 12 '19 15:12 ua4192