CAnimSprite Class with Alpha-Blending(Transparency)

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.
Emil_halim
Posts: 518
Joined: Tue Mar 29, 2005 9:02 pm
Location: Alex,Egypt
Contact:

Post by Emil_halim »

Becouse DX9 does not allow you to use transparent image and blending operation at the same time but with OpenGl you can,the funny thing is DX7 allows you to make it but DX9 not !!!!!!
very strange!!!!!!!!????????????

so Irrlicht Material types do not do it,if you want it do it yourself.

in blending stuff you could specify the Alpha value of entire Image or model,but With Vertex-Alpha you could specify more than Alpha value for each vertex of Model.
DaChief
Posts: 45
Joined: Tue Nov 01, 2005 9:02 am
Location: Switzerland

Post by DaChief »

?!?!?!?! LOL ?

if it is so, i'll change the renderType of my project to OpenGL.. now i have a good reason for it ^^

my project also runs much better with OpenGL:
DX8&9 around 1400 fps
OpenGL around 1700fps

it's a 2D game, so don't be afraid, if you don't have such framerates :wink:

the only thing in OpenGL is, that i saw some strange things happen with it on some systems.
At my workstation the Images are cutted off at the Top and at the Left.
At a friends system, the hole screen looks blurry...

Maybe i should update the Engine. Probably this is a bug of the Engine i'm not sure...

so it looks like, the Vertex-Alpha only works with the Sprite Class and not with 2D-Images.. well.. whatever ^^

thx for these wise words, now i'm really enlightened ^^
IrrLicht v0.14
Audiere Sounds-API v1.9.3
Current Project: KoulesXD
Emil_halim
Posts: 518
Joined: Tue Mar 29, 2005 9:02 pm
Location: Alex,Egypt
Contact:

Post by Emil_halim »

you are welcome.
DaChief wrote: it's a 2D game, so don't be afraid, if you don't have such framerates :wink:
hay , i like 2d very much ,2d is my project by now, i will release Magic2d
ver 0.4 for Irrlicht0.14.0 tonight ,or tomorrow.
DaChief
Posts: 45
Joined: Tue Nov 01, 2005 9:02 am
Location: Switzerland

Post by DaChief »

hmm.. your Magic2d API looks very nice...
if i have to change the project to opengl i take a look at it for sure...

but first, i want to finish the running stuff. after everything works, i'll try your API.. it looks like the solution for much problems i had and maybe will have ^^

so i can use the new Irrlicht version as well
-> if(everything.works) me.happy=true; // ^^

Here are some screens of my running project:
Screenshot 1
Screenshot 2
Screenshot 3
Screenshot 4
Screenshot 5
Screenshot 6
Screenshot 7
Screenshot 8

-> IrrForum: http://irrlicht.sourceforge.net/phpBB2/ ... php?t=9975
IrrLicht v0.14
Audiere Sounds-API v1.9.3
Current Project: KoulesXD
Emil_halim
Posts: 518
Joined: Tue Mar 29, 2005 9:02 pm
Location: Alex,Egypt
Contact:

Post by Emil_halim »

wow ,great work , but is this 2d work or mixing 2d with 3d?
DaChief
Posts: 45
Joined: Tue Nov 01, 2005 9:02 am
Location: Switzerland

Post by DaChief »

the hole game is based on simply draw2dimage.
so the backgrounds aren't animated.

And yes, i'm quite content with our project. yeah, it's the work of two ^^

whatever, maybe we shouldn't discuss that in this Forum.
We can continue that in the Project Announcements Forum.. here ^^
IrrLicht v0.14
Audiere Sounds-API v1.9.3
Current Project: KoulesXD
Post Reply