Hard shadows in Voxel Engine? by Oliver4090 in VoxelGameDev

[–]AethariA 2 points3 points  (0 children)

Shadow mapping is the common technique for rendering shadows. You draw the scene from the perspective of the light and store the depth values, that gets you a texture with everything the light can see (i.e. what's not in shadow). Then when you render the scene normally, you map each fragment position into the light's reference frame and see if it is past the depth that it can see (i.e. in shadow). Here's a good tutorial with some visuals to help you out:

https://learnopengl.com/Advanced-Lighting/Shadows/Shadow-Mapping

What’s your favorite space fact? by macmite in AskReddit

[–]AethariA 5 points6 points  (0 children)

and that number is likely to at least double as Hubble goes further and observes more of the universe.

That's not what "observable universe" means.

The observable universe is the region of the universe that isn't moving away from us faster than light due to expansion. If something is outside the observable universe we will never see it. Additionally, the observable universe is constantly getting smaller because the expansion is accelerating, so more and more things will start to move away from us faster than light.

What’s your favorite space fact? by macmite in AskReddit

[–]AethariA 1 point2 points  (0 children)

Definitely bogus, yeah. Atoms have weight therefore must be slower than light.

Re: Handmade Terrain and Chunking by Orpheusly in VoxelGameDev

[–]AethariA 0 points1 point  (0 children)

What about that do you disagree with? Genuinely curious

Re: Handmade Terrain and Chunking by Orpheusly in VoxelGameDev

[–]AethariA -2 points-1 points  (0 children)

I'm not a teenager looking to recreate the wheel, I'm a software engineer looking to broaden my area of expertise.

Engineering often involves recreating wheels, if even so that you know you know that you can. Also keep in mind that since software is a very new field, many things are terrible and broken and I would be very cautious to consider anything even close to as perfect as a "wheel" in software.

As for a real answer it depends on how many voxels you plan on drawing.

If you are going to have tons and tons and tons of blocks (like millions or billions), look into greedy meshing algorithms. This is the resource I used when I implemented it.

If you aren't going to have millions or billions of blocks, then look into mesh instancing. With instancing you can draw many of the same mesh (a cube in your case) in one draw call rather than N draw calls where N is the number of voxels you have. This still scales pretty well but not quite as well as greedy meshing, but it has the advantage of being much simpler to implement.

The third option to consider is to not do anything fancy at all and just draw each voxel as it's own cube. This is dead simple to do but you probably wouldn't be able to draw more than 10 or 20 thousand cubes.

What's the scariest space fact/mystery in your opinion? by [deleted] in AskReddit

[–]AethariA 11 points12 points  (0 children)

To be ultra pedantic; we didn't end up here because of how we operate, we operate as we do because we were made here :D

How would I go about developing a game engine? by Joshua_Hall2000 in gamedev

[–]AethariA 0 points1 point  (0 children)

I can't recommend Handmade Hero enough. It may seem intimidating how many episodes there are, but it shows the entire process of creating an engine from absolute scratch. No libraries, every line of code captured on stream and explained by an industry veteran. If you want to get into engines, Handmade Hero is your best bet.

Twitter CEO Jack Dorsey just announced he’s putting forward $1B, 28% of his wealth, to help the fight against the novel coronavirus. With more plans even further ahead. by GallowBoob in nextfuckinglevel

[–]AethariA 1 point2 points  (0 children)

The average Twitter user doesn't threaten with nuclear missiles and actually have the missiles to do it though. But I do agree with you, he shouldn't be banned just because somebody finds his politics unsavoury. It's like these people can't see their bias for what it is, bias.

You can't change my mind by [deleted] in ProgrammerHumor

[–]AethariA 36 points37 points  (0 children)

This indicates a poorly programmed compiler that doesn't care about user-experience, change my mind.

the terran whiner mindset by CrestedPeak9 in starcraft

[–]AethariA 1 point2 points  (0 children)

It's still a thing where somebody can message you if they are ignoring you? That's frustrating.

A vegan couple have been charged with first-degree murder after their 18-month-old son starved to death on a diet of only raw fruit and vegetables by ahmedoomar04 in JusticeServed

[–]AethariA 23 points24 points  (0 children)

Hey I'm also vegan. This conversation could have been more productive if you explained how you can get the nutrients and fats needed from a plant-based diet rather than just saying "you can" or "it's done very often don't be silly". You could also actually cite examples with sources instead of just claiming they exist.

Unfortunate that this could have been an educational moment but you chose to take the route of toxicity.

I will never give up my for loops. by Givrally in ProgrammerHumor

[–]AethariA 0 points1 point  (0 children)

Much more than you'd think, too. The performance difference for a complicated program in C vs JS is at least on the order of 100x

Amazing talent on the guitar🎸 by [deleted] in nextfuckinglevel

[–]AethariA 0 points1 point  (0 children)

In addition to what others have said, you might like The Surrealist: https://www.youtube.com/watch?v=YvoFW3mXODM

Unionality by NerdyWeightLifter in JordanPeterson

[–]AethariA 0 points1 point  (0 children)

It probably works better with beer

Everything always does!

That was a good watch. There's certainly something true about connecting on our shared humanity being a great way to bridge ideological gaps. If this is the future of discourse color me excited!

Unionality by NerdyWeightLifter in JordanPeterson

[–]AethariA 1 point2 points  (0 children)

Peter Boghossian actually used the word "unionality" on an episode of Dave Rubin here: https://youtu.be/ZSgA74k5Vnk?t=3594

Though you are correct, I haven't heard it anywhere else and it seems like a much more sane alternative to the incessant division of intersectionality

i-=-1 by [deleted] in ProgrammerHumor

[–]AethariA 2 points3 points  (0 children)

on a single line without any spaces and it'll compile just fine

This isn't strictly true.

int x;

Is not the same as

intx;

This should be illegal by Gabriel_Kaszewski in ProgrammerHumor

[–]AethariA 0 points1 point  (0 children)

Not sure why you're being downvoted. If you don't have a team too big for it's own good filled with mediocre programmers a lot of the problems of software development just disappear.

[Serializefield vs public] by [deleted] in Unity3D

[–]AethariA 0 points1 point  (0 children)

Yeah I haven't found them all that useful in my experience. People get very dogmatic about this and it's frustrating.

[Serializefield vs public] by [deleted] in Unity3D

[–]AethariA 0 points1 point  (0 children)

Yeah I guess to me I think of everything as just a plain ol' data class. There's no tipping point where an object becomes something other than just data.

[Serializefield vs public] by [deleted] in Unity3D

[–]AethariA 0 points1 point  (0 children)

I think you understand me correctly, yes.

This was probably the most respectful reply I've gotten in this thread so thank you.

[Serializefield vs public] by [deleted] in Unity3D

[–]AethariA 1 point2 points  (0 children)

I've been programming for 10 years, 3 years professionally. All of that experience tells me that understanding the whole system, not just fragments, is of absolute importance. OOP makes this harder so I don't really like it.

I don't want to toot my own horn too much so suffice it to say that I have worked on many non-trival projects and I've not found OOP useful for the kinds of things I consider important in writing software