News:

One Minute Game Review by The Happy Friar: https://ugetube.com/@OneMinteGameReviews
Also on Rumble: https://rumble.com/c/c-1115371

idTech 4 (aka Doom 3 tech) Discord Server! https://discord.gg/9wtCGHa

Main Menu

Light isn't syncing with sound

Started by silverjoel, April 05, 2018, 01:13:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

silverjoel

So, I can't figure out what is the issue.  I have a basic point light, gave it a sound and a sound texture (I think it's the square_snd shader, but I've tried others).  The sound and the light flicker are not syncing.  After looking at the light flicker for a while, it seems like the flicker leads (or lags depending on your philosophical view) the sound.  So, I see the flicker and, after like a second, I hear the sound.

Am I missing something?  The light only has the basics (sound, texture and color).

Can the light-sound flicker be accomplished though script?

The Happy Friar

I went looking and I couldn't find any light materials that used the parameter to do the sound shakes.  I'd say make up your own & try that.  Here's the D3 material command list:
https://www.iddevnet.com/doom3/materials.php

silverjoel

Thanks for the reply.  I'm more than familiar with the iddev site.

I'm not looking for screen shake, I'm just trying to get the light intensity to fade with the sound (dark in soft sound and bright in loud sound).  It works, but as I said it's not in sync (some louder parts of the sound are dark and some softer parts are light, but it seems like the pattern is there, the sound and light just seems like they started/loaded at different times).  Maybe it's because I'm using a longer ambient sound.  I think I'll try to edit the sound down to just the "zap" (it's an electric sound) and have it randomly play and see if it gives me what I'm looking for.

In a related question, is there any way to link multiple lights together (not through a trigger linking all of the lights)?  As in, if the master light is off, the other lights are off.  Similar to the "team" value for doors where if one door opens, it triggers the other doors to open.

The Happy Friar

a script or FX might be what you're looking for in the linking of things together.  Although it might be easier to use a target entity to link to all the lights & trigger that via script.

silverjoel

I think scripting or a FX is the right way for me to go.  I think I was caught trying make the assets do what I want instead of nothing the assets to do what I want.

I still think it's strange that the light and sound aren't in sync with the ambient sound I have, but I can modify the sound to do what I want it to do.

Thanks.