Has anyone gotten decals to work?

Iceman1540

02-11-2008 17:07:07

I can't seem to get decals to work, I tried

mHydrax->getDecalsManager()->add("Foam.png")->getSceneNode()->setPosition(0, 0, 0);

I can see the decal, but when it's in view of the camera the water turns black.

Xavyiy

02-11-2008 17:18:25

I've tried decals and works for me, try to set the position with:

Decal::setPosition(Ogre::Vector2).

Xavi

Iceman1540

02-11-2008 23:23:02

I tried
Hydrax::Decal *NewDecal = mHydrax->getDecalsManager()->add("Foam.png");
NewDecal->setPosition(Ogre::Vector2(0,0));

But when I look at the decal the water turns black no render.

Can you post the way you have gotten them to work?
Thanks

Xavyiy

02-11-2008 23:27:57

I think the problem if your texture, try with a png full alpha channel in the image borders(Just the image in the middle of the png, but no colours on the sides).

Xavi

Iceman1540

02-11-2008 23:45:31

You are correct.
Thank you
awesome plugin