-
Notifications
You must be signed in to change notification settings - Fork 51
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
Rendering PNG not working #17
Comments
Hey, |
I have a similar problem. If i generate a float it doesnt create any file. If i generate a PNG it creates a file but its all transparent |
Ok, I will certainly take another good look at this, however, it might take some days as I am currently away from my workstation. I will come back to you though |
Thanks! I have seen that if i use the plugins happens what i said, but if i use the project from the repo it creates exr files. Dunno how to open them in a correct format tho |
Oh thank you for that hint! That will be useful. |
Okay, sorry. Now i created another empty project. Imported the UE5 plugin. Added a Blueprint of type CameraCaptureManager and attached a scenecapture. Now it works, but the JPG and EXR photos are all black. `pt = Imath.PixelType(Imath.PixelType.FLOAT) R,G,B = [np.asarray(Image.frombytes("F", size, img.channel(Chan,pt)), dtype=np.uint8) for Chan in ("R", "G", "B") ] img_rgb = cv2.merge([B, G, R]) print(img_rgb) cv2.imshow("Hey",img_rgb) This is what im using to read the exr file |
Yea for some reason I had the same issue with numpy.. You can try openexr lib, but if the jpeg is likewise black something will be off most likely. |
Okay, maybe i'm dumb and everything was right on the begining. I was capturing the image on BeginPLay event, and that was the problem. Now the plugin works flawless. Thanks you very much! |
Ahh yes.. that will explain the issue. Thank you for sharing this. |
In UE5, I was also getting black textures, but I found out that it was only occurring on models using Nanite. |
Thank you for letting me know! |
Forgot to clarify, it was with segmentation capture images that the color was black. |
Alright, yes this will be because of Nanite seemingly not supporting a number of features (yet), amongst them - custom depth stencils: Sadly those are this project's source of annotation buffer... So I think this is currently not fixable, sorry :/ |
Hi there,
I've tried rendering PNGs in the sample project and it doesn't generate anything. It first the image taking flow but then the folder remains empty...
Do you have any idea where to start looking to fix it?
The text was updated successfully, but these errors were encountered: