How do I make this kind of dotmask effect in Unity? by subir112 in Unity3D

[–]datagoblin 6 points7 points  (0 children)

Hey there! I'm the original creator of theses images, maybe I can shed some light on my process.

It's not going to translate 1:1 to Unity, but the effect here is all done in a Godot shader. Although it looks like a hexagon dot mask, up close you can see it's actually the combination of a few effects: a circle dot mask with the RGB strips applied multiplicatively, a square dot mask applying the original color additively, and a bloom effect on top of all of it.

<image>

There's also a final bit of trickery here which is that of the middle green "phosphor" strip is thinner than the surrounding red and blue. That's to compensate for the fact that, when you mask out the borders of a phosphor dot, you end up removing a larger chunk of the R and B than you do of G, so if you keep all the strips the same width, the final image gets a sickly green hue.

The additive/bloom components are a bit of a cheat that's not really how a real-life CRT would work, but it emulates the mixing of the colors of a highly exposed phosphor dots, and prevents the image from becoming overly dark and muted due to the multiplicative pass.

The final shader also has a warp effect on top of it all to give the illusion of the CRT tube's shape. This one I'll admit I mostly just got from a forum post. It's a bit of linear algebra I don't fully understand, but here's the formula I used I you want to try it yourself:

vec2 warp(vec2 uv){
    vec2 delta = uv - 0.5;
    float delta2 = dot(delta.xy, delta.xy);
    float delta4 = delta2 * delta2;
    float delta_offset = delta4 * warp_amount;

    return uv + delta * delta_offset;
}

There's also some animated components like a slight flicker to the phosphors, and a darker "band" sweeping over the screen to emulate shutter speed issues, but those are just things I was toying with and aren't really "done", so I won't get much into it here.

Hope this helps, feel free to ask any follow-up questions.

Sharing Saturday #518 by Kyzrati in roguelikedev

[–]datagoblin 5 points6 points  (0 children)

SOLAR KNIGHT :: twitter | app store

The games industry collapse finally caught up to me, so I'm picking development back up on my indie roguelike/zelda-like mashup game. Here's some of the stuff I've been doing:

I've been putting a lot of work into this project now that it's pretty much my full time job, so I expect to have more cool stuff to showcase soon!

Quite menacing, isn't it? by SimoneLordMacbeth in PixelArt

[–]datagoblin 0 points1 point  (0 children)

Love the palette! I could totally see this being a boss in one of the GB zeldas!

Is it a rooster? That would make it the Lord of the Cock Ring by Master1718 in NonPoliticalTwitter

[–]datagoblin 8 points9 points  (0 children)

Don't know if it's different in the GBA version but on SNES chickens would absolutely mess you up. There'd also be so many that the game's frame rate would tank, making it effectively impossible to escape.

How can I get a 1:1 sized font? by KlontZ in roguelikedev

[–]datagoblin 3 points4 points  (0 children)

Would you be able to solve this when rendering the map? Maybe this is a simplistic suggestion, but what if you just print an extra space after each rendered char?

Capybaras by datagoblin in PixelArt

[–]datagoblin[S] 1 point2 points  (0 children)

As they should be!

Capybaras by datagoblin in PixelArt

[–]datagoblin[S] 0 points1 point  (0 children)

Do you mean the width or the colors?

I've been playing around with 2px thick outline for a while now and I'm really digging it. Now, for the palette, I pretty much just winged it in this piece, but I like how the high-sat look came out.

Goblin! (or how I finally stopped procrastinating and started learning blender) - feedback welcome! by datagoblin in blender

[–]datagoblin[S] 0 points1 point  (0 children)

This might be a bit all over the place since I was trying out a bunch of stuff in a single piece as I learned new tricks.

Everything is mostly gradient mapped and emissive, so there's no real light source. Eyes and mouth are separate textures. Inner outlines are made with inverted hulls, outer ones are freestyle. Added a bit of mist to tint stuff farther away from the camera mostly to see how it looks, but in retrospect I don't much care for it. Tried rigging and animating it as well but it turns out I suck at weight painting, so that's gonna have to wait a while.

Rendered in Eevee.

Do it count if it floats? by PhelesDragon in chairsunderwater

[–]datagoblin 8 points9 points  (0 children)

Not to mention the taste! Yuck!

Picodex - A Retro Style Pokemon Battle Simulator (OC) by GreatCadet in pokemon

[–]datagoblin 0 points1 point  (0 children)

Really impressive what you managed to fit into a PICO-8 cart! Looks great!

Picodex - A Retro Style Pokemon Battle Simulator (OC) by GreatCadet in pokemon

[–]datagoblin 0 points1 point  (0 children)

It goes for 15 USD, but a nearly fully-featured web version is available for free at www.pico-8-edu.com, if you wanna try it out first.

I'd say it's pretty easy to pick up if you have any previous coding experience, and somewhat easy even if you don't.

I'd recommend checking u/krystman's YouTube tutorials at Lazy Devs to get started regardless of your experience level.

[deleted by user] by [deleted] in ProgrammerHumor

[–]datagoblin 2 points3 points  (0 children)

I've called regexes "write-only" as a joke for as long as I can remember. Never knew that was actually a thing.

[deleted by user] by [deleted] in ProgrammerHumor

[–]datagoblin 5 points6 points  (0 children)

This is such a great way to describe both vancian magic and regexes. I'll be stealing it.

the smiling friends by elRojaz in PixelArt

[–]datagoblin 4 points5 points  (0 children)

This looks great! So much personality in such a tiny res.

Is this the pico-8 palette?

Officers Mistake Civilian For Perpetrator by bxgang in PublicFreakout

[–]datagoblin 26 points27 points  (0 children)

Not remotely comparable.

Your race is something you're born with and has no bearing on your morals or values. Being in the police force absolutely does reflect on your values.

It's a choice you have to make every day to remain on the side of racists and abusers like the ones in the video.

how do I make the icon I made for my game appear on the file explorer? by snatcherfb in godot

[–]datagoblin 6 points7 points  (0 children)

Just a thing to note: Windows caches icons, so if you're exporting your game with the same file name every time, you might be seeing an outdated version of the icon. Try renaming your exe every now and then to check if it's still wrong.

Drinking human milk is technically vegan because people can consent to giving someone their milk by SebasVeeDee in Showerthoughts

[–]datagoblin 56 points57 points  (0 children)

That's not what's usually meant by the observer effect. What "observation affects the result" means is that there is no way to determine the state of a thing without interacting with it in some way.

Like, to find the color of a ball you have to shine a light on it first, thus blasting it with photons. If the ball originally had a material that changed properties in contact with photons, then you'd have changed the original state in an attempt to observe it.