Page MenuHomeFeedback Tracker

[Feature Request] new scripting command: setLightDirection
Closed, ResolvedPublic

Description

Wondering would it be possible to have #lightpoint respond to class reflector direction and shape parameters?
Or maybe even add a separate type of light source #reflector if lightpoint can't orient 🤔

In class reflectors you can set the params:

  • innerAngle
  • outerAngle
  • coneFadeCoef
  • direction

So, the same for scripted lights, could use a single command I suppose, something like

<light> setLightDirection [
  <direction>, /* vector */
  <innerAngle>, /* number */
  <outerAngle>, /* number */
  <coneFadeCoef> /* number */
];

_light setLightDirection [getPos _light vectorFromTo (_light getPos [25, 270]), 100, 170, 6];

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
General

Event Timeline

h- created this task.Mar 18 2021, 2:05 PM
dedmen added a subscriber: dedmen.Mar 26 2021, 12:00 PM

A lightpoint is a point.
Point sources have no direction.

Maybe we can add a #lightreflector hopefully...

h- added a comment.Jul 30 2021, 8:05 PM

I suppose this should be closed as #lightreflector in da house 🤔

R3vo closed this task as Resolved.Jul 30 2021, 10:42 PM
R3vo claimed this task.