Replying to @KyusoWhitescale
ADOF and lens tracing dont work the same way. Lens tracing is a single pass where rays are sent through a lens prescription. I compute a ray matrix for the prescription once on CPU side, from there the GPU finds where each ray lands on the sensor in one step, so it can run in real time.
If you want to see how it behaves in the editor, when r.LensTracer is set to 0, it renders through the default Unreal cine camera:
11
Replying to @Alessan13244272
Here’s a benchmark. For the video I used the Petzval 85 mm, the other two are more classic designs.
To answer your question, it depends on the lens, and mostly on its field curvature, how much of the frame the lens leaves out of focus. The cost follows the blur, for now.
Even if the ms are still high, being able to run this kind of simulation in real time is already a big step, and I now have a few technical ideas to make it game ready for a wider range of lenses. So thank you for your comment!
1
2
120
Replying to @BurneySbb
Yes! Its a trace through the lens. I use real optical designs and compute how each ray travels through the lens to the sensor. For the video, this is the ue5 data asset of the lens (see screenshot). So bokeh, distortion, vignetting... are all physically based
Ray traced lens simulation in unreal using real lens data
fab.com/listings/08d45037-93…
ISO 100, f/2.8, 1/60s, 44x24.75 mm sensor.
#UE5 #indiedev
1/ Playing with lens tracing plugin to shoot footage in UE5
#UE5 #UnrealEngine5
Real lens optics in Unreal Engine 5 Bokeh, depth of field and distortion come from the actual glass. Load your favorite real-world lens and shoot with it in-engine. UTC Lens Tracing, now on Fab
fab.com/listings/08d45037-93…
Some of my research, to explore graphic programming. Real time Lens tracing in UE5, using refraction matrix in a custom pass. Auto generates DOF, lens deformation..
I'm excited to release this new project I've been working on for the past few months, focusing on the new UE5.2 substrate material !
#gamedev #UnrealEngine5 #indiedev
UE5 x Tensorflow - Emotional Text Classification AI
Check out the breakdown here: artstation.com/artwork/mzGVy…
#UE5 #UnrealEngine5 #IndieDevs #gamedev
Faster than a copy/paste with presets
UTC Shader Library 1.1 plugin coming soon
#UnrealEngine
UTC Shader Library 1.1a: You can now add shader pieces directly into @UnrealEngine material !
github.com/UniversalToolComp…
The 1.0 free stable engine version: unrealengine.com/marketplace…
#UE5 #UnrealEngine5 #indidev
Create easily detailed Master Materials in @UnrealEngine with the free UTC Shader Library plugin!
Marketplace: unrealengine.com/marketplace…
#UnrealEngine5 #UE5 #screenshotsaturday #indiedev
Free UE5 Plugin: UTC Shader Library
Tired of wasting the half of the day to create a master material? Check out my free plugin for UE5 and save your time!
unrealengine.com/marketplace…
#UnrealEngine #UE5 #gamedev #plugin





