Sign in to follow this  
DarthRevan101

How to fade to black?

Recommended Posts

I don't know how easy this is to do so I thought I'd ask. At the end of a conversation when a bunch of characters need to leave a module at the same time, is there a way to make the screen go black for a second while they disappear? Simply because it looks better than them just vanishing in front of the player and it's less messy than all the characters walking out.

Share this post


Link to post
Share on other sites

From nwscript.nss:

// 719. SetGlobalFadeIn
// Sets a Fade In that starts after fWait seconds and fades for fLength Seconds.
// The Fade will be from a color specified by the RGB values fR, fG, and fB.
// Note that fR, fG, and fB are normalized values.
// The default values are an immediate cut in from black.
void SetGlobalFadeIn(float fWait = 0.0f, float fLength = 0.0f, float fR=0.0f, float fG=0.0f, float fB=0.0f);

// 720. SetGlobalFadeOut
// Sets a Fade Out that starts after fWait seconds and fades for fLength Seconds.
// The Fade will be to a color specified by the RGB values fR, fG, and fB.
// Note that fR, fG, and fB are normalized values.
// The default values are an immediate cut to from black.
void SetGlobalFadeOut(float fWait = 0.0f, float fLength = 0.0f, float fR=0.0f, float fG=0.0f, float fB=0.0f);

Black would of course be 0.0 for the three color values and then you have to customize the rest for your specific needs.

Share this post


Link to post
Share on other sites

You can also do it in the .dlg file, I think the field is called FadeType. Check with Kotor Tool's DLG Editor, that one makes it clear which values do what IIRC.

Share this post


Link to post
Share on other sites

I also think the .dlg is probably easiest, this is an example from intro.dlg:

yMMwv0x.jpg

I think the 4 is a fade to black and the delay the time it takes, 1 is likely 1 second, you can experiment with that.

Share this post


Link to post
Share on other sites

I also think the .dlg is probably easiest, this is an example from intro.dlg:

 

yMMwv0x.jpg

 

I think the 4 is a fade to black and the delay the time it takes, 1 is likely 1 second, you can experiment with that.

I'll try that, thanks! 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this