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

Not what I see in Blender #1068

Open
nkyriazis opened this issue Feb 16, 2024 · 1 comment
Open

Not what I see in Blender #1068

nkyriazis opened this issue Feb 16, 2024 · 1 comment
Labels
first answer provided question Question, not yet a bug ;)

Comments

@nkyriazis
Copy link

Describe the issue

The same scene is loaded in blender and blenderproc.

The scene looks well-lit in Blender. The same scene is dark when rendered through blenderproc. The Blender versions are different (Blender v4, blenderproc uses v3.5), but I would not expect this to be the culprit.

Understandably, blenderproc has a purpose, and rendering a scene exactly as what Blender would render might not be the top priority. I would very much love, however, if time spent on preparing the blend files could be reflected in blenderproc renders, too.

Minimal code example

# load the blend file
loaded = bproc.loader.load_blend(blend_file.as_posix())

# add some camera poses
bproc.camera.add_camera_pose(pose)

# enable depth outputs
bproc.renderer.enable_depth_output(False)

# set max sample count
bproc.renderer.set_max_amount_of_samples(1024)

# do render
data = bproc.renderer.render()

Files required to run the code

I'm guessing there might be obvious reasons for the discrepancy. If not, I would try to establish a shareable blend file.

Expected behavior

It's not the same angle, but the differences are apparent.

Blenderproc
image

Blender
image

BlenderProc version

main

@nkyriazis nkyriazis added the question Question, not yet a bug ;) label Feb 16, 2024
@cornerfarmer
Copy link
Member

Hey @nkyriazis

sorry for the late response. When using the load_blend importer, per default only the objects are imported, but not for example the lights. You can change that by adapting the parameters of the function.
I would recommend to use the blenderproc debug mode to see which items are actually imported and how that differs from your original blend file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
first answer provided question Question, not yet a bug ;)
Projects
None yet
Development

No branches or pull requests

2 participants