How to set an individual IGUIElement its transparancy?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
realmsinthemists
Posts: 28
Joined: Mon Mar 27, 2017 7:29 am

How to set an individual IGUIElement its transparancy?

Post by realmsinthemists »

And not all of the others which happens when you use the skin.
For my end result I am working on:
- Volume Voxel System
- Simple light weight physics engine
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: How to set an individual IGUIElement its transparancy?

Post by CuteAlien »

Some elements have setOverrideColor functions, thought not all (more in svn trunk version of Irrlicht).
Otherwise it's tricky. You could override the skin and check for your specific element (and call default-functions of default-skin otherwise).
Or you could copy the code of a gui-element and modify it in any way and create your own.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
realmsinthemists
Posts: 28
Joined: Mon Mar 27, 2017 7:29 am

Re: How to set an individual IGUIElement its transparancy?

Post by realmsinthemists »

CuteAline wrote:(more in svn trunk version of Irrlicht).
Does this mean it will be in the next (or the next after) release?
For my end result I am working on:
- Volume Voxel System
- Simple light weight physics engine
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: How to set an individual IGUIElement its transparancy?

Post by CuteAlien »

Yes, svn (https://sourceforge.net/p/irrlicht/code/HEAD/tree/) is what Irrlicht 1.9 will be. But you can also just use it now (I work with svn version all the time in my projects).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply