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

Why is the color of the obj I imported with mtl texture different from the color rendered by blender? #1035

Closed
XLionXL opened this issue Jan 2, 2024 · 1 comment
Labels
question Question, not yet a bug ;)

Comments

@XLionXL
Copy link

XLionXL commented Jan 2, 2024

Describe the issue

When I used it, I passed in a correct set of obj files and corresponding mtl. The color it rendered was cold. I tried many models with the same result. I checked the code for importing obj and copied it. In the blender python script, blender rendering is normal

Minimal code example

objs = bproc.loader.load_obj(obj_path)
# define a light and set its location and energy level
light = bproc.types.Light()
light.set_type("AREA")
light.set_location([5, -5, 5])
light.set_energy(2000)
# define the camera resolution
W ,H = 256, 256
bproc.camera.set_resolution(W, H)

Files required to run the code

Uploading ak47.png…

Expected behavior

9f04e846fa3551d4ac48116a818b716 24544c5a48b66463f820891356b05e0

BlenderProc version

master

@XLionXL XLionXL added the question Question, not yet a bug ;) label Jan 2, 2024
@XLionXL
Copy link
Author

XLionXL commented Jan 2, 2024

I solved it

@XLionXL XLionXL closed this as completed Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question, not yet a bug ;)
Projects
None yet
Development

No branches or pull requests

1 participant