Decals bug?

vhpgomes

06-12-2008 14:42:52

I'm not sure if this a bug but I found out that if you hide a decal with:

Decal::setVisible(false);

and then tries to show it again with:

Decal::setVisible(true);

it will only render whenever you move the camera.

I was doing something like this in my code:

Decal::setVisible(true);
Camera::yaw(Radian(0.000000001));


Found it easier to hide/show decals using the

Decal::setTransparency(0); // to hide
Decal::setTransparency(1); // to show

Xavyiy

06-12-2008 15:23:36

I'm going to check this as soon as I can, thanks for the bug report.

Xavi

Xavyiy

07-12-2008 21:42:52

Hope this solves the issue:
http://modclub.rigsofrods.com/xavi/DecalsFix.rar

Tell me if it fixes the bug!

Xavi