Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Add control to adjust observer's size #111

Closed
DIYer22 opened this issue Aug 28, 2023 · 4 comments
Closed

[Feature request] Add control to adjust observer's size #111

DIYer22 opened this issue Aug 28, 2023 · 4 comments

Comments

@DIYer22
Copy link

DIYer22 commented Aug 28, 2023

Thank you for the great work. I think the observer's should be changeable.

@ricktu288
Copy link
Owner

For now, you may change the observer's size by either of the following:

  1. Open the developer console and type observer.r = 50; draw();. Replace 50 with your desired radius in pixels.
  2. Switch to "Seen by Observer" and save the scene to a JSON file. Find the following code
  "observer": {
    "type": 5,
    "c": {
      "type": 1,
      "x": 100, /*Some coordinates*/
      "y": 100, /*Some coordinates*/
      "exist": true
    },
    "r": 20,
    "exist": true
  },

and replace 20 by your desired radius in pixels.

As for the feature request, I think maybe a good approach is to make observer an object so that the radius can be changed with a slider when selected, and it can also be duplicated to have multiple observers. But that requires a lot of code change and is not expected to be implemented in the near future.

@DIYer22
Copy link
Author

DIYer22 commented Sep 4, 2023

image
It works! thank you so much!

@DIYer22 DIYer22 closed this as completed Sep 4, 2023
@ricktu288
Copy link
Owner

I will keep this open because a proper control in the UI itself for this functionality is still desired.

@ricktu288 ricktu288 reopened this Sep 4, 2023
ricktu288 added a commit that referenced this issue Dec 26, 2023
@ricktu288
Copy link
Owner

The "Observer size" option is now available in Settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants