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?!

You are viewing a single thread.
View all comments
1 point

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?

permalink
report
reply

Godot

!godot@programming.dev

Create post

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

  • Posts need to be in english
  • Posts with explicit content must be tagged with nsfw
  • We do not condone harassment inside the community as well as trolling or equivalent behaviour
  • Do not post illegal materials or post things encouraging actions such as pirating games

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

!roguelikedev@programming.dev

Credits

  • The icon is a modified version of the official godot engine logo (changing the colors to a gradient and black background)
  • The banner is from Godot Design

Community stats

  • 686

    Monthly active users

  • 705

    Posts

  • 2.8K

    Comments