Jump to content

Problem with multiple lights on a single part


Recommended Posts

I'm working on a part that will have 3 different light-animations, red, green and blue. It has an actual light source and an emissive surface. After fiddleing a bit around I found an almost working solution. The only problem I have is that the green and blue lights/emissives don't work unless I turned the red light on and off before.
Also the part will become a stand-alone EVA-item, so the color needs to be changeable from EVA.

Spoiler

Yzn5XGP.png

  1. Attach the part, activate blue light -> nothing happens.
  2. Deactivate blue and activate green -> nothing happens.
  3. Deactivate green and activate red -> success! The actual light and the emissive work.
  4. Deactivate red and activate green -> success! Now the green lights work as well.
  5. Deactivate green and activate blue -> success! Now everything works as expected.

The log shows no errors or warnings. It feels like I'm just missing some tiny detail but I have no clue what it could be.

My animation setup in unity and module-config:

Spoiler

0yEgspe.png

All animations use the same light and same object for emissives.

	MODULE
	{
		name = ModuleAnimateGeneric
		animationName = KDLaunchSiteDeployAnim
		...
		SNIP
		...
		layer = 1
	}
	MODULE
	{
		name = ModuleAnimateGeneric
		animationName = KDLaunchSiteLightBlueAnim
		actionAvailable = true
		actionGUIName = Lights Anim Blue
//		defaultActionGroup = Light
		startEventGUIName = Lights Blue start
		endEventGUIName = Lights Blue end
		eventAvailableEditor = true
		eventAvailableEVA = true
		eventAvailableFlight = true
		evaDistance = 5
		layer = 2
	}
	MODULE
	{
		name = ModuleAnimateGeneric
		animationName = KDLaunchSiteLightGreenAnim
		actionAvailable = true
		actionGUIName = Lights Anim Green
//		defaultActionGroup = Light
		startEventGUIName = Lights Green start
		endEventGUIName = Lights Green end
		eventAvailableEditor = true
		eventAvailableEVA = true
		eventAvailableFlight = true
		evaDistance = 5
		layer = 3
	}
	MODULE
	{
		name = ModuleAnimateGeneric
		animationName = KDLaunchSiteLightRedAnim
		actionAvailable = true
		actionGUIName = Lights Anim Red
//		defaultActionGroup = Light
		startEventGUIName = Lights Red start
		endEventGUIName = Lights Red end
		eventAvailableEditor = true
		eventAvailableEVA = true
		eventAvailableFlight = true
		evaDistance = 5
		layer = 4
	}

 

Link to comment
Share on other sites

3 hours ago, Eleusis La Arwall said:

The log shows no errors or warnings. It feels like I'm just missing some tiny detail but I have no clue what it could be.

My animation setup in unity and module-config: 

Hi, you'll be glad to know that you are not alone in this problem.  I've similar things, usually two colors ,  and since 1.4 it seems that i can't have more than one light module on a part, without having , as you mentioned weird effects occur, and i was running completely separate lights and emissives. SO whatever the missing key i couldn't find it  despite many different arrangements and compromised ( :() and just rolled the lights into one animation.  which i gather is not something that will work in your case. .


 

Edited by SpannerMonkey(smce)
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.

×
×
  • Create New...