Is there a way to export an image with an alpha channel so that the image background would be transparent?
(Render to File feature?)
Thank you for this great software.
MattG
Exporting image with alpha channel (matte)
Re: Exporting image with alpha channel (matte)
Not directly sadly. With the default version, you could define a funky color as background (purple for instance) and without any gradient. This way it would be easy to change this color to a transparent one with any image edition software (Paint.net, Photoshop, etc.).
Another programmatic option (but I'm not 100% sure it will work) would be to change the alpha component of the OpenGL 'clear' color to 0 (transparent). You'll simply have to change the call to glClearColor in ccGLWindow.cpp ... and compile CC again ;).
Another programmatic option (but I'm not 100% sure it will work) would be to change the alpha component of the OpenGL 'clear' color to 0 (transparent). You'll simply have to change the call to glClearColor in ccGLWindow.cpp ... and compile CC again ;).
Daniel, CloudCompare admin
Re: Exporting image with alpha channel (matte)
Hi Daniel, thank you for these interesting options. My skills are however very basics so I don't know how I could edit this OpenGL parameter.
Perhaps the transparency option could be a new feature request - or even inserted into an Image export plugin?
MattG
Perhaps the transparency option could be a new feature request - or even inserted into an Image export plugin?
MattG
Re: Exporting image with alpha channel (matte)
Hello!
I was also trying to get a transparent background - zero programming abilities.
Found a way that works ok through Photoshop.
Choose a vibrant color as a background from CC , and render to file.
1. open photoshop: open image -> unlock the image layer and make a new layer underneath it.
2. Open the 'Select' menu from the top bar and choose the color range. Use the eye drop tool from the pop-up window, choose the background color, and use max fuzziness.
3. Now the background is selected - hit delete, and you will have just the scan data on that layer. On the layer you made after opening photoshop, you can use the paint bucket tool or insert any background you need. Alternatively, you can keep it empty and quickly export it as a png to keep the transparency.!
Hope this is helpful,
D
I was also trying to get a transparent background - zero programming abilities.
Found a way that works ok through Photoshop.
Choose a vibrant color as a background from CC , and render to file.
1. open photoshop: open image -> unlock the image layer and make a new layer underneath it.
2. Open the 'Select' menu from the top bar and choose the color range. Use the eye drop tool from the pop-up window, choose the background color, and use max fuzziness.
3. Now the background is selected - hit delete, and you will have just the scan data on that layer. On the layer you made after opening photoshop, you can use the paint bucket tool or insert any background you need. Alternatively, you can keep it empty and quickly export it as a png to keep the transparency.!
Hope this is helpful,
D
-
- Posts: 3
- Joined: Fri Feb 15, 2019 11:01 am
Exporting Mesh with Colors to GLB File
Process to export a 'Poisson reconstruction' mesh in color to the GLB format
format used for viewers:
GLTF Viewer-Model Editor-Babylon.js Sandbox-or others
-CloudCompare: mesh export in .PLY
-Conversopn from PLY to GLB using the only converter I've found that preserves cloud colors:
https://imagetostl.com/fr/convertir/un- ... ply/en/glb
Have fun !
format used for viewers:
GLTF Viewer-Model Editor-Babylon.js Sandbox-or others
-CloudCompare: mesh export in .PLY
-Conversopn from PLY to GLB using the only converter I've found that preserves cloud colors:
https://imagetostl.com/fr/convertir/un- ... ply/en/glb
Have fun !