Mesh Blocks - PlanetSmith Episode 6

Ойындар

Join our Discord to learn more: / discord
Wishlist now on Steam: store.steampowered.com/app/25...
Follow Project on Kickstarter: www.kickstarter.com/projects/...
Previous Episode: • Hexagonal Textures - P...
Follow us on X: x.com/PlanetSmithGame
In this episode I talk all about Mesh blocks, a new type of block that uses a custom model. This was a challenge to get working but allows for great performance and lots of opportunities for the future.

Пікірлер: 108

  • @axlvc509
    @axlvc5093 ай бұрын

    I am genuinly looking forward to the next video every time. The underlying mechanism, how everything works is very interesting.

  • @Solitario9475
    @Solitario94752 ай бұрын

    This series has taught me that maybe it was good that I kept failing to learn code xD.

  • @sanderbos4243
    @sanderbos42433 ай бұрын

    Being able to place as many of them as you want without having to worry about lag is awesome

  • @sumbuddy4088
    @sumbuddy40883 ай бұрын

    I wonder what happens if you place a model on the pentagon?

  • @kallethoren

    @kallethoren

    3 ай бұрын

    Good question, hopefully he answers that in a later video. The pentagon intrigues me

  • @IncandescentGames

    @IncandescentGames

    3 ай бұрын

    At the minute the game crashes as its a special case hasn't been written yet

  • @635574

    @635574

    3 ай бұрын

    Maybe you need to rewuire both model variants or just not allow blocks without penta be placed there.

  • @lemonlordminecraft

    @lemonlordminecraft

    3 ай бұрын

    @@IncandescentGames We love edge cases

  • @josemembreno3134

    @josemembreno3134

    3 ай бұрын

    @@lemonlordminecraft more of a "face" than an "edge". 😉

  • @Gnomable
    @Gnomable2 ай бұрын

    Congrats on getting that working! That's huge that you can add custom meshes into the game.

  • @MerlinSpace
    @MerlinSpace3 ай бұрын

    If a man places his opening braces on their own line, I will most certainly join his discord

  • @635574
    @6355743 ай бұрын

    I was ready to ask how you handle scaling of blocks of different heighs but we just got the answer. Now ineed to know what happenes to playwr scale and do we scale with the blocks

  • @prime-aerospace
    @prime-aerospace3 ай бұрын

    Amazing, I'm super excited for realese

  • @Jackson-ym6ux
    @Jackson-ym6ux3 ай бұрын

    Watching your creative process through these videos is so inspiring. Keep it up dude!! I can't wait to force my friends to play this with me, haha.

  • @tsitski
    @tsitski3 ай бұрын

    cool solution to the stretching problem, though how are you going to handle interactions for the blocks now that they are part of the mesh? (like to open the barrel for example) also, idk if this is just something you'll avoid but being able to handle animations like the chests in minecraft would be great, and I'm just imagining the nightmare you'd have to go through to get that working with this mesh system, maybe adjusting the mesh through a shader to fix the stretching issue would be ideal, then you can use game objects instead of the meshing thing, and then use gpu instancing to hopefully save performance, though I'm unsure if the game object overhead is too much even with gpu instancing, just a thought hope these questions don't keep you up at night lol

  • @IncandescentGames

    @IncandescentGames

    3 ай бұрын

    I already have a solution for this. Interaction is easy as the triangle ID is used to work out the block. As for animations this will require a block swap to a GameObject for the duration of the animation, i think MC does this but im not an expert in how MC works

  • @tsitski

    @tsitski

    3 ай бұрын

    @@IncandescentGames ah that's pretty clever, best of both worlds

  • @MarkWiemer
    @MarkWiemer3 ай бұрын

    This is amazing stuff. That 100 FPS demo made me so excited for the future of this game, might even be my way to get into modeling! Happy to be a Discord member :)

  • @dialog_box
    @dialog_box3 ай бұрын

    a thought just occured to me. how are world coordinates going to be handled? my first thought would be latitude and longitude. and while that works for describing, say, the player's location on the planet, it doesn't really work for identifying specific blocks. due to the nature of the icosphere base you're using for the voxel grid, you couldn't possibly have every voxel correspond to a set of integer coordinates if you're using a radial coordinate system. so my next thought would be to somehow use the triangles of the icosahedron. i looked it up, and it seems like "trilinear coordinates" would be the way to go. that at least lets you specify a voxel within its triangle on the globe. so the last remaining question would be how to specify the triangle in question. for this, i guess you could just number them, since there's only twenty. so a set of coordinates in planetsmith could look something like: 17 (92, 16, 52), which corresponds to a voxel within triangle 17, which is 92 blocks from side A, 16 blocks from side B, and 52 blocks from side C. i'm still workshopping this a bit in my head, because i'm fairly confident it could be simplified. but it's a start!

  • @IncandescentGames

    @IncandescentGames

    3 ай бұрын

    You guessed right that's how it curently works, a position has x,y,z,w with w being the triangle

  • @dialog_box

    @dialog_box

    3 ай бұрын

    ​@@IncandescentGames ah cool! i thought about it a little more though, and i actually think you can reduce it to just three components (not counting elevation). i'll post about it on the discord later!

  • @littlebitmoreksp
    @littlebitmoreksp2 ай бұрын

    thank you for having your video here, this means a lot to me today, I needed a good distraction and your video has served that purpose

  • @flameofthephoenix8395
    @flameofthephoenix83953 ай бұрын

    3:33 Unless you're me and foolishly forget to make it possible to reference vertices as opposed to define them for each triangle individually which as it turns out is painful to work with.

  • @nega-guy
    @nega-guy3 ай бұрын

    Awesome work.

  • @JadenAllen
    @JadenAllen2 ай бұрын

    I may have missed it in the video but when assigning triangles you must assign them in a clockwise direction. Counter clockwise would render the face inside out

  • @DrTortoisePHD
    @DrTortoisePHD3 ай бұрын

    looking good

  • @TheQxY
    @TheQxY3 ай бұрын

    If the world is sperical, does this mean the blocks taper in height? And what if you dig down, will the blocks get narrower and narrower? What happens if you dig all the way down? Will the blocks be extremely narrow? What happens if you build very high, will the blocks become very wide?

  • @Billabong1264

    @Billabong1264

    3 ай бұрын

    There's a world limit (at the top and bottom) that stops you before it gets too noticeable

  • @amaryllis0

    @amaryllis0

    3 ай бұрын

    The proper way to do this is to start with a single block in the center of the planet and then subdivide shell layers as the blocks become too warped. So like. A 1x1 cube inside a 2x2 rubix cube inside a 4x4 rubix cube, and so on

  • @morgan0

    @morgan0

    2 ай бұрын

    @@amaryllis0 or planets in the shape of a cube, then there’s no distortion of blocks, since it’s distorting the surface instead.

  • @LacklusterFilms
    @LacklusterFilms3 ай бұрын

    A vr mode would be really cool for this game

  • @elitegolem6564
    @elitegolem65643 ай бұрын

    Beautiful game so far. Always wanted a Space Minecraft like game.

  • @ArcadiaP
    @ArcadiaP3 ай бұрын

    -7.4 dB on the audio for this upload, better than before, but you still need to bring the audio down quite a bit. The stark difference between other videos and something like this one is massive.

  • @HJ-gg6ju

    @HJ-gg6ju

    3 ай бұрын

    Just lower the volume??

  • @IncandescentGames

    @IncandescentGames

    3 ай бұрын

    Thanks, I will, I was just doing an auto levels

  • @ArcadiaP

    @ArcadiaP

    3 ай бұрын

    @@HJ-gg6ju No, when KZread forces normalization it turns people's video quieter than it should be so I went up turning my own audio to adjust for the difference. Go listen to a video with +3 to like 2 dB changes by KZread and watch someone with -10, it's really bad.

  • @amaryllis0
    @amaryllis03 ай бұрын

    Have you considered doing a kind of matching cubes on certain block types? So planks would change shape depending on their neighbors to firm flat walls, instead of the inevitable zigzag of a hexagonal line. Because currently it's like Minecraft if you could only build on diagonals (non axis aligned), and even master mc builders rarely ever build on diagonals. I really think it's critical in order to appeal to builders

  • @redfoxsuperstar1
    @redfoxsuperstar13 ай бұрын

    Bro, I'm so excited for this to come out

  • @2_Elliot
    @2_Elliot3 ай бұрын

    Still here from episode one. Love the constant progression and consistency! I was wondering if you were planning on there being a solar system with multiple different worlds to explore in the same game save. I think this would really make the game stand out, along with allowing for more diverse biomes.

  • @IncandescentGames

    @IncandescentGames

    3 ай бұрын

    Yes. Planets will all be very unique and full of life and in terms of gameplay be similar to Dimensions in MC

  • @zaxolotl
    @zaxolotl3 ай бұрын

    This is super cool, and being able to have mesh blocks is a great addition! You should maybe shrink the width of the barrel so that they dont touch each other side by side though, they look... oddly fat, honestly Lol

  • @IncandescentGames

    @IncandescentGames

    3 ай бұрын

    Definitely they were made this way to make debugging easy

  • @zaxolotl

    @zaxolotl

    3 ай бұрын

    @@IncandescentGames that makes sense ^^

  • @jonasrayet9369
    @jonasrayet93693 ай бұрын

    amazing stuff as usual ;)

  • @HistoryOnPaper
    @HistoryOnPaper3 ай бұрын

    NICE

  • @gierdziui9003
    @gierdziui90033 ай бұрын

    this game is very awesome and interesting! it would be super cool if you decide to one day add an orbiting moon and other planets and a way to fly to them :D

  • @WhaIHuhWhatDoYouMean
    @WhaIHuhWhatDoYouMean3 ай бұрын

    I really appreciate your dedication to optimization. Had you gone with the first option for placing meshes, I doubt anyone would've batted an eye. Poor optimization of things like meshes and entities are all too common in indie games.

  • @TimmyGC
    @TimmyGC9 күн бұрын

    "And the game would turn into a slideshow" -me trying light Minecraft shaders on my computer

  • @bruvance
    @bruvance3 ай бұрын

    oh I really like those pots they fit very well

  • @SadPinkDino
    @SadPinkDino3 ай бұрын

    THIS GAME LOOKS SO COOOL!

  • @Decoding_Master
    @Decoding_Master3 ай бұрын

    use a better colour palette because this always looks like it's sunset even when it's day. Use some colourful pallet

  • @IncandescentGames

    @IncandescentGames

    3 ай бұрын

    A lot still to change with looks and lots to improve. I'm focused on function just now but I haven't forgotten!

  • @CeoMacNCheese
    @CeoMacNCheese3 ай бұрын

    I really wanna see more of the big stuff you've implemented

  • @antonsimkin
    @antonsimkin3 ай бұрын

    in sane

  • @OrionTheHunter098
    @OrionTheHunter0983 ай бұрын

    Not sure if this has been said before, but you can't just make a spherical planet without including space, and other planets. (Procedural solar system >_

  • @Msp0309

    @Msp0309

    3 ай бұрын

    Pretty sure that’s the plan

  • @OrionTheHunter098

    @OrionTheHunter098

    3 ай бұрын

    @@Msp0309 _yeaahh!_ ((:

  • @user-rj9pt3hm1l
    @user-rj9pt3hm1l3 ай бұрын

    I can't imagine how each block type can be possible to put into pentagon column. Technically it is possible to cut out one vertices from one hexagon side and to connect the rest but from autistic point if view it will be some mess. Maybe you can deal with that pentagon column as special spatial warp, in which all blocks get flatten to their inventory 2d pictogram and suspended in mid-air like a banners

  • @Kristopian
    @Kristopian3 ай бұрын

    Commenting for the algorithm :P

  • @bottlewisp
    @bottlewisp3 ай бұрын

    neat!

  • @bottlewisp
    @bottlewisp3 ай бұрын

    this might be too much work for what it is worth; there must be a way to change the rendering of the hexagons, the closer the player gets to the pentagons & center of grid, so it would seamlessly 'morph' them to not look squeezed. a compensation would be squeezing blocks in the horizon, which is fine as things look flat at a distance anyways.

  • @duncanurquhart5278
    @duncanurquhart52783 ай бұрын

    i'm stealing this idea from another comment on a previous video, but: what would you think about adding vertical half-blocks, so they could be alternated to create flat-looking walls?

  • @IncandescentGames

    @IncandescentGames

    3 ай бұрын

    Upcoming video will go over this, probably one after next

  • @duncanurquhart5278

    @duncanurquhart5278

    3 ай бұрын

    @@IncandescentGames Thanks for the response! looking forward to it :)

  • @ZaCaptain1229
    @ZaCaptain12293 ай бұрын

    I joined the discord after this video!

  • @Billabong1264

    @Billabong1264

    3 ай бұрын

    I joined immediately

  • @nega-guy
    @nega-guy3 ай бұрын

    Btw, i don't know if it's an error or not but this video has the same title as the previous one. I just thought its weird this video is also called hexagonal textures when it should be called mesh blocks, as stated in the thumbnail.

  • @IncandescentGames

    @IncandescentGames

    3 ай бұрын

    Thanks my mistake

  • @nega-guy

    @nega-guy

    3 ай бұрын

    @@IncandescentGames no problem.

  • @joshuawalkermusician
    @joshuawalkermusician3 ай бұрын

    I'm the 77th Kickstarter! 🤗

  • @SbastianLuna
    @SbastianLuna3 ай бұрын

    🦁

  • @crestofhonor2349
    @crestofhonor23493 ай бұрын

    Have you tried experimenting with weather on planets being determined by biome? What about some light ray tracing in the form of shadows or possibly Global Illumination and reflections?

  • @christiano.1245
    @christiano.12453 ай бұрын

    This is awesome!!! Do you have a roadmap of what you want to do with the game?

  • @IncandescentGames

    @IncandescentGames

    3 ай бұрын

    I do, I plan to make a standaone video about that at some point

  • @christiano.1245

    @christiano.1245

    3 ай бұрын

    @@IncandescentGames Awesome! I really look forwards to what you have in mind!

  • @flameofthephoenix8395
    @flameofthephoenix83952 ай бұрын

    I suspect you probably could just make them get rendered the same as all the other blocks until they get within a certain range at which point they get converted to objects for the visual, which should be a fairly dynamic system and remove restrictions that may currently exist. But likely the system that you'll conclude with is much better, as I'll see for myself once I watch the whole video instead of making comments...

  • @flameofthephoenix8395
    @flameofthephoenix83952 ай бұрын

    9:35 Wow, it showed up in the subtitles as "Some short of mesh baker," at first, I thought you were referring to a short used in a mesh baker which was quite confusing...

  • @alidasiciliano6721
    @alidasiciliano67213 ай бұрын

    El mejor juego del mundo❤❤❤❤❤❤

  • @santinocermelo7330
    @santinocermelo73303 ай бұрын

    Will you add block breaking animations and particles?

  • @IncandescentGames

    @IncandescentGames

    3 ай бұрын

    Definitely

  • @santinocermelo7330

    @santinocermelo7330

    3 ай бұрын

    @@IncandescentGames cool

  • @randomginger11
    @randomginger113 ай бұрын

    FYI, I know I left a comment on your first video in this series mentioning your lip smacking and breathing into the mic. Hope that wasn't too harsh, but I've noticed that you stopped doing that. Just saying thanks! Love the series

  • @IncandescentGames

    @IncandescentGames

    3 ай бұрын

    I appreciated the feedback! I spend time editing it out now. Turns out I'm a big lip smacker 😂

  • @Paint_The_Future
    @Paint_The_Future3 ай бұрын

    What do you call a deer with no eyes? No eye-deer.

  • @cuboembaralhado8294

    @cuboembaralhado8294

    2 ай бұрын

    Lmao why here

  • @doriantermini
    @doriantermini3 ай бұрын

    I think you misnamed the video. It should be mesh blocks right?

  • @PanzerschrekCN
    @PanzerschrekCN3 ай бұрын

    Why not using instancing to draw mesh blocks? A special vertex shader may be used to distort coordinates properly.

  • @NoSuchStrings
    @NoSuchStrings3 ай бұрын

    How does water flow look like

  • @IncandescentGames

    @IncandescentGames

    3 ай бұрын

    Still to be done!

  • @mikeyallen6758
    @mikeyallen67583 ай бұрын

    How do the materials work for this? My guess would be submeshes but im not 100% sure

  • @IncandescentGames

    @IncandescentGames

    3 ай бұрын

    One big texture, with everything in it. But 3 submeshes one for opaque, one for cutout and one for transparency

  • @mikeyallen6758

    @mikeyallen6758

    3 ай бұрын

    @@IncandescentGames ahh nice. The game's looking great so far btw, keep up the good work :)

  • @EndroEndro
    @EndroEndro3 ай бұрын

    each time when im back here i for some reason hate shape of that blocks and the fact there is no straight wall on that house

  • @cuboembaralhado8294

    @cuboembaralhado8294

    2 ай бұрын

    It's just a matter of getting used to

  • @flameofthephoenix8395
    @flameofthephoenix83952 ай бұрын

    4:29 Hm, shouldn't you be able to make a square with just one triangle? Because you can just make the parts outside of the square area transparent so all you see is a square.

  • @colorful.78
    @colorful.783 ай бұрын

    lets goooo

  • @at_vlogs69
    @at_vlogs693 ай бұрын

    barrel

  • @AI__Machine
    @AI__Machine3 ай бұрын

    777 likes

  • @ryanmapping7944
    @ryanmapping79443 ай бұрын

    Moons🤔

  • @PanzerschrekCN
    @PanzerschrekCN3 ай бұрын

    I can join your Discord, but it requires authentication based on phone number. What's the point? Can this limitation be removed?

  • @icedyoshi

    @icedyoshi

    3 ай бұрын

    Hi there, This is a requirement to prevent bots from joining the discord and help keep the server safe. Unfortunately due to the amount of bots that have been coming through servers, we have to enforce the security for the safety of the community and this setting is one of the best ways to help combat bots and malicious actors.

  • @brandonmack111
    @brandonmack1113 ай бұрын

    l want to try it so bad

  • @IncandescentGames

    @IncandescentGames

    3 ай бұрын

    Will be a limted time demo later this year

  • @Ciurk
    @Ciurk3 ай бұрын

    I've wanted to join the discord server for quite a few episodes but I can't since I don't have 2fa on

  • @SbastianLuna
    @SbastianLuna2 ай бұрын

    🦁

Келесі