[Ves] [vtkusers] Kiwi transparent background

Aashish Chaudhary aashish.chaudhary at kitware.com
Tue Oct 15 12:45:56 EDT 2013


Hi Jurre,

You want to use ves mailing list for this question. You are making the
background transparent so that another android layer or something shows up
behind it?

- Aashish



On Tue, Oct 15, 2013 at 12:30 PM, Jurre Hanema <jurre at stack.nl> wrote:

> Hi
>
> I am developing an app based on the KiwiViewer code. Objects should be
> rendered on a transparent background, instead of the standard blue one.
>
> To achieve this, I have modified the function declaration and definition
> of vesKiwiBaseApp::**setBackgroundColor() such as to expose the
> alpha-argument of vesRenderer::**setBackgroundColor():
>
> void vesKiwiBaseApp::**setBackgroundColor(double r, double g, double b,
> double alpha)
> {
>   this->Internal->Renderer->**setBackgroundColor(r, g, b, alpha);
> }
>
> In KiwiNative.cpp, I can now call app->setBackgroundColor() as follows:
>
> bool loadDataset(const std::string& filename, int builtinDatasetIndex)
> {
>   // ...
>   app->setBackgroundColor(255, 0, 0, 0);
>   // ...
> }
>
> Alas, this does change the background color to solid red instead of
> transparency.
>
> How to achieve rendering on a transparent background with Kiwi?
>
> Regards,
> Jurre
> ______________________________**_________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/**
> opensource/opensource.html<http://www.kitware.com/opensource/opensource.html>
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_**FAQ <http://www.vtk.org/Wiki/VTK_FAQ>
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/**listinfo/vtkusers<http://www.vtk.org/mailman/listinfo/vtkusers>
>



-- 
| Aashish Chaudhary
| R&D Engineer
| Kitware Inc.
| www.kitware.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ves/attachments/20131015/fb1b1794/attachment.html>


More information about the Ves mailing list