Author Topic: Fade in a scene from black: MemCpy2E to ColorMath  (Read 1565 times)

stewelement

  • Earthbound (+15)
  • *
  • Posts: 26
    • View Profile
Fade in a scene from black: MemCpy2E to ColorMath
« on: January 22, 2018, 09:52:57 pm »
On the TF Tips page, there's a tip for fading in a scene from black:

Quote
Fade in Scene from Black
This 4 command memcopy segment is for the begining of an area, it fades the location in from black slowly (like it did for the characters, except this is for the whole screen).

MemCpy2E(50,00,1C,00)
MemCpy2E(50,1F,E0,00)
MemCpy2E(50,00,1C,0F)
MemCpy2E(50,1F,E0,0F)

MemCpy2E was changed to ColorMath a while ago, and there are more expected parameters. Can anyone translate the old parameters into the new function? I've given it a go and ended up with a flashing scrambled screen.

Mauron

  • Guru of Reason Emeritus
  • Errare Explorer (+1500)
  • *
  • Posts: 1763
  • Nu-chan
    • View Profile
    • Maurtopia
Re: Fade in a scene from black: MemCpy2E to ColorMath
« Reply #1 on: January 22, 2018, 10:18:34 pm »
1) Mode: Subtraction
Color: Off / Black
Index: 0
Start Intensity: 1
End Intensity: C
Duration: 0

2) Mode: Subtraction
Color: Off / Black
Index: 1F
Start Intensity: E
End Intensity: 0
Duration: 0

3) Mode: Subtraction
Color: Off / Black
Index: 0
Start Intensity: 1
End Intensity: C
Duration: F

4) Mode: Subtraction
Color: Off / Black
Index: 1F
Start Intensity: E
End Intensity: 0
Duration: F

That should do it. Where'd you find these instructions?

stewelement

  • Earthbound (+15)
  • *
  • Posts: 26
    • View Profile
Re: Fade in a scene from black: MemCpy2E to ColorMath
« Reply #2 on: January 23, 2018, 09:32:14 am »
There's several instructions just like this one on this Compendium page :

https://www.chronocompendium.com/Term/Temporal_Flux_Event_Tricks.html

They appear to be copies of old forum posts by some of the old guard (Chickenlump, Geiger, etc.)

Mauron

  • Guru of Reason Emeritus
  • Errare Explorer (+1500)
  • *
  • Posts: 1763
  • Nu-chan
    • View Profile
    • Maurtopia
Re: Fade in a scene from black: MemCpy2E to ColorMath
« Reply #3 on: January 23, 2018, 03:32:28 pm »
Did those instructions work? I'll make some updates to that page if so.

stewelement

  • Earthbound (+15)
  • *
  • Posts: 26
    • View Profile
Re: Fade in a scene from black: MemCpy2E to ColorMath
« Reply #4 on: January 23, 2018, 08:26:14 pm »
Yes, thanks, I got the ones you provided to work. A quick note for absolute rookies like me: make sure Colors is set to 1 or there will be problems.

1) Mode: Subtraction
Color: Off / Black
Index: 0
Colors:1
Start Intensity: 1
End Intensity: C
Duration: 0

Another question: I want to extend the fade in duration. Do I need to increase each Duration parameter by the same amount?

Mauron

  • Guru of Reason Emeritus
  • Errare Explorer (+1500)
  • *
  • Posts: 1763
  • Nu-chan
    • View Profile
    • Maurtopia
Re: Fade in a scene from black: MemCpy2E to ColorMath
« Reply #5 on: January 23, 2018, 10:54:35 pm »
I'd guess you'd need to adjust the second two by the same amount, but I'm not 100% sure.

stewelement

  • Earthbound (+15)
  • *
  • Posts: 26
    • View Profile
Re: Fade in a scene from black: MemCpy2E to ColorMath
« Reply #6 on: January 25, 2018, 09:46:32 pm »
Mauron,
After playing with the instruction set, I realized that the instructions you gave me aren't working. I've played around with them a bit, and I found that what I was seeing was the regular scene transition... 

:picardno

I'll keep playing with the parameters, but so far, I've gotten nowhere.

Mauron

  • Guru of Reason Emeritus
  • Errare Explorer (+1500)
  • *
  • Posts: 1763
  • Nu-chan
    • View Profile
    • Maurtopia
Re: Fade in a scene from black: MemCpy2E to ColorMath
« Reply #7 on: January 25, 2018, 10:00:55 pm »
The whole thing is rather confusing. MemCopy2E lists four bytes of parameters, while ColorMath has 5 bytes of parameters. I'm trying to figure out how to change everything correctly.