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

Help: options must be a string, a boolean or a number #1758

Closed
philberndt opened this issue Dec 5, 2024 · 2 comments
Closed

Help: options must be a string, a boolean or a number #1758

philberndt opened this issue Dec 5, 2024 · 2 comments

Comments

@philberndt
Copy link

F3D log window tells me that

options must be a string, a boolean or a number

This is my extremely simple json file.

[
  {
    "options": {
      "anti-aliasing": true,
      "raytracing": true,
      "samples": 10,
      "denoise": true,
      "hdri-ambient": true,
      "hdri-skybox": true,
      "tone-mapping": true,
      "hdri-file": "image.hdr",
      "ambient-occlusion": true,
      "grid": false,
      "filename": false
    }
  }
]

What am I missing here? Any help is greatly appreciated.

@mwestphal
Copy link
Contributor

The doc in https://f3d.app is for current master, not for 2.5.0 sadly (see this: #845)

For the 2.5.0 doc that should help you, see this: https://github.com/f3d-app/f3d/blob/v2.5.0/doc/user/CONFIGURATION_FILE.md

In any case, what you want is probably:

  {
    "global": {
      "anti-aliasing": true,
      "raytracing": true,
      "samples": 10,
      "denoise": true,
      "hdri-ambient": true,
      "hdri-skybox": true,
      "tone-mapping": true,
      "hdri-file": "image.hdr",
      "ambient-occlusion": true,
      "grid": false,
      "filename": false
    }
  }

@philberndt
Copy link
Author

The doc in https://f3d.app is for current master, not for 2.5.0 sadly (see this: #845)

For the 2.5.0 doc that should help you, see this: https://github.com/f3d-app/f3d/blob/v2.5.0/doc/user/CONFIGURATION_FILE.md

In any case, what you want is probably:

  {
    "global": {
      "anti-aliasing": true,
      "raytracing": true,
      "samples": 10,
      "denoise": true,
      "hdri-ambient": true,
      "hdri-skybox": true,
      "tone-mapping": true,
      "hdri-file": "image.hdr",
      "ambient-occlusion": true,
      "grid": false,
      "filename": false
    }
  }

Thanks! Issue solved, closing. ⚡

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

No branches or pull requests

2 participants