-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't add a CompositorEffect
to a Compositor
#89030
Comments
I can confirm that the same thing is happening to me... |
Try |
The problem is that I can't even create a I was finally able to add a extends Compositor
func _init() -> void:
print(compositor_effects)
# Trying to add a CompositorEffect via code
var compositor_effect := CompositorEffect.new()
print(compositor_effect)
# This doesn't work
compositor_effects.append(compositor_effect)
print(compositor_effects)
# This also doesn't work (even though the array currently has a null value in the first element)
compositor_effects[0] = compositor_effect
print(compositor_effects)
# This DOES seem to work (but not showing up in editor)
compositor_effects = [compositor_effect]
print(compositor_effects) The above script prints the following out when the project is run:
So for now, it seems like this might be a possible workaround through code. But I'm assuming it should still be possible to create a |
A small note on the docs clarifying this has to be extended would help I think |
Indeed, that is how it works. The I hope to get time to do some documentation for this soon, I do have a substantial demo project here: https://github.com/BastiaanOlij/RERadialSunRays |
Hey guys, I would like to contribute regarding this! Is a quick glance of how to create and use a derived/extended CompositorEffect be enough for this? I'm really new to FOSS contribution, can you lemme know if we have any structure or rules to follow before getting started on contributing? Thanks a lot in advance! |
https://docs.godotengine.org/en/latest/contributing/ways_to_contribute.html |
Tested versions
v4.3.dev4.official [df78c06]
System information
Godot v4.3.dev4 - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3050 Ti Laptop GPU (NVIDIA; 31.0.15.3734) - AMD Ryzen 7 5800H with Radeon Graphics (16 Threads)
Issue description
I have been following #80214 and saw that it was recently closed. Hoping to try it out, I downloaded 4.3 dev4. However, I can't seem to add a
CompositorEffect
to theCompositor
. I've tried using both the editor and GDScript, but neither works. Maybe there's something I'm missing on how this is supposed to work?Using the Editor
First, in the editor, when attempting to add a new
CompositorEffect
to thecompositor_effects
array, it will only allow me to load one already created (can't create a new one).So I tried to create one from the file system dock using "New Resource...", but
CompositorEffect
doesn't show up in the list of available resources.Using GDScript
Finally, I tried to do it from GDScript. I created a new
Compositor
resource and added a script to it. Then I put it in my main scene. Although I was able to create a newCompositorEffect
from script, I wasn't able to add it to thecompositor_effects
array.Steps to reproduce
Compositor
resource.Compositor
resource, add an empty element to thecompositor_effects
array.Compositor
resource:WorldEnvironment
node to the scene.WorldEnvironment
node, add theCompositor
that was created above.Minimal reproduction project (MRP)
compositor-test.zip
The text was updated successfully, but these errors were encountered: