... between day and night. How to do that? I tried changing the night tile and thought it could be done this way but it doesn't let me change it ~~ it's stubbornly taking the same tile everytime...
So is there any way to do this without that night tile?
Or how do I get a really clean animation between day and night?
What engine are you using?
I use my own engine, based on Elysium Debugged...
Unless you do a DX8 hybrid or maybe Direct3D7 can do transparencies?
So DirectX8 could do that? Is that right?
With DX8 you could draw a rectangle over the screen that's slightly transparent to change the color of the map possibly and when changing you just fade the rectangle out so it becomes invisible, changing night into day.
I may write a tutorial for it.
I_I' But in my moddirectX there's some method called DD_Backbuffer.drawbox and DD_backbuffer.setfillstyle ...
Why don't they work? I put them into the Sub Night while commenting out the usual way of blitting the night tile...
Then it doesn't do anything, even if that drawn box should be filled pure black I__I
That's if I set the fillstyle to transparent of course...
DX7 doesn't support transparency...unless you do alpha blending.
Posts: 2,742
Threads: 115
Joined: Jun 2006
Reputation:
0
DirectDraw7 doesn't support alpha blending.
Do a DD and D3D hybrid and it works fine.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
If it doesn't support transparency, how comes that with that night tutorial (with that blue bmp) creates a blue overlay instead of a completely blue screen?
It uses a horrrrible method. Brings me from 32 to 2 FPS on an ED2 game I used to play.
I think he wants it to fade in to dark then out to light when day / night comes in...
Posts: 2,742
Threads: 115
Joined: Jun 2006
Reputation:
0
It's got that horribly GetDC code.
You could edit that to alpha blend, but it's sooo much quicker to do a D3D overlay.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?