[Ves] Kiwi transparent background
Aashish Chaudhary
aashish.chaudhary at kitware.com
Thu Oct 17 21:49:12 EDT 2013
Hi Jurre,
You will have to add blend attribute as well (vesBlend). The default blend
equation probably will work for you. Have a look at the vesBackground.cpp.
Let us know if you need any help.
- Aashish
On Tue, Oct 15, 2013 at 1: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, such
> that another Android layer (a camera view, in this case) can be displayed
> behind it.
>
> 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 changes the background color to solid red instead of
> transparency.
>
> How to achieve rendering on a transparent background with Kiwi?
>
> Regards,
> Jurre
> ______________________________**_________________
> Ves mailing list
> Ves at public.kitware.com
> http://public.kitware.com/cgi-**bin/mailman/listinfo/ves<http://public.kitware.com/cgi-bin/mailman/listinfo/ves>
>
--
| 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/20131017/7aab3a6d/attachment-0003.html>
More information about the Ves
mailing list