Author Topic: 3D Bricks  (Read 2521 times)

I don't like how the brick tops are flat, why not let them pop out?  :cookieMonster:

They would if they could.

But even if they could, it would just look ugly.

They would if they could.

But even if they could, it would just look ugly.
Ever seen Logic Bricks?

I believe this is 100% possible.

But, yes it would look pretty bad.

This would just lag, even if it's possible.

This would just lag, even if it's possible.

...

don't be stupid

This would just lag, even if it's possible.
tophius tried it out by making a 64x64 baseplate with studs. took 1 second to plant. think of it this way; every stud has 5 faces, multiply that by 64, then 64 again and you get a 64x64 baseplate.

doesnt mean to say it is impossible that there is a work around or something.

Bumpmapping is possible, isn't it?

a 64x64 baseplate still only has six faces (a regular stud also has six, not five. unless you just mean the tops? because that is five)
for each section to be protruding would mean multiplying 64x64x5 for the top part, and then adding five (total, not per direction) for the north-, west-, east-, south-, and down-facing directions
so I think you would end up with an unnecessarily large amount of polygons, and a really ugly 64x64 baseplate

okay, to be fair, that last part is just my opinion. but it's still more trouble than it's worth
« Last Edit: August 11, 2012, 04:43:45 AM by Night Fox »

Bumpmapping is possible, isn't it?
Normal mapping would indeed be very nice as I have demonstrated here: http://www.youtube.com/watch?v=VaAELYgp7vw

So let's do the math. You're a graphics whore and absolutely must have 3D studs. How many faces would it really add? Right now the brick top stud texture consists of 1 quad face. With 3D studs it would have 5 faces. So in total a textured brick has 10 quad faces. (Regardless of size I think.) A 3D stud brick would have (brickSizeX*brickSizeY)*5+10 quad faces.

Let's take the good ol' 16x baseplate. Without a 3D stud it has 10 quad faces. With a 3D stud it has (16*16)*5+10 = 1290 quad faces. Do you see the problem here? A single 16x baseplate with 3D studs costs 1290 quads. With that price you could plant 129 regular bricks. That is a single 16x baseplate.

Let's load a build! Say something average like a 75,000 brick build. An estimate I pulled out of thin air says that 25,000 stud tops are visible. That is (25000^2)*5+10 = 3,125,000,010 quad faces compared to the 250,000 quad faces that the build would have without the 3D stud.

"But I'm a graphics whore and I wan't shadows bitch!". As you wish. Let's destroy your computer.
High - 4x 2048 pixel shadow maps.  You are rendering the scene 4 extra times.
((25000^2)*5+10)*4 = 12,500,000,040
That's 12 billion. Now please never request this again.

Not to mention the shaders don't even like them:



Notice the shadows on the edges being forgeted up, also the lightning is completely wrong direction, if you'd use them and also use normal studs, you'd need to have them stuck in 1 lightning.
« Last Edit: August 11, 2012, 05:29:48 AM by LeetZero »

Port mentioned that using shaders to create the illusion of a 3D stud should work but I'm not so sure. Last I checked GLSL bump mapping was rather low resolution. I might be wrong though.

Port mentioned that using shaders to create the illusion of a 3D stud should work but I'm not so sure. Last I checked GLSL bump mapping was rather low resolution. I might be wrong though.
It can be done using vertex shaders. Not sure how you would tell whether a brick is a cuboid though (and not for, e.g. a window).

It can be done using vertex shaders. Not sure how you would tell whether a brick is a cuboid though (and not for, e.g. a window).

Windows is a "SPECIAL", cuboid bricks are simply "BRICK" in the .blb at the second line. That would be a way to tell.

Windows is a "SPECIAL", cuboid bricks are simply "BRICK" in the .blb at the second line. That would be a way to tell.
Ramps are special bricks and they usually have studs on top of them.

Each stud would suddenly become 10 extra polygons. A standard 32x32 plate would go from having 6 quads to having 5,125 quads.
« Last Edit: August 11, 2012, 04:10:38 PM by Squideey »