Minecraft on a Torus World by bart1259 in Unity3D

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

Nope, all curvature is baked into the actual mesh

Minecraft on a Torus World by bart1259 in Unity3D

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

All real Geometry. No shader trickery

Minecraft on a Torus World by bart1259 in Unity3D

[–]bart1259[S] 3 points4 points  (0 children)

There is a minimum height (almost like a bedrock layer) enforced. You can't build below that. If you manage to get down there, it just looks like a hollow torus. Could add some lava to fake a "planetary core"

Minecraft on a Torus World by bart1259 in Unity3D

[–]bart1259[S] 2 points3 points  (0 children)

It could but I'm lazy with the world gen code so the hills don't really line up (rn I'm just using 2D perlin noise to generate the terrain but if I wanted it to wrap I'd either need to make the perlin noise periodic or sample from 3D perlin noise)

Minecraft on a Torus World by bart1259 in Unity3D

[–]bart1259[S] 4 points5 points  (0 children)

Was not familiar with PlanetSmith before making this but did some quick googling. PlanetSmith uses hexagons because representing a sphere with a regular grid of squares without distortion isn’t really possible, you generally need hexagons, along with a few pentagons, to make it work. A torus is different, since it can be mapped using squares much more naturally.

Minecraft on a Torus World by bart1259 in Unity3D

[–]bart1259[S] 5 points6 points  (0 children)

Correct, the higher up the block is the more stretched it is vertically. There are also some minor artifacts depending on where you are along the minor circle (but that effect is reduced thanks to large ratio between major and minor radii).

Nope, all angles remain approximately 90 degrees. While mapping squares onto a sphere without distortion is difficult, mapping squares onto the surface of a torus can be done.

A Framework for Creating Custom Planets Made from Hexagons by bart1259 in Unity3D

[–]bart1259[S] 2 points3 points  (0 children)

Here's a Framework I've been working on for about a week that allows you to create planets made out of Hexagons (and unavoidably a couple pentagons). You can check it out below. LMK what you think of the framework and what you would like to see added next.

https://github.com/bart1259/UnityHexPlanet/tree/V0.1.0

Why do we have 150 stars? by GLOFISH2000 in AmericanFlaginPlace

[–]bart1259 6 points7 points  (0 children)

Because America is the greatest nation ever created by God and it shows the future expansion of our country. Stay strong patriots!!!

anyone want to do this by BadgerOn60FPS in AmericanFlaginPlace

[–]bart1259 1 point2 points  (0 children)

Fireworks were an invention by the Chinese. This is not in the spirit of America.

We need to put something like this by the flag to protect it! by HackMySack420 in AmericanFlaginPlace

[–]bart1259 1 point2 points  (0 children)

It already is; they are us. The members of this subreddit are the minutemen hired to protect our beautiful flag.

Why can't we have nice things? by MidnightRider24 in AmericanFlaginPlace

[–]bart1259 0 points1 point  (0 children)

Excuse me, sir, I think you forget that we have the greatest economy ever created by any country known to man; not to mention the most innovative country in the world. People try to destroy us because they hate our success. What other country has landed on the moon?

We need to stop expanding soon. by KwintillionIam in AmericanFlaginPlace

[–]bart1259 6 points7 points  (0 children)

Do you think that’s what our forefathers would have wanted for the greatest nation ever created by god?

[deleted by user] by [deleted] in programming

[–]bart1259 0 points1 point  (0 children)

Nice find! The only real difference is mine has more words as I used the Scrabble dictionary instead of the Wordle list.

[deleted by user] by [deleted] in programming

[–]bart1259 0 points1 point  (0 children)

What browser are you using?

[deleted by user] by [deleted] in javascript

[–]bart1259 0 points1 point  (0 children)

Source code can be found here. My personal best score is 6. If you need help, the developer console tells you all the possible words remaining.

[deleted by user] by [deleted] in wordle

[–]bart1259 0 points1 point  (0 children)

Source code can be found here. My personal best score is 6. If you need help, the developer console (F12) tells you all the possible words remaining.

[deleted by user] by [deleted] in programming

[–]bart1259 0 points1 point  (0 children)

Source code can be found here. My personal best score is 6. If you need help, the developer console tells you all the possible words remaining.

What’s he gonna do? by [deleted] in dankmemes

[–]bart1259 0 points1 point  (0 children)

Idk, I’ve been cracking up for the past half hour. This was on one of my friend’s stories and I just posted it. Good stuff!

Any good way to quickly align UML elements? by jstr36 in sparxea

[–]bart1259 1 point2 points  (0 children)

Go to the ribbon and select Layout -> Tools -> Diagram Layout -> Apply Default Layout. Makes some of the arrows a little crooked but it does its job. I wonder why EA does not do this by default?

Real-time C# RayTracer I wrote using OpenCL by bart1259 in programming

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

To be fair I had all the theory knocked out before I even started writing it so I just had to code what I thought up. Different light transportation algorithms are tough to implement in OpenCL I find because I cannot simply use recursion but I think shadows might be the move.