Snap! 3D textures
This is my version of 3d texturing in snap!
Hey, that’s pretty cool. I tried doing something similar when beetle blocks first released in vanilla Snap!, but it was too tedious to work with so I never finished. Maybe you should try examining the pixels of a costume and making a texture from there?
I really hope some sort of “3D revolution” finally starts in Snap! That would make me happy
So, I use the texture block which make a 2d array, both columns and rows are 8 so they are 8-bit textures then, we draw the textures the first 8 are drawn and then it repeats doing the second layer of 8 and it keeps going until the last layer (which is the 8 layer).
That’s not actually what 8 bit means, 8bit means you have eight bits to describe the colours available to you, 2^8 == 256 colours. So you have 2 bits for each component colour (R, G, B) and transparency (A). It’s extremely limited colour set and was mostly used in ancient games… and some modern games for some reason nostalgia is in…
Also, my machine isn’t showing it properly… unless it’s meant to be L shaped? Which isn’t what I call 3D texturing.
Most 3D software fakes that with a normal map, which uses mostly a greyscale effect over the top of the initial texture which is then used to simulate depth over the top, so the lighter grey is a raised point, where dark or black is deep.
But Yeah, Snap does need more 3D stuff. I’ve been wanting to do that for ages, but I suck at everything but knowing lol (and I know nothing LOL) (Also, I want to do it a specific way, and well… that stuff isn’t written in snap! and I’m not smart enough to translate it)
I have been working on a 3d block library (not beetle) and have made a few blocks that’s go hand in hand. Although not much is done yet, and I use binary list mapping.
heres a link to what I have so far: Snap! Build Your Own Blocks
Nice. I’m not familiar with that technique, but that sounds cool!
Yeah, Ideally, I want to do a whole series of videos on the history of engines, specifically a certain branch of engines and their alternatives, but well… as I said before, I can talk the talk, but walk the walk? Nope lol, but when I achieve that? You’re all DooooooooooMed (You’re forever safe, I’m dumb lol)
That’s perfectly fine! Most imagers use a literal drawn map, and use raycasting on the map because it’s easier. But my method (not actually MINE) uses list mapping due to how easy and diverse it can be in custom blocks (meaning you can create the maps easily using binary list mapping, instead of being stuck to draw them out each time) then the imager (update block) displays it. That’s what’s nice about list mapping. You can create maps easier.
Yeah. Making a map editor is always easier than drawing a map, because once you have that toolkit in place? You can tweak maps, whereas if you’re using an image? You’ve got to edit the image elsewhere and then re-upload it to snap!.
You’re on the right track. Keep up the great work. (Oh also, it turns out I AM familiar with that technique, I’ve just never heard it called that)
Exactly! Same thing with these
Create map
Blocks… that draw fixed maps. The imager takes a list and makes a map with is then displays play position inside the map. Diversity! Although this will take a while with me not having a lot of time on my hands ![]()
Yeah, I never got mine working, but I was aiming for the same effect from a different route. You’ll get there tho, because you’re working on yours still. I rage quit lol.
Well. Not quite. There was a couple other things in the way, but yeah. Good luck.
We need a new better 3D library.. Its slow if its made in Snap!
if only there’s turbowarp made for snap!
Snap really isn’t slow. The thing is, snap is a teaching tool, and it’s primarily designed for teaching concepts, it’s not a performance engine. The thing is though, it COULD be, or more accurately, it could be used to build a performance engine/demonstrate the workings of such things, but that’s not the priority of the existing dev team and rightly so.
For that, they’d need dedicated person to do that work. I’d happily volunteer tbqh. (that,’s probably not a good idea lol)
isnt there a compile block or something in the dev mode or dev version (or both) (i forgot which)
you shift-click the
and enable JIT compiler support. it needs js extensions enabled as well tho
It’s not made in Snap. Beetleblocks is a javascript mod
Yeah, that would be what a better 3D library, in javascript like beetle. I was saying that a 3D engine, if implemented in Snap, would be slow.