| Mirage Source http://www.miragesource.net/forums/ |
|
| A smooth transition ... http://www.miragesource.net/forums/viewtopic.php?f=193&t=6232 |
Page 1 of 1 |
| Author: | Inuyasha22 [ Mon Sep 21, 2009 2:57 pm ] |
| Post subject: | A smooth transition ... |
... 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? |
|
| Author: | Labmonkey [ Mon Sep 21, 2009 6:41 pm ] |
| Post subject: | Re: A smooth transition ... |
What engine are you using? |
|
| Author: | Inuyasha22 [ Mon Sep 21, 2009 11:02 pm ] |
| Post subject: | Re: A smooth transition ... |
I use my own engine, based on Elysium Debugged... |
|
| Author: | Robin [ Mon Sep 21, 2009 11:25 pm ] |
| Post subject: | Re: A smooth transition ... |
Inuyasha22 wrote: I use my own engine, based on Elysium Debugged... So, you're using the old night code? No way to get a decent transition in. |
|
| Author: | GIAKEN [ Mon Sep 21, 2009 11:39 pm ] |
| Post subject: | Re: A smooth transition ... |
Unless you do a DX8 hybrid or maybe Direct3D7 can do transparencies? |
|
| Author: | Inuyasha22 [ Mon Sep 21, 2009 11:59 pm ] |
| Post subject: | Re: A smooth transition ... |
So DirectX8 could do that? Is that right? |
|
| Author: | GIAKEN [ Tue Sep 22, 2009 12:31 am ] |
| Post subject: | Re: A smooth transition ... |
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. |
|
| Author: | Inuyasha22 [ Tue Sep 22, 2009 1:03 pm ] |
| Post subject: | Re: A smooth transition ... |
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... |
|
| Author: | GIAKEN [ Tue Sep 22, 2009 4:58 pm ] |
| Post subject: | Re: A smooth transition ... |
DX7 doesn't support transparency...unless you do alpha blending. |
|
| Author: | Robin [ Tue Sep 22, 2009 5:21 pm ] |
| Post subject: | Re: A smooth transition ... |
DirectDraw7 doesn't support alpha blending. Do a DD and D3D hybrid and it works fine. |
|
| Author: | Inuyasha22 [ Tue Sep 22, 2009 5:28 pm ] |
| Post subject: | Re: A smooth transition ... |
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? |
|
| Author: | GIAKEN [ Tue Sep 22, 2009 5:34 pm ] |
| Post subject: | Re: A smooth transition ... |
It uses a horrrrible method. Brings me from 32 to 2 FPS on an ED2 game I used to play. |
|
| Author: | xp79 [ Tue Sep 22, 2009 5:41 pm ] |
| Post subject: | Re: A smooth transition ... |
Some people don't quittteee understand what hes getting at are you aiming to have it transition over a few seconds or have it gradually get darker as time goes on? |
|
| Author: | GIAKEN [ Tue Sep 22, 2009 5:43 pm ] |
| Post subject: | Re: A smooth transition ... |
I think he wants it to fade in to dark then out to light when day / night comes in... |
|
| Author: | Matt [ Tue Sep 22, 2009 5:49 pm ] |
| Post subject: | Re: A smooth transition ... |
GIAKEN wrote: It uses a horrrrible method. Brings me from 32 to 2 FPS on an ED2 game I used to play. If you use an image to blend, yes. You take a severe fps hit. If you blend a blue box you draw with directdraw, you only take a few fps hit. |
|
| Author: | Robin [ Tue Sep 22, 2009 6:30 pm ] |
| Post subject: | Re: A smooth transition ... |
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. |
|
| Author: | Inuyasha22 [ Tue Sep 22, 2009 9:30 pm ] |
| Post subject: | Re: A smooth transition ... |
Robin wrote: 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. oO' How do I express this in VB? |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|