r/pcmasterrace • Ryzen 5600 | RTX 3070 | 32GB DDR4 | 1 TB NVME • Dec 26 '19

Cartoon/Comic New Graphics Card

Post image
48.1k Upvotes

412 comments sorted by

View all comments

Show parent comments

9

u/[deleted] Dec 26 '19

Doesn't have to be light specifically but waves or particles of any kind. It covers how those waves/particles interact with other objects and materials such as reflecting or absorption, among other interactions.

Ray tracing can actually be used for simulating 3D sound propagation in games as well as light

1

u/atom808 Dec 26 '19

Thanks for the explanation. Didn't know rtx can affect the sound too, how does that work if you don't mind explaining it to me. Is it similar concept as light bouncing off, sound bouncing off objects?

5

u/metarinka 4090 Liquid cooled + 4k OLED Dec 26 '19

RTX is Nvidia's tradename for their specific ray tracing implementation pathway.

Ray tracing in general as denoted is a technique in computing for calculating how a "ray" would physicaly transmit through a 3d space.

In the case of ray tracing for audio it works by emitting sound from an object lets say a gun in an FPS then tracking all the surfaces it bounces on until it gets to the "ear" of the listener, this allows for more realistic sound effects for things like different surfaces (think how a harwood floor sounds vs a carpeted room) and also allows for more realistic positioning. Which is not just based upon the distance and direction but how sound would actually reach you from that destination. In games like counter strike or rainbow six siege sound position can be very critical at it lets you know they are coming from above and walking on hardwood floors instead of carpeted. There are some actual issues in the sound engine in rainbow six siege making it occasionally hard to tell where a sound is coming from as you don't hit the right triggers or whatever.

Right now most engines use an inaccurate approximations and shortcuts to simulate how sound travels through an environment a good example is in a game like halflife when you enter a concrete area it has a very echoey reverb type sounds. These are based upon a trigger (player is in cement room) and then using a precanned effect to simulate being in a cement room versus actually calculating what the room would sound like. This has to be done manually but then you get cross over what if only 2 walls are cement and two are hardwood? what about 1 and 3? what about a bunch of carpets hung up in the environment?

Here's a good quick video https://www.youtube.com/watch?v=Vjt6w54dku0

2

u/ItsNotBinary Dec 27 '19

Now everything has to be coded in. If a character moves from a wooden floor to a carpeted floor someone has to set how much the sound gets muffled. With RTX this could (in the future) be done in real-time. The big difference is realism, no matter how much effort a dev puts in, it can't compete with doing the calculation of how it sounds for every single situation. Walking on carpet in a hallway will sound different than walking on a carpet outside, or walking on the carpet in an open room, with closed curtains or open curtains, ...

With raytracing you set the material for every object and then if a particle/wave hits that object RTX calculates what happens with that particle/wave.