Help! I want to show game logo gradually in a dark background

Started by
5 comments, last by shaolinspin 13 years, 5 months ago
How can I do to realize this? I've come up with three ideas:
First I can load different bitmaps frequently so as to flash each frame;
Second I can use AlphaBlend technique to add different color to this logo;
Thirdly I can use fog to clarify a logo gradually.

The question is: I can't fluently master this techniques, Meanwhile, I don't know these lots of macros.

Forgive me, I am a newcomer using DirectX. I've only learn it for three months.

So please help me with my work! Thanks.

[Edited by - jiangcaiyang on November 3, 2010 5:06:02 AM]
Advertisement
Not really sure what effect you're going for? Do you want it to fade in and out?
If so I'd just write a pixel shader and change its alpha value over time. Not sure if that's the best way about doing it though.
Use 'lerp' in the pixel shader to interpolate between the texture and the background colour of your choice. You can do this in the fixed function pipeline too, using D3DTOP_LERP.
Yes, that's what I am going for. I want to fade in and fade out.
Forgive me for my poor English, but I really need this effect.




Thank ET3D for your advice, I think I should have a try.


By the way, Is it allowed to post screenshot in this forum. Hope to reply.
Quote:Is it allowed to post screenshot in this forum.


Yes.
I think you can just use BINK videos and make the logo with program like 3ds max and make the video in a BINK type with the BINK ToolKit, that's easy and give's you a better logo.
Use a textured quad with alpha blending, or use the ID3DXSprite interface which allows you to set an alpha value. Simply add a little increment to your alpha value each frame to fade in, then once it's at maximum subtract a little amount each frame to fade back out again until it's at zero.

This topic is closed to new replies.

Advertisement