AMM: Light Components
How to add light components with AMM
Last updated
How to add light components with AMM
Last updated
Published: Feb 09 2024 by Last documented edit: Feb 11 2024 by
This page will show you how to add a light component to AMM props.
For a quick overview on lights and their properties, check Cheat Sheet: Lights (currently WIP)
For an explanation about light, check Lights explained (currently WIP)
You can learn more about effect components (e.g. how to remove or create effect spawns) on the Effect components page.
This is as easy as finding the right component, adding it to your prop (either in the root entity or in each appearance in the .app file) and naming it Light:
This enables the AMM light panel in the target tools.
Not all light components actually support colour and intensity changes. Candlelight, for example, does not.
Your lights will be anywhere relative to your prop. How can you position them relative to the actual object?
Add an Empty in Blender (Viewport, Hotkey: Shift+A
-> Empty -> Plain Axes)
Move the empty to the position where you want your light to be
Switch to the Object tab and see its location transform:
Now that you have the relative position, switch back to Wolvenkit: we need to add it to our entSlotComponent
.
Open the slots
array and select your first entSlot
Find the relativePosition
property in the box on the right
Copy the values from the "Transform" field in Blender (Screenshot above) to the corresponding fields under relativePosition
(screenshot below)
Save and see your effect changing positions!
If your light doesn't seem to be in the right spot, try multiplying the value for z with -1