Author Topic: Light isn't syncing with sound  (Read 206 times)

0 Members and 1 Guest are viewing this topic.

silverjoel

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
  • Doom Newbie
    • View Profile
Light isn't syncing with sound
« on: April 05, 2018, 01:13:07 PM »
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

  • Happy Happy Joy Joy
  • Administrator
  • Hero Member
  • *****
  • Posts: 900
  • Karma: +42/-4
  • Semi-Newbie.
    • View Profile
    • EarthQuake
Re: Light isn't syncing with sound
« Reply #1 on: April 07, 2018, 07:32:58 PM »
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

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
  • Doom Newbie
    • View Profile
Re: Light isn't syncing with sound
« Reply #2 on: April 09, 2018, 03:14:09 PM »
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

  • Happy Happy Joy Joy
  • Administrator
  • Hero Member
  • *****
  • Posts: 900
  • Karma: +42/-4
  • Semi-Newbie.
    • View Profile
    • EarthQuake
Re: Light isn't syncing with sound
« Reply #3 on: April 09, 2018, 09:51:19 PM »
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

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
  • Doom Newbie
    • View Profile
Re: Light isn't syncing with sound
« Reply #4 on: April 11, 2018, 05:16:05 PM »
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.