-
Notifications
You must be signed in to change notification settings - Fork 24
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
Godot 4.0 support ? #18
Comments
Thank you for all the reviewed issues, |
I managed to "make it work". If you want, i can make an empty project with all the modifications i made to "make it work". Unfornately, it seems that Godot 4 fixes the other Godot versions had with the wrong X axis (or Y, i don't remember) so... All the coordinates are wrong, the UV coordinates, the cartesians coordinates to make the UV a panoramasky, etc. The mathematical nature of this shader is beyond my understanding. I hope we can, all together, make this shader compatible with Godot 4 because i think it's the best one. |
Please forgive me for not supporting the adaptation of this sky for Godot 4. My country has unleashed a big war in Europe and I am not able to focus on anything right now. I just can't work on Godot 4 right now because I'm going crazy. In addition, I want to remind you that I am not the author of this shader. The math is too complicated for me there. I just added a bit of manageability or the background color and a day and night cycle to it. In fact, I only manage the background)) But I also saw this on shadertoy. |
Oh you’re from Russian ? For now, the team for Godot 4.0 are making a lot of changes for shaders, so it’s best for everyone to wait until it’s « stable ». And for you to rest :) |
When i have time, i’ll upload on github a version « working a little » on Godot 4.0 so you don’t have to scratch your head on the depreacated methods ans the new ways to do things on Godot 4.0. But i’m afraid the problem lies on the math used in the shader and how the UV is wrapped in the panorama sky, but i can be wrong (as i’m still learning shaders) |
Thanks. I'll try to work on the shader a bit later. Let's hope that the math can't be broken and the main problems will be in the script that needs to be adapted. And at least I wrote the script myself and there is no complicated mathematics there. Unfortunately, the rest is not so simple, I have not done anything for a year because of what is happening. I quit my job in order not to bring income to the country. One person with unlimited power and madness can bring death to hundreds of thousands and even, in the future, millions of people. And the surrounding people are either afraid to oppose, as I am afraid, or are delighted with what is happening (the absolute majority). I hope the war will end with the punishment of criminals. |
Yes, we need to see. Sky shaders are now a separate case and use some kind of their own transformation for projection. So, maybe now you can not calculate the projection or somehow need to avoid it. |
Ok, so here we go :
The things you need to know :
|
Yes, and i think in the future we need to use the new Sky Shader. But for now i still not try to understand how it works. Maybe the projection is calculated automaticaly. Once again, take your time and take care of yourself. There is no emergency for making this shader works with Godot 4.0. |
I finally forced myself to sit down for this shader. And I already used special SKY shaders. So there is some progress. I think everything will take 2-3 weeks, because I still need to rewrite the code to the script and I constantly encounter the fact that the solutions I am used to do not work in GODOT 4. |
|
|
Wow already ? So excited to go home in order to test this ! |
I just opened your project, it seems to have all the parameters set :) But i don't understand, are you using one single image file in order to "display the moon", "the thunder" and "the noise for clouds" ? |
Give a screenshot of your scene "sky" and specify the shader parameters, please. I just downloaded this project and opened it separately, everything is fine. Try re-importing the textures as I used the Basis Universalis settings for them. Single Responsibility Principle |
You have discord? Lexicon#0978 |
Yes i have ! I'm EmryX#7031, i added you :) |
My card is 1050. Yes, with the new nvidia graphics cards there are problems with this. I created an issue. |
Hello @Lexpartizan
First of all, thank you for your time and for your script. It's very good ! Second, i'm french so sorry in advance if my english is not perfect :p
I tried to make it work in Godot 4.0 for two days but couldn't. I don't have any error, but just nothing happen. The CloudlessSky shader and the Clouds shader doesn't seem to do anything for the Sprite2D inside the viewport.
Here what happened when i tried to support the scripts to Godot 4.0 :
First for the Sky.gd :
extends Spatial
now isextends Node3D
, it seems simple but seems to have consequences since there's methods which are not accessible anymore.hours
,minutes
andseconds
variables) because you have a infinite loop. Doesn't seems to bother Godot 3.4 but 4.0 crash instantaneously.lerp
method in 3.4 can lerp from a Color to another Color, not anymore. It's from a float to a float. So i found on internet how to create alerp_color
, not sure if it works perfectly (i'm sure it doesn't).Viewport
doesn't exist anymore, now it'sSubViewport
. It seems to work differently ? Maybe that's why my viewport preview seems empty and the whole sky system doesn't workDirectionalLight
is nowDirectionalLight3D
and doesn't seems to extends the Spatial node. So when we change the time of day, it seems the methodslook_at_from_position
does nothing. No rotation of the sun...The Result :
Here the GIST :
https://gist.github.com/RemyCampanals/044fe42ed5c336780d21bc77ca67c0ac
Thanks to have taken the time to read my issue and hope we can find a solution :)
If you prefer to work on a project in the Godot 4.0 environment rather than just the file, i maybe can prepare that for you :)
The text was updated successfully, but these errors were encountered: