Quick Sign In:  

Forum: VirtualDJ Technical Support

Topic: Textures on Shaders not rendering right using Metal in OS X.
I'm on a 2019 MacBook Pro, using the latest version of Home VDJ (v8.5 b5929). I'm getting into making video mixes so I'm downloading shaders (for those that don't know - they're mathematically created graphics that sync with the beat of the music and can be projected on a wall or TV, or recorded like an audio track for sharing. They can be found at https://www.shadertoy.com/browse (the ShaderToy's website).

In the Performance section of the Options, there's the option to use the Apple-specific graphics rendering engine named Metal (see https://developer.apple.com/metal/ ). It takes the heavy workload of generating graphics off the shoulders of the CPU and gives it to the GPS, the on-board graphics system. You're able to create gorgeous graphics with textures, light sourcing, all the effects intended. Make sure you select "Yes" for "experimentalUseMetal', and "No" for "experimentalLowPowerGPU" for the full effect.

Well, it's not quite all the effect intended, and that's why I'm writing this. There's something about how VDJ is using Metal to texture-map onto the polygons that isn't quite there. It's doing something I'll call "quartering" the textures.
https://www.shadertoy.com/view/MscGzf | view on shadertoy | copy link

... This shader is called Square Sin Curve. As you can see, it uses trigonometry to create a rippling curve on a square checkerboard floor. in Metal, the floor isn't checkerboard. It's "quartered" with striped separating the four quadrants of the texture... https://imgur.com/a/cnSgJq1

Here's one that shows it in its most basic form. This shader
https://www.shadertoy.com/view/MlXGWf | view on shadertoy | copy link

is called Xor - Cool Lake and it's just a texture, a picture, of stones and a ripple effect has been added to make it look like the bottom of a river. It's gorgeous. But in Metal, https://imgur.com/a/xsihLuw ...this is what you get. The top-right is stones. The bottom left is a monochrome color. And the other two quadrants look like they're dragged out representations of the single row and column of pixels of the pebble texture.

Once you notice it, you see that dragging everywhere.
https://www.shadertoy.com/view/4scXzn | view on shadertoy | copy link

This is Winding Menger Tunnel and even in Metal looks great. But when you do look at it in Metal, knowing that the texture has been quartered... https://imgur.com/a/IlFOSa6 ...you see the scouring on the surface and the lack of the texture. It's immediately noticeable on the floor but as you look closely you see the metal and even the screens have the same rendering glitch.

I have a few hundred shaders on this MacBook and every one of them that uses a texture as part of the assets gets rendered wrong. Sky textures look like they have Saturn rings in them, but not deliberately. Landscapes that use the texture for bump mapping have huge gouges cut into them, as if a hairbrush crashed down from space at a very acute angle.

Is there a setting to correct this? Is this something that has been noticed and is being worked on?
 

geposted Mon 22 Jun 20 @ 2:57 pm
 

geposted Mon 22 Jun 20 @ 4:36 pm
AdionPRO InfinityCTOMember since 2006
Will be fixed in the next update. It will require to re-download the existing shaders though.
 

geposted Sun 28 Jun 20 @ 9:11 am
I finally got around to re-reloading them and WOW they are so much better. Some of the shaders were using shading or lighting that didn't render before. Absolutely incredible.
 

geposted Sat 08 Jan 22 @ 5:23 am