Тёмный

Decals in Godot 4 

Bramwell
Подписаться 18 тыс.
Просмотров 10 тыс.
50% 1

Trying to slap a 2D texture on a wall in 3D SUCKS. It's really hard but thankfully there are tools out there to help
📰 Check out the new course here! bramwell.itch.io/godot-4-begi...
✨ Socials ✨
🐦 Twitter: / bramreth
💬 Discord: / discord
☕ Buy me a coffee: www.buymeacoffee.com/bram
🎮Games: bramwell.itch.io/
🕺TikTok: / bramreth
🤖 The third alpha release for Godot 4 is here:
godotengine.org/article/dev-s...
Chapters:
00:00 Intro
00:16 A load of problems with 2d textures
00:40 How do you make it work?
01:20 Godot 4 - Decal Nodes
01:42 Setting up the Node
02:39 Godot 4 Beginners
#Godot4 #GodotEngine #Gamedev

Опубликовано:

 

21 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 51   
@nyuh
@nyuh 2 года назад
At last, I can finally watch a match of my favourite sports game on my amorphous blob! Thank you for making this video!
@BramwellWilliams
@BramwellWilliams 2 года назад
lmaoo anytime ^^
@mikecodev
@mikecodev Год назад
For the ones wondering about that setup method, you just need to set the position and direction the decal is looking at: var decal := bullet_decal.instantiate() get_tree().get_root().add_child(decal) decal.global_transform.origin = raycast.get_collision_point() decal.look_at(raycast.get_collision_normal()) Hope this helps somebody :)
@eliyahumedia
@eliyahumedia Год назад
👍where are you declaring "raycast"?
@mikecodev
@mikecodev Год назад
@@eliyahumedia I got my raycast node as a child of my camera and pointing forward (-200 in z axis target position property) Then the variable is declared as an onready var like this: @onready var raycast: RayCast3D = $Camera/RayCast3D Hope this helps!
@truerecruta
@truerecruta Год назад
I'm making a fps game, so in my case you'll need to specify what's applying the decal in the look_at() function. I was using the same code you provided for bullet holes on my FPS game, and I got it to work by putting two arguments in look_at() The godot documentation says it takes two arguments: the thing the node is looking at and the normal - look_at(Vector3: target, Vector3: up) decal.look_at(head.global_rotation, raycast.get_collision_normal()) "head" being a node3d that houses the camera for my FPS player character. Could also be the player's body rotation if it's something like a top-down shooter. Hope someone in the same predicament as me finds this useful!
@monstereugene
@monstereugene 2 года назад
yo I love some of the features coming to godot... it took me so long to create a crappy bullet hole but now it should be easy
@BramwellWilliams
@BramwellWilliams 2 года назад
It was such a hassle! These new decals are gonna make so much stuff easier ^^
@nowherebrain
@nowherebrain 2 года назад
ah, decals.... *spray the spray paint button "F"...lmao..love that part.
@BramwellWilliams
@BramwellWilliams 2 года назад
Best button on the keyboard lmao
@Gevs
@Gevs 2 года назад
I hope this feature gets backported to Godot 3 because I'm not gonna use Godot 4 for any projects until it's been released in a stable state.
@BramwellWilliams
@BramwellWilliams 2 года назад
Very fair, nicking the shader code from Godot 4 source could be doable as a temporary measure 🤔
@jimmio3727
@jimmio3727 Год назад
It's stable; go use it! :D
@efeloteishe4675
@efeloteishe4675 Год назад
@@jimmio3727 Just because it says it is stable doesn't mean it is
@Aaronitouse
@Aaronitouse 2 года назад
Awesome video, love the way it was presented :D
@BramwellWilliams
@BramwellWilliams 2 года назад
Thanks a bunch! I'm trying so hard to make my jazz nicer to watch 😭
@cptfurball
@cptfurball 2 года назад
"Damn you to hell Newton" ~ This part got me 🤣🤣🤣
@BramwellWilliams
@BramwellWilliams 2 года назад
I swear that guys always had it in for me xD
@liammurray9274
@liammurray9274 2 года назад
Nice editing in this haha!
@BramwellWilliams
@BramwellWilliams 2 года назад
Thanks duuude c: it was hell on earth to make xD
@stephenberry4978
@stephenberry4978 2 года назад
I love your editing
@BramwellWilliams
@BramwellWilliams 2 года назад
Thankyou! ^^ Every waking second of editing is agony but it pays off lmao
@ranpergames
@ranpergames 2 года назад
very informative! could be a cool feature in my game
@BramwellWilliams
@BramwellWilliams 2 года назад
Definitely! so versatile 🤩
@gownerjones
@gownerjones Год назад
This doesn't help whatsoever since you didn't actually show that setup() function.
@pixelrogue
@pixelrogue Год назад
Weirdly my decal gets all messed up with shooting a wall, but when shooting ground it looks perfect, any tips on how to fix this? func setup(eventPosition,normalPosition): global_transform.origin = eventPosition self.look_at(normalPosition)
@jakob244
@jakob244 2 года назад
2:15 How exactly are you rotating the decal using the collision normal? I can't get it to work using look_at
@gownerjones
@gownerjones Год назад
Apparently this guy only answers people giving him praise. I have the same issue and no idea.
@Overposting
@Overposting Год назад
someone got it yet? heeelp
@ojisan4220
@ojisan4220 Год назад
Hey Bramwell! First of all Thank you for all the content you post here. Truly useful! Here is the question - why we never saw a Trailer for the course here or on Twitter. Good and effective trailer might move a potential buyer to a conclusion. Positive one.
@UnTamedStArBlOb
@UnTamedStArBlOb 6 месяцев назад
how did you get the video on the blob we have found decal crashing when trying to run it if anything other than a image is placed in it and trying to use gdscript on it also crashes dont know how yours is working
@v44n7
@v44n7 Год назад
amazing video
@tomtomkowski7653
@tomtomkowski7653 Год назад
Hi. Am I blind or there is no option to make a decal's texture repeatable? Let's say I want to make a grid, so the simplest way is to create a decal with a square, make it big, and then set the texture flag to repeat and set tiling in the UV. But somehow I can find a way how to do it in Godot 4. There is no such option longer in import settings and I can't find it inside the decal node. Thanks in advance.
@PondaYT
@PondaYT 2 года назад
Another quality video, good shit my man 🥵
@BramwellWilliams
@BramwellWilliams 2 года назад
Thankyou! means a lot
@eliyahumedia
@eliyahumedia Год назад
could decals work for making footprints? how would you go about that to make the footprint images trail behind the player?
@mikecodev
@mikecodev Год назад
I'd use a timer and if the player is moving you could instantiate a decal every half a second or so. The raycast shoud be pointing to the ground rather than to the front of the player.
@maximiliantaubert4669
@maximiliantaubert4669 2 года назад
This is the kind of content I subscribe for
@BramwellWilliams
@BramwellWilliams 2 года назад
💞💞💞
@misterprickly
@misterprickly 2 года назад
Silly question... Can you use decals on Non/player characters? I'm wanting to try using them for a *clothing* system.
@jimmio3727
@jimmio3727 Год назад
Decals work on any mesh; so yes you could. Mobile only supports 8 per mesh though, so keep that in mind.
@misterprickly
@misterprickly Год назад
@@jimmio3727 Thank you!
@ValseInstrumentalist
@ValseInstrumentalist Год назад
Fav game with sprays is Tony Hawk's Underground. Cover up those Jebb for Mayor signs.
@karimedx
@karimedx 2 года назад
Wow that's a really nice feature.
@BramwellWilliams
@BramwellWilliams 2 года назад
Isn't it! c:
@_gamma.
@_gamma. 2 года назад
YEEEEEEEES
@BramwellWilliams
@BramwellWilliams 2 года назад
YESSSSS ^^
@r6scrubs126
@r6scrubs126 2 года назад
Great video as always but wow I didn't realise godot didn't already have this feature. Kinda worries me thinking what other basic 3D things it doesn't have that other engines have had for years. Would hate to get half way through making a game and then realise its going to be a nightmare to make something simple like this work
@BramwellWilliams
@BramwellWilliams 2 года назад
Yeah it's been a gripe for lots of people for a long time, mostly because its not a trivial problem to solve, especially in a performant way - there were a bunch of tutorials by miziziz and the like to do it yourself previously, thankfully no more 😌
@kishirisu1268
@kishirisu1268 8 месяцев назад
You already have “put decal” events, what point to check if button is pressed? What if event fired from script or from tap on screen? RU-vidrs logic sometims beyond any understanding..
Далее
What the FOG? Godot 4
5:01
Просмотров 14 тыс.
I Made the Same Game in 8 Engines
12:34
Просмотров 3,9 млн
Stray Kids "Chk Chk Boom" M/V
03:26
Просмотров 37 млн
8 DEVS Make a GAME without COMMUNICATING!
13:21
Просмотров 976 тыс.
How to Tween in Godot 4
6:53
Просмотров 26 тыс.
Videogames That "Require" A Wiki
10:09
Просмотров 1,8 млн
Particle Physics in Godot 4
7:25
Просмотров 14 тыс.
choosing a game engine is easy, actually
15:08
Просмотров 351 тыс.
13 ADDONS to SPEED UP your game creation in GODOT!
11:23
CS2's Responsive Smoke with Godot 4 In 5 Minutes
5:34
A new way to generate worlds (stitched WFC)
10:51
Просмотров 517 тыс.
Stray Kids "Chk Chk Boom" M/V
03:26
Просмотров 37 млн