Skip to content
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

Add "Affect Fog" to Sprite3D #8495

Closed
Zinume opened this issue Nov 22, 2023 · 3 comments
Closed

Add "Affect Fog" to Sprite3D #8495

Zinume opened this issue Nov 22, 2023 · 3 comments

Comments

@Zinume
Copy link

Zinume commented Nov 22, 2023

Describe the project you are working on

I'm working on an adventure game similar to The Last of Us.

Describe the problem or limitation you are having in your project

Now it's time to add icons when you get close. I usually use a Sprite3D, but now that I'm using both types of fog, the Sprite3D is affected, resulting in a strange outcome. I've managed to work around this, but it would be great if it had the default function to ignore the fog.
ss
I exaggerated the size of the icon for better appreciation.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Add a boolean to enable or disable being affected by fog within the Flags category of the Sprite3D node.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

ss2

If this enhancement will not be used often, can it be worked around with a few lines of script?

I don't know how to create a shader that is not affected by different types of fog.

Is there a reason why this should be core and not an add-on in the asset library?

The Sprite3D node has perfect functionalities for creating interactive icons in a 3D environment, among other uses. And now that in Godot 4, the use of different types of fog is more common, it should have this functionality to adapt to various current uses.

@AThousandShips
Copy link
Member

AThousandShips commented Nov 22, 2023

Doesn't attaching a material and disabling fog on that work?

Edit: this is 4.2 specific, but still applies

Effectively resolved for 4.2 in:

Don't think it makes sense to add additional support for this specific to sprite

@Zinume
Copy link
Author

Zinume commented Nov 22, 2023

Oh oh! I just downloaded version 4.2, and you're right. I'm currently working on my project with 4.1.3, and that can be addressed in the future. Feel free to close my request, but if you find it helpful to have this option within the Flags category of the Sprite3D node, it would be very useful, especially since it already has a Billboard option just like materials. Many thanks, AThousandShips.

@Calinou
Copy link
Member

Calinou commented Nov 22, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants