This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
gamedev:ieslightprofiles [2020/10/27 00:05] – dragonlord | gamedev:ieslightprofiles [2020/11/24 09:57] (current) – [IES Image Module] dragonlord | ||
---|---|---|---|
Line 16: | Line 16: | ||
If you want to access profile data in game scripts you have to reverse the gamma by using " | If you want to access profile data in game scripts you have to reverse the gamma by using " | ||
+ | </ | ||
+ | |||
+ | <WRAP center 100%> | ||
+ | <WRAP center box 450px> | ||
+ | {{youtube> | ||
+ | <WRAP centeralign> | ||
+ | </ | ||
</ | </ | ||
Line 26: | Line 33: | ||
<texture name=' | <texture name=' | ||
<image property=' | <image property=' | ||
+ | <color property=' | ||
</ | </ | ||
</ | </ | ||
Line 32: | Line 40: | ||
The path to the IES file can be relative (to the directory the *.deskin is located in) or absolute. Using relative path makes skins easy to move between directories or game projects. The name of the texture is not important. Lights always use the first texture defined in a skin file. | The path to the IES file can be relative (to the directory the *.deskin is located in) or absolute. Using relative path makes skins easy to move between directories or game projects. The name of the texture is not important. Lights always use the first texture defined in a skin file. | ||
- | If you want to use IES profiles for spot and projector type light sources you have to rotate the image first. This is required because IES profiles typically have the image shining down the Y-Axis. Spot and projector type light sources on the other hand shine along the Z-Axis. The image has to be rotated by 90° around the X-Axis to line them up. This example | + | If you want to use IES profiles for spot and projector type light sources you have to rotate the image first. This is required because IES profiles typically have the image shining down the Y-Axis. Spot and projector type light sources on the other hand shine along the Z-Axis. The image has to be rotated by 90° around the X-Axis to line them up. This example above contains such a rotation using [[gamedev: |
- | + | ||
- | <code xml><?xml version=" | + | |
- | <skin> | + | |
- | <texture name=' | + | |
- | <image property=' | + | |
- | <color property=' | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | Using this modified light skin on point type light sources is not going to work since the rotation | + | As note there exist two rotation |
====== Drag[en]gine IES Pack ====== | ====== Drag[en]gine IES Pack ====== | ||
- | The Drag[en]gine ships with a pack of 30 IES profiles ready to be used in your project. This pack is guaranteed to exist on all game engine installation. You do not need to copy them to your project. The IES images can be found at the path <wrap hi>/ | + | The Drag[en]gine ships with a pack of 30 IES profiles ready to be used in your project. This pack is guaranteed to exist on all game engine installation |
{{gallery> | {{gallery> |