Skip to content

Conversation

@Zishan-Rahman
Copy link
Contributor

I opened this as a draft PR as it still isn't quite complete. At present the block exists but, firstly, it's formatted strangely, unlike the other blocks for some reason (and I haven't done anything unique to make it this way; I was expecting it to all be in one line):
hemispheric_light

And secondly, the block itself causes issues when added to the start block. For starters, when I try and append it to the basic sky-and-map snippet, the map itself seems to refresh, and then barely anything happens after that as I can't really do anything else with the UI like change the camera direction by dragging as I usually would. The light position certainly doesn't seem to change either. Even re-running the project through the run/play button doesn't change much in this regard.

Furthermore, when I try to open FlockXR from the beginning with a leftover project containing that hemispheric light position block, nothing renders at all until I remove said block and rerun the project:
Screenshot 2025-11-15 at 13-07-29 Flock XR - Creative coding in 3D

So it's hopefully clear that there's at least something wrong with my current code.

I welcome advice and suggestions.

@Zishan-Rahman Zishan-Rahman changed the title Create draft block for changing position of hemispheric light Create block for changing position of hemispheric light Nov 15, 2025
@tracygardner
Copy link
Contributor

@Zishan-Rahman You've missed the inline setting for inputs.

But I thought we agreed that we would create a way to access the light as a variable like we do for the camera so that we wouldn't need separate blocks.

Conflicts:
	flock.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants