f3d icon indicating copy to clipboard operation
f3d copied to clipboard

Scenes are too dark

Open rafcon-dev opened this issue 3 years ago • 3 comments
trafficstars

hi guys. For some reason I'm getting really dark scenes. For example, for this file: https://downloadfree3d.com/3d-models/vehicles/ship/south-korean-destroyer-chung-mu/ This is what I get in the viewer: image

and this is what I get in an online glTF viewer for example: image

Similar thing happens with stl files for example, the image is just too dark and flat. Am I missing something? I'm just running a simple commad with no options. I've tried --dry-run and a few more, nothing. Tried --geometry-only, and it renders without textures, but still too dark.

  • OS: Ubuntu 22.04.1 LTS
  • GPU and GPU driver: GTX 770 450.203.03
  • f3d --version`: 1.2.1

rafcon-dev avatar Aug 10 '22 14:08 rafcon-dev

It's a gltf file? You'll get best results using a HDRI file. You can also try to change the background color.

Meakk avatar Aug 10 '22 16:08 Meakk

It's a .glb file.

Chaning background color doesn't seem to affect the lighting. Adding a light grey hdr image indeed improved the lighting. image Still, it's a bit too flat, a bit of directional lighting wouldn't hurt. The thing is, for .obj files it becomes too washed out, so I have to use a different command for those than from glb/gltf. I'm trying to generate previews for lf file manager. I suppose this also happens with the thumbnails generated with f3d? Still, for stls, the thumbnails are a bit flat, when compared with stl-thumbnailer, for example: f3d result: image

stl-thumbnailer: image

I had to use a white hdr background as I didn't want the hdr showing in the background. I assume there isn't a way to use hdr for lighting, but have a different background color (like Blender can do)?

So, 4 things:

  • Probably glft and glb files could have a default light grey hdr applied for the thumbnailer
  • Lighting in the default scene could be improved, a bit brighter and more directional
  • default stl files orientation does not appear to be correct?
  • add a way to use hdr lighting, while keeping a solid background color

rafcon-dev avatar Aug 11 '22 16:08 rafcon-dev

  • I don't want to add a special feature for a specific format, the default light setup should be used for all formats.
  • There is no way to customize the punctual lights setup right now. This is something we'd like to add in the future though. In the short term, we could add a "light-intensity" option to increase the brightness of the default lights.
  • The orientation of the scene can be set using the --up option.
  • An option to hide the hdri in the background can be useful indeed. At least, the --no-background option should work with the --hdri option if it doesn't already.

Meakk avatar Aug 12 '22 07:08 Meakk

This is fixed by #461 , set the light-intensity in your config files @rafcon-dev

mwestphal avatar Feb 01 '23 07:02 mwestphal

This will be further improved with #944, where a default HDRI will be provided

mwestphal avatar Aug 18 '23 06:08 mwestphal