this post was submitted on 15 Jun 2023
7 points (100.0% liked)

Godot

5903 readers
2 users here now

Welcome to the programming.dev Godot community!

This is a place where you can discuss about anything relating to the Godot game engine. Feel free to ask questions, post tutorials, show off your godot game, etc.

Make sure to follow the Godot CoC while chatting

We have a matrix room that can be used for chatting with other members of the community here

Links

Other Communities

Rules

We have a four strike system in this community where you get warned the first time you break a rule, then given a week ban, then given a year ban, then a permanent ban. Certain actions may bypass this and go straight to permanent ban if severe enough and done with malicious intent

Wormhole

[email protected]

Credits

founded 1 year ago
MODERATORS
 

Hi. I'm at a complete loss, so...

Background: 4.0.3. A 3D "fps" world, with the usual capsule shape suspect protagonist. I'm adding a SubViewport, and a Camera to render onto a Decal with albedo set to a ViewportTexture from the SubViewport.

I can (sort of, unreliably) make it work in the editor, but never in the game(!) With transparent bg, it's just invisible, without, it's black, and if I pick the icon.svg instead, that works. The (inner, well, both actually) camera is active, and I've fiddled with Clear Mode and Update Mode on the SubViewport. (and every other setting I can think of)

In the editor, rendering both camera view and a label on top works, both in the SubViewport texture view, and on the Decal in the 3D view(!)

What am I missing?!

top 1 comments
sorted by: hot top controversial new old
[–] aes 1 points 1 year ago

I... discovered that it works if I use a plane mesh and just position it manually. The conclusion then has to be that there is something screwy with how Decals get their textures. Maybe there's even a bug involved? Should I try to make a minimal repro?