vircadia / vircadia-native-core

Vircadia open source agent-based metaverse ecosystem.
https://vircadia.com/
Other
531 stars 175 forks source link

Create app: Adds a "Distance" UI field to Light Entity #1673

Closed AleziaKurdis closed 2 years ago

AleziaKurdis commented 2 years ago

This PR adds a "Distance" pseudo-property to Light Entity. The new UI fields is actually plugged to the "dimensions.z" property of the entity.

People had difficulty to figure that the light's effective distance was related to the dimensions of the entity. Some tried to mess with the intensity hoping to setup the entity without succes.

To solve this, I simply added a "Distance" UI field in the "Light" tab, plugged to the property "dimensions.z".

image

The tooltip keeps transparent that it is actually the "dimension.z" that is edited.

image

vircadia-build-notifier commented 2 years ago

The following links are available: build (ubuntu-18.04, full)

build (windows-2019, full)

build (self-hosted_debian-11_aarch64, full)

AleziaKurdis commented 2 years ago

This is wrong, I got blinded by the simplicity. The Distance must reflect "dimensions.z / 2". It's gonna be a bit more complex. I'm closing this PR and will submit another once.