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

Config file no longer being read. #1957

Closed
pegasusearl opened this issue Jan 29, 2025 · 1 comment
Closed

Config file no longer being read. #1957

pegasusearl opened this issue Jan 29, 2025 · 1 comment

Comments

@pegasusearl
Copy link

pegasusearl commented Jan 29, 2025

Describe the bug
Config file no longer being applied. I have config file in C:\Users\$USER\AppData\Roaming\f3d.
Here are the config files:
config.json

{
   "global": {
    "ambient-occlusion": true,
    "axis": true,
    "tone-mapping": true,
    "grid": true,
    "progress": true,
    "anti-aliasing": true,
    "filename": true,
    "scalars": "",
    "camera-direction": "-1,-0.5,-1",
    "hdri-ambient": true,
    "translucency-support": true,
    "position": "460,224"
   }
}

To Reproduce
Put that config file to C:\Users\$USER\AppData\Roaming\f3d
Open 3D file with F3D.

Expected behavior
with "position" : "460,224" it should appear in the center of my primary 1080p display like usual, but today I noticed it doesn't do that anymore.
No more ambient-occlusion either. I don't know about the other settings but I assume it doesn't work as well.

System Information:

  • OS: Windows 10
  • GPU: Nvidia GTX 1650

F3D Information
Paste the content of f3d --version: Hey it doesn't print anything! I tried them in pwsh and nushell.
I only know it's version 3.0.0 which I downloaded from the main website. The portable version.

Additional context
I made an issue about centered window in the past and the config was working during that time. I'm not sure what version it was but it was when f3d's icon is still cool a thunder. I did no modification to the config files, but it's suddenly not working.

@mwestphal
Copy link
Contributor

Hi @pegasusearl

F3D 3.0 is a major release so many breaking changes have been integrated.
Specifically, config file format changed in 3.0, you can read this: https://f3d.app/doc/user/CONFIGURATION_FILE.html

In short, you need to modify your config file slightly:

[
{
  "options":
  {
    "ambient-occlusion": true,
    "axis": true,
    "tone-mapping": true,
    "grid": true,
    "progress": true,
    "anti-aliasing": true,
    "filename": true,
    "scalars": "",
    "camera-direction": "-1,-0.5,-1",
    "hdri-ambient": true,
    "translucency-support": true,
    "position": "460,224"
   }
}
]

Hey it doesn't print anything! I tried them in pwsh and nushell.

Indeed, on windows you need to redirect to a file now, sadly, documented here: https://f3d.app/doc/user/LIMITATIONS_AND_TROUBLESHOOTING.html#windows

There is no issue per se, but do hesitate if you have other questions. Dont hesitate to come to discord as well ;)

https://discord.f3d.app

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