Problem with displaying 2d image

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
REAPER

Problem with displaying 2d image

Post by REAPER »

Can I use the blend modes with 2D textures?
And HOW???
keless
Posts: 805
Joined: Mon Dec 15, 2003 10:37 pm
Location: Los Angeles, California, USA

Post by keless »

did you look at the 2D graphics example that came with the SDK?
a screen cap is worth 0x100000 DWORDS
REAPER

Problem with displaying 2d image

Post by REAPER »

In 2d graphics example I can see only alpha blending effect. How about others?
marter

Post by marter »

yo hi,

the tutorials on SDK is good to look what the engine can, BUT I missing details for programming .. this engine is very good .. but only for 3D profi's or people which intensively used (learned) .. I want read tutorials and make a little 3D prog .. sorry .. IRRLICHT is great .. but I missing "real" tutorials......


my 2cents of n00b
keless
Posts: 805
Joined: Mon Dec 15, 2003 10:37 pm
Location: Los Angeles, California, USA

Post by keless »

by "real" tutorials, do you mean tutorials on general 3D programming? If so: http://www.gametutorials.com

but the example programs given with the SDK are "real" tutorials, on the subject of how to use IrrLicht.
a screen cap is worth 0x100000 DWORDS
marter

Post by marter »

*g*

use sdk of cbuilder or delphi or vc++ or php or html .. on all you find code snippets for any command .. the tutorial for irrlicht is to short .. the api is good but to big .. a n00b never check it ..


MORE TUTORIALS !! :wink: :wink: :wink:
REAPER

Problem width 2d image

Post by REAPER »

Viewing engine source I understand that other effects works only in 3d mode.
WHY the author of such fine engine implement materials only for 3d. We can use it with 2d.
For example I have an image with black background to draw. I make it transparent (alpha blending), but it still has pixels near black. We can use this code (in directX):
pID3DDevice->SetRenderState(D3DRS_SRCBLEND, D3DBLEND_SRCALPHA);
pID3DDevice->SetRenderState(D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA);

pID3DDevice->SetRenderState(D3DRS_SRCBLEND, D3DBLEND_ONE);
pID3DDevice->SetRenderState(D3DRS_DESTBLEND, D3DBLEND_ONE);

I think that Irrlicht materials will do the same if we can use them in 2d mode.

You can see this effect in game Hegemonia - Legions of Iron. Look at game menu and to the source image in game dir and you will understand what I mean.
Post Reply