r/GraphicsProgramming • u/Stimes59 • May 03 '24
Bye Bye Path tracing, welcome Waves tracing !
Hum question for anybody have more knowledge than me,
i have an idea.... Is maybe stupid but i don't know i never see that anywhere.... But basically is possible to create a derivated system from path tracing to "Wave tracing" we replacing the path, by waves, so you cover a more large scale.... and with an influence parameter you can control the density of the wave.... You thinks a projects like that can be possible ? So you can conver a large space, with less "Rays" (Replaced by waves) and the waves can be deformed by the contact of the surface collided, and after that he took this own initial form if she's not collide with other object and at this point we-re removing the wave for not computing in the void.
So for 1 ray lauch you send 1 wave with exemple "32 contact points" And this 32 contact points is the resolution of the "Waves" and you give the form are the launch and when he collide with the deformation of the curve you can get the data like the ray tracing but, more perforly and i think... is really i think more precisely.
And by varisously number of wave resolution you can create a parameter to adjust it automatically and create a real customisation of the Global illumination "Resolution".
Exemple :
32 Contact points per wave = LOW res
64 Contact points per wave = MED res
128 Contact points per wave = HIGH res
N Contact points per wave = CUSTOM res

And with a new parameter you can adjust the amplitute of the curve for getting a smooth or hard result, this parameter give really how the waves can be aborbated by the mesh if the collide is smooth or brutal.
You can integrate a weight system for "Points of wave " after N Ms or Seconds in the same place with bias of .05 ms if is 90% too close from the last position you remove 0.1 of weight of one points on the waves... And if the weight come to 0 you dissolve the points on the curve so he pass from 32 to 31. And you do the same for all points of curves ! So by this technics you can remove a problematics waves stucked in bad corner or complex surface like exemple a tree....
22
u/waramped May 03 '24
This field is called Wave Optics, and there is research in this area. One of the main problems when you take something continuous, like a wave, and then discretize it (break it into points), is you get aliasing. Especially since as your wave propagates out, your sample points will get further and further apart, making it worse. There could be for instance, a tree trunk in your scene, and your sample points could completely pass on each side of it, meaning you wouldn't see it. And as your wave bounces off geometry in the scene and spreads out, those sample points are going to become more and more "randomized" in relation to each other which will make things that are worse, even worse. The only way to really get around this would be to fire a wave with >=1 sample point per pixel, and then you're kind of back at square one.
All that being said, keep thinking outside the box! Maybe there's an elegant solution here and you could be the one to find it.
-4
u/Stimes59 May 03 '24 edited May 03 '24
This problems can be solved more simply i think ... Like put a system for an adptative subdivision as i already said and verifing the waves distance after distance everytime we subdivide and we collide or not :)
it's an idea
But some more researching is needed basically is just a draft from my brain 😂
But thank you :D
-1
u/Stimes59 May 03 '24 edited May 03 '24
Or you can integrate a weight system for "Points of wave " after N Ms or Seconds in the same place with bias of .05 ms if is 90% too close from the last position you remove 0.1 of weight of one points on the waves... And if the weight come to 0 you dissolve the points on the curve so he pass from 32 to 31. And you do the same for all points of curves ! So by this technics you can remove a problematics waves stucked
6
u/DrinkSodaBad May 03 '24
Sounds interesting. Though your wave geometry intersection might be more complicated, but curious what the final result would be like.
0
u/Stimes59 May 03 '24
This is for that we allow for deforming curve with adptative points for do close as possible from the shape of the surface
12
8
u/Kike328 May 03 '24
why a wave and not an entire 3d surface? and how do you calculate the entire integral continuum surface interactions? by discretization with random sampling and montecarlo distribution, which is basically path tracing…
6
u/vwibrasivat May 03 '24
voxel cone tracing. https://youtu.be/J4HVRMDfJNc?si=YmTumPl25fRn63C_
It is also possible to solve ray tracing analytically. There was a guy around Reddit who did this. Can't find him on my phone though.
5
4
May 03 '24
there's a paper from eugene d'eon and matt pharr that implements what they call "generalized rays", which have different properties than regular rays , like non linearity , and non locality.
In the end , this allows for effects like light interference , and iridescence ...
3
u/diggamata May 03 '24
That's exactly how sound waves are propagated. Their simulation is way more expensive than ray tracing though. It goes into the realm of thermodynamics. The only thing that comes closer to that in graphics is radiosity and we all know how expensive that is for real time graphics.
2
u/heavy-minium May 03 '24
This could be done...but why bother? What do you hope to achieve that way?
1
-1
u/TopNo8623 May 03 '24
I l0ve this! Maybe make the otter world from something simpler. Something with distance to surface to know better where to sample. Maybe.
30
u/delta_p_delta_x May 03 '24
This is in essence distribution ray tracing. Other related terms are cone tracing and 'ray bundles'.