4.7 preview: refraction doesn't works in game

I’m using engine version 4.7, from github’s 4.7 branch, compiled from up to yesterday’s commits.

Refractions are working in the editor viewport, however when you press Play, they no longer work.

You can easily see this in any sample game, add the particle P_Fire from the starter content to the map and notice that distortion works in editor, but not when you press play.

PS. Graphic settings are all on Epic.

Hi Lxiguis,

I’ve tested this with the refraction in our latest internal build along with the preview release of 4.7.2 with no issue.

I used the P_Fire particle initially testing with all the flame parts of the particle disabled. I also took just the M_Heat_Distortion material and applied it the chair pictured below.

CL for preview: 2397709
CL for internal build: 2400360

Here is the results I had:

Preview Release

Latest Internal Build:

What CL are you currently on?

Thanks!

Tim

No, the issue persists with the updated drivers.

Yeah that’s definitely a bit more specific. I was seeing the refraction even with the particle just like you do but I didn’t move around the mesh to see it stopping like that. I’ll look into this more on Monday when I’m back in the office. I’ll check our latest internal build and see if this is still happening.

Also, looking at the CL which is 2401331 you’re running the Bleeding Edge build. This is the latest and is prone to things not working correctly. The internal build I use for testing is our “promoted” QA pass version. This has been through the ringer by QA and verified to be working in a stable enough version to move forward. Often the Bleeding Edge version can crash and just break things that will often be resolved in a couple more days worth of commits. So technically you’re running on what will become 4.8 and not 4.7.

Regardless I’ll be glad to look into this for you.

Thanks for the video. That’s always helpful with some more specific things like this! :slight_smile:

Tim

Edit:

Sorry to blow this up with continual posts. :confused:

That is listed as 4.7. My interanl build which is listed at 4.8 is the CL above 2400360. This is probably something to do with the new “preview” method that we’ve moved to. So many numbers to keep up with. haha.

I’ll let you know when I check it out on Monday. Thanks again!

Hmm, it doesn’t says on the About screen. But this was the latest commit when I built the engine:

https://github.com/EpicGames/UnrealEngine/commit/4ee392c1500025dedba4317696f64fd445bd39ce

I ran some more tests and noticed that in static meshes distortions always work fine. The problem is in particles. I now noticed that distortions do show up, but only at certain angles. This is better explained by a video:

I don’t think this is a particle bounds issue, otherwise the flames shouldn’t be rendered as well, right?

In the case of my game, distortion is used on a beam weapon (something like the Link Gun alt fire). I didn’t notice when, if in 4.6 or 4.7, but distortion on the beam is never working now, either seen from first person or seeing someone else shoot.

Attached the test particle. Tested it by creating a new first person project with starter content.

I am running Windows 8, my VGA is a Radeon 7870, driver version 14.10.1006 (Catalyst 14.4). There’s an update available, I’ll try it now and post an update.

Tim,

I want to say there is a refraction bug when using it in conjunction with sprites, if you have a static mesh with a refractive material in view along with the particles they render properly.

We have a newer build with a fix for this, but I am not sure if it has gone out in a public build as of today.

No problem Tim, so many branches eh :wink:

homeRye – yes, that’s exactly the problem! I put a refractive material on a mesh on my test level, and when that mesh is in view, my beam weapon’s refraction works; when it is not, it doesn’t.