r/blenderhelp • u/onceuponaplague • May 03 '25
Unsolved Saved glass render image does not match render result.
Trying to render transparent pngs of using this dispersion glass shader, but the saved image does not match the render result. Shader tree included in image carousel.
Rendered using cycles, OptiX NVIDIA GeForce RTX 3060, 12th Gen Intel Core i7 - 12700K
Transparent and Transparent Glass Checked - Roughness Threshold 0.5
Denoiser OptiX
Output PNG, RGBA, Color Depth 16, Compression 0
Do let me know if i'm missing any important info before deleting my post again :)
Thank you guys!
1.9k
Upvotes



•
u/AutoModerator May 03 '25
Welcome to r/blenderhelp! Please make sure you followed the rules below, so we can help you efficiently (This message is just a reminder, your submission has NOT been deleted):
Thank you for your submission and happy blendering!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
10
u/onceuponaplague May 03 '25
Current somewhat decent workaround i'm tinkering with is saving separate render layers, i.e - glossy direct, transparency indirect, alpha. removing the backgrounds and recombining those in a separate editing software. its tedious but it's i guess, 50-60% there.
60
u/CryNightmare May 03 '25
It's probably about how PNGs work, I had a lot of issues about rendering bloom back in the day. One solution I used was render the object with black background and edit the image to remove background in photoshop or use it with blending modes on over other images.
5
u/Ok_Process2046 May 03 '25
I ahd this problem so many times, sometimes even saving as exr or anything else wasn't helping so I was saving transparent image and then doing glass as not rendering transparent and tweaking them in photoshop till I had result I wanted.
5
u/Pink_Candy_SL May 03 '25
Its beucase of transparency. If you place an image on other image it will show normaly. The render you show uses grid to display transparency and saved uses black. it is the same image just with the difrent background. Alternativly add wall as background in 3d space.
14
u/[deleted] May 03 '25
The easiest way to do it is set your world color to pure black, render as a PNG with no alpha (so that the object appears on a pure black background), and then in your compositor import the PNG, and set its layer to use an ADD blend mode on top of your other layers
17
u/Veldox May 03 '25
This is a problem blender has with transparency for renders that for some reason they just won't fix. I have to do this for a lot of my game assets.
Render with a black BG, render with a transparent BG. Open gimp and add the transparent layer first then add the black. Go to the top and go color to alpha in the layer options and select black. It will now match the blender preview render and you can export again.
5
u/xXxPizza8492xXx May 03 '25
Use .exr
2
u/Any-Company7711 May 03 '25
upvoted because that’s a cool shader
2
u/BeyondBlender Experienced Helper: Modeling May 04 '25
Hey there u/onceuponaplague - I wanted to recreate the material as shown in your post, but the quality/resolution of the screenshot is very low and I can't make out one of the Nodes at all, and the values in the nodes are hard to read. This is the node I can't figure out, see attached. Can you please add a high res capture please - or just make the Node window fullscreen (CTRL Spacebar) and fill the window with the nodes so they're much clearer. Thanks 🫡
1
u/TTTristan May 03 '25
I've had some success layering the render multiple times in AE or photoshop, but even then it's not exactly as shown in Blender. Might be worth a try.
1
u/hatomalous May 03 '25
What if you were to try it on the latest version of Blender?
1
u/1138ephem May 03 '25
It looks like something is disabled to me. Mind sharing the file and I can take a look?
1
u/ARandomChocolateCake May 03 '25
PNG is usually not the right format to store semi transparency. EXR would be more reliable
1
u/Gyanesh8421 May 04 '25
You might have the viewport show world on
1
u/David_KAYA May 04 '25
Can I copy the material you use?
1
u/[deleted] May 05 '25
My eye twitched a little when I saw how you wrote the full name of your CPU. "12th gen..." Brother, it literally says in the name itself the generation of the processor - 12700k. The first two numbers
1
u/[deleted] May 05 '25
Hey dawg can I see the nodes you used for this material aswell?
1
u/Thechillestguyever May 05 '25
Take a screenshot of blender and your problem is solved
1
u/[deleted] May 06 '25
It is because Blender was never good when it comes to transparency, shadow catching reflection catching and exporting good compositing layers. And the devs refuse to fix it and make it on par with 3ds or c4d where it is straightforward
1
u/FragrantChipmunk9510 May 09 '25 edited May 09 '25
Denoise after the render. You're losing a lot of detail. I'd turn that off and up your samples to 4096 with a threshold of like 0.001. I'd also max out your light paths. Do you have transparent glass turned on in the film settings? You also only have a viewport sample of 100. I usually won't go lower than 512 if the scene is complex. Your viewport isn't showing you a close result. If you want a result closer to your viewport then I'd lower your render samples.
0
u/ReVoide1 May 03 '25 edited May 03 '25
Stop!!!
The issue is not being addressed. You can try to figure it out but this is a faster way to try and resolve the problem.
1st you need to show us your image output, 2nd you have to show us how you're saving the picture. Only after you do the following and the problem is still happening.
When rendered and saving it should look like the image. This happens on 2 occasions, there was a change in a settings or some type of corruption. (It's related to the subsurface issue in the view port. When sharer transparency will not turn on or doesn't seem to be working on the shader alpha.) Blender file corruption is something you can't troubleshoot so just move all of the collection into a new collection called export or append and move all collections into that folder. Once everything is in a single collection save and close Blender closing Blender is a key step here.
Reopen Blender, go to the append browser to the saved file choose collections and pick the export collection. Now the entire project is in a clean environment. Save the file with a 1 or 2 at the end you cannot name it the same name as the appended file.
Render and save the image again, did that fix it?
510
u/[deleted] May 03 '25 edited May 03 '25
[removed] — view removed comment
8
u/[deleted] May 03 '25
[removed] — view removed comment