Ogre3d transparency colliding with Wayland composing

What it says on the tin: a place to discuss proposed new features.
User avatar
paul424
Orc
Posts: 423
Joined: Thu May 24, 2012 7:16 pm
x 25

Ogre3d transparency colliding with Wayland composing

Post by paul424 »

Ogre Version: : 13 6 5
Operating System: :Archlinux:
Render System: :OpenGL3+
Window System: Wayland

As in title, just look at the pictures:

Image
Image
First I thought this is a problem of my Fog shader under Wayland. But no, look at the Hand which also recieves alpha transparency! It is also screwed!
Could someone do something with this ? Afaik It is not possible to disable the composition entirely under Wayland ( under X11 it's possible ) .....
I would love my game works also under Wayland :)....

rpgplayerrobin
Bugbear
Posts: 806
Joined: Wed Mar 18, 2009 3:03 am
x 468

Re: Ogre3d transparency colliding with Wayland composing

Post by rpgplayerrobin »

Isn't it just because the window or framebuffer is created with an alpha channel?
Try to create it without an alpha channel.

OR

You could use this on your main viewport:
viewport->setBackgroundColour(ColourValue(0.0f, 0.0f, 0.0f, 1.0f));

OR

You could make sure your fog shader actually return 1 in alpha.