why it diffent result between effect

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
koller202
Posts: 143
Joined: Tue May 08, 2007 4:53 am
Location: Thailand

why it diffent result between effect

Post by koller202 »

i use billboard and set

Code: Select all

effect->setMaterialType(video::EMT_TRANSPARENT_VERTEX_ALPHA);
my picture is bmp and set blackgound black

result blackgound still can see in game

but i use in ParticleSystemSceneNode

Code: Select all

  effect->setMaterialType(video::EMT_TRANSPARENT_VERTEX_ALPHA)
my picture is bmp and set blackgound black

result blackgound black is removed ( same in example special effect )

why different
________
Vaporizer Review
Last edited by koller202 on Thu Feb 17, 2011 1:17 am, edited 1 time in total.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

If you use vertex alpha you have to set the vertex colors to some alpha value != 255. That's what is done in the particle renderers.
koller202
Posts: 143
Joined: Tue May 08, 2007 4:53 am
Location: Thailand

Post by koller202 »

Image

front is

Code: Select all

effect->setMaterialType(video::EMT_TRANSPARENT_VERTEX_ALPHA);
use billboard
and setcolor 0,255,255,255

behind is ParticleSystemSceneNode use EMT_TRANSPARENT_VERTEX_ALPHA

same picture and same format
________
MERCEDES-BENZ OM603 SPECIFICATIONS
Last edited by koller202 on Thu Feb 17, 2011 1:17 am, edited 1 time in total.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Do you have lighting disabled?
koller202
Posts: 143
Joined: Tue May 08, 2007 4:53 am
Location: Thailand

Post by koller202 »

Image

if disable

Code: Select all

effect->setMaterialFlag(video::EMF_LIGHTING, true);
i use 1.3.1 test in dx and opengl same result
________
HOTBOX VAPORIZER
Last edited by koller202 on Thu Feb 17, 2011 1:17 am, edited 1 time in total.
Virion
Competition winner
Posts: 2149
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

disable should be

effect->setMaterialFlag(video::EMF_LIGHTING, false);
My company: https://kloena.com
My profile: https://zhieng.com
My co-working space: https://deskspace.info
My game engine: https://kemena3d.com
koller202
Posts: 143
Joined: Tue May 08, 2007 4:53 am
Location: Thailand

Post by koller202 »

pic 1 effect->setMaterialFlag(video::EMF_LIGHTING, false);
pic 2 effect->setMaterialFlag(video::EMF_LIGHTING, true);

i see code niko in demo tutorial

if addParticleSystemSceneNode he use EMT_TRANSPARENT_VERTEX_ALPHA and can remove blackgound

but if billboard he use EMT_TRANSPARENT_ADD_COLOR all demo

and if EMT_TRANSPARENT_VERTEX_ALPHA he use fireball.bmp
EMT_TRANSPARENT_ADD_COLOR he use fire.bmp

why ?
thank you
________
IMPERIAL (AUTOMOBILE)
Post Reply