NextPreviousHomeThe power of pixel shaders



michiel | 2 years ago | 10 comments | 10 likes | 1.5K views

chaver, Sma, songbaojin and 7 others like this!

A pixel shader is a small app that runs on your graphics card that is called for every pixel. BluffTitler stores pixel shaders in its effect files. Here's why this is a VERY powerful technique.

In the top left you can see the AdvancedMaterials\UVMapper effect applied to a picture layer. The results in perfect circles!

In the top right you can see the same show exported as a 3D model in the GLB format. The GLB format does not support pixel shaders. It supports colour per vertex, so all it can do is interpolating the 3 colours of the 3 edges of the triangle. This turns the circles into triangles.

Instead of using colour per vertex you could use a texture. This turns the triangles back into circles! But when you zoom in, it becomes blurry (bottom right) because the resolution of the texture is limited. In contrast, the pixel shader version remains razor sharp, no matter how far you zoom in!

The screenshots have been made using this installer template:
Picture\Star3D.bt




Share this on FacebookShare this on X

This is how the Picture\Star3D.bt show looks like exported as GLB and published on Sketchfab.

Very nice! But not as nice as the pixel shader powered BluffTitler version 😉

michiel, 2 years ago


what a striking difference.

Decentralized, 2 years ago


WOW !! That's awesome.

lightads, 2 years ago


Fantastic!!

LostBoyz, 2 years ago


Bluffpower 👌

Filip, 2 years ago

Thanks for these precisions. Gold medal for BT!

vincent, 2 years ago


That's awesome.michiel

liuyongcai, 2 years ago


soo nice...

bambamD, 2 years ago


Does Facebook recognize GLB format for a front header page?

lightads, 2 years ago


Amazing

chaver, 2 years ago


Comment to this article

You must be logged in before you can comment to this article. Login | Register

More by michiel

About michiel

Michiel den Outer is the founder and lead coder of Outerspace Software. He lives in Rotterdam, the Netherlands.

If he isn't busy improving BluffTitler, he is playing the piano or rides the Dutch dikes on his bikes.

890 articles 4.8M views

Contact michiel by using the comment form on this page or at info@outerspace-software.com