Remember me
You are here: HomeForumCyberix3D ForumReport a bugshadow setup does not work (android)
Welcome, Guest
Username: Password: Remember me

TOPIC: Loops not properly updating?

Loops not properly updating? 3 years 4 months ago #2401

  • Plazma
  • Plazma's Avatar
  • OFFLINE
  • Senior Boarder
  • 99 bugs in the programming code.. 99 bugs in the code..
  • Posts: 77
  • Thank you received: 19
I was testing different lighting systems, and i wanted to have the rotation of a directional light to follow with the player camera rotation. I attempted this with the following code:

<DirectionalLight name="testlight" shadowDistance="0.15" specular="0.3" y="300" z="-219.8" x="0" rotationX="0" rotationY="-36.9" rotationZ="0">
<Loop>
<Set var="testlight.x" value="camera.x"/>
<Set var="testlight.z" value="camera.z"/>
<Set var="testlight.y" value="camera.y"/>
</Loop>
</DirectionalLight>


An image of this in the workflow is here:
Screenshot2020-11-20at19.01.01.png




Unfortunately this didn´t work. is there something im doing wrong? Or does the light not support dynamic movement?
Graphic designer and learning game developer.. I guess.
Last Edit: 3 years 4 months ago by Plazma.
The administrator has disabled public write access.

Loops not properly updating? 3 years 4 months ago #2404

Whats the point of using the loop if you're setting a value? just scrap the loop and see what happens.
The administrator has disabled public write access.

Loops not properly updating? 3 years 4 months ago #2406

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 661
  • Thank you received: 628
Hello,
Directional Light is not affected by position but only by rotation.
You can use Point Light instead.
Regards,
Cyberix3D team
The administrator has disabled public write access.
Time to create page: 0.150 seconds