[-] HobbesHK@startrek.website 5 points 4 months ago

This worked perfectly - thank you!!

For anyone else looking here later, the final shader code (confirmed working Godot 4.2) is:

shader_type canvas_item;

uniform sampler2D screen_texture : hint_screen_texture;
uniform vec4 water_color : source_color;
uniform sampler2D wave_noise : repeat_enable;

void fragment() {
	vec2 water_wave = (texture(wave_noise, UV * TIME * 0.02).rg - 0.5) * 0.02;
	vec2 uv = vec2(SCREEN_UV.x , SCREEN_UV.y - UV.y) + water_wave;
	vec4 color = texture(screen_texture, uv);
	float mix_value = 1.0 - UV.y;

	float avg_color = (color.r + color.g + color.b) / 3.0;
	avg_color = pow(avg_color, 1.4);
	mix_value += avg_color;

	mix_value = clamp(mix_value, 0.0, 0.7);
	COLOR = vec4(mix(water_color, color, mix_value).rgb, texture(TEXTURE, UV).a);
}

Credits to Single-mindedRyan for creating this shader in the first place.

35
submitted 4 months ago* (last edited 4 months ago) by HobbesHK@startrek.website to c/godot@programming.dev

I have been looking for a 2D reflective water shader for some time and was delighted to see that this tutorial was posted on YouTube to create just that:

https://www.youtube.com/watch?v=wPr5PvSgxFo

I've had a go at implementing it and have got the reflective water rendering. It's very "Kingdom: Two Crowns" like when spread across the full width of the scene.

However, as you can see from the image above, I've drawn a pond (as a separate Sprite2D) and I've applied the water shader to the pond. It's done that, but draws the water as a rectangle.

Is there a way to apply this shader to the Sprite2D, but conform to the actual sprite (only the light blue), rather than as a rectangle?

22
submitted 6 months ago* (last edited 6 months ago) by HobbesHK@startrek.website to c/linux_gaming@lemmy.ml

I was wondering if anyone could offer some insights.

Bit the bullet and purchased Alan Wake 2 on the Epic Game Store. With the DLC on the way I just can't wait any longer and maybe this one will never come to Steam? (With Epic as publishers, who knows)

I've installed Heroic Game Launcher, downloaded the latest Wine-GE and Proton-GE, downloaded the game and managed to get it running. Tried it with both Wine-GE and Proton-GE. No noticeable difference.

My specs:

  • Intel Core i7 10700K
  • 48Gb RAM
  • Radeon RX 7800 XT 16Gb
  • Manjaro Linux, kernel 6.9
  • Mesa 24.1.1 (using the mesa-nonfree repo)
  • Game is installed on my 1TB NVME drive

I'm running things on Medium/High, with FSR2 on Balanced, in 2560x1440

No raytracing enabled anywhere.

Honestly, it doesn't matter what resolution I choose. Even when running is 720p on Low, the framerate is the same.

I get around 27 fps with regular dips into the lower 15-20 when I spin the camera around quickly.

I've finished the first chapter (just in the morgue) and the framerate got choppier and choppier. I get Bright Falls has a lot more going on than the intro woodsy bit. But at this rate, I'm just not sure what to do.

When I look at other people on YouTube, their framerates are much higher. Even on Linux. And with less powerful hardware. Other games run MUCH faster. I get AW2 is demanding, but I can play CP2077: Phantom Liberty at 140+ fps in Dog Town on High in 1440p with FSR2 enabled, so I don't feel that AW2 should tank my PC that hard.

Is there something I'm overlooking here? I've tried the CyberFSR as well, made no noticeable difference.

Mangohud shows my CPU is consistently around 50% and my GPU is around 40% so there's definitely room to push things more, I feel. So why isn't AW2 using these resources?

Any help would be greatly appreciated. I love this game and want to play it, but the framerate is stopping me from really enjoying it.

[-] HobbesHK@startrek.website 9 points 6 months ago

I prefer the world-famous song “Press X to Jason”

https://m.youtube.com/watch?v=_56257iS77A

Since it’s about the first 5-10 minutes of the game, it’s not a big spoiler.

Stupid Jason.

[-] HobbesHK@startrek.website 8 points 6 months ago

Hah, yes! Or O’Brien, the most important Starfleet officer in history!

[-] HobbesHK@startrek.website 21 points 6 months ago

As a show with so much promise, I often felt Disco reached for big concepts but never quite managed to get there. It would get bogged down with pathos and dragged out plot lines. Unfortunately, season 5 felt no different. This episode dragged on and on for me. Mol and L’ak had mostly become irrelevant and were completely unnecessary in this episode.

I get the series got axed and additional scenes were shot to round things out. But that random “we’re all hugging” scene? It was weird. And didn’t the actress who played Detmer say their absence was planned and revealing anything would be a big spoiler or something? Well. No, it really wasn’t.

Kovitsch was Daniels? I think at that point of the story, he could’ve been anyone and it wouldn’t have landed. He could’ve been Sloane (not dead after all!) and it would’ve made as much sense and be just as meaningful to the story.

The progenitor plot? With a tick list of “clues” and “challenges” to lead the way, but ultimately we decide your worthiness to reshape the universe as we know it with a geometry puzzle? I can’t even.

Discovery had potential, back in the day, but disappointed year on year. I had hoped this final season would offer redemption, but alas. Decent bunch of actors, but with subpar writing that usually went nowhere coherent. I won’t miss it. Glad it’s done. I hope Paramount learnt some valuable lessons from this and moves things on.

1

I am absolutely stumped and hoping someone can help me. I'm on Gnome 46, kernel 6.8, Mesa 24

When running in Wayland, dark mode works without any issue. But unfortunately, xwayland is throwing up some issues with resized game windows and mouse captures only working in the upper left quadrant of the screen. So I switched over to "Gnome on Xorg".

Dark mode works for apps like Firefox, but none of my GTK4 apps change from light-to-dark.

I've reset my dconf using dconf reset -f /org/gnome/ and I've deleted gtk-4.0, gtk-3.0 folders from .config, I've tried to delete every file or folder in .config .local that may interfere with this, but no luck.

Over on Reddit, someone recommended installing gnome-themes-extra which has been installed on my system for a long while. Reinstalled, but made no difference.

I created a separate user and logged in. Everything works without a problem (X11 or Wayland). So there's definitely something in my current user folder not working.

The bizarre thing is that once I log back into my main user, after logging in as the other temp user, things work and I can switch between light and dark mode without a problem.

If anyone could help, I would be so, so very grateful! I'm reaching the point where I think I should just nuke my user folder and start from scratch, but since I don't know where the issue is lurking, I don't want to lose all my settings either, nor copy them over...

[-] HobbesHK@startrek.website 4 points 11 months ago

As an open source alternative, I prefer a Jellyfin server and then using Feishin as a client. Nicer UI and options. Plex is a major no-no for me since they’ve started emailing people what they’ve been watching on their own servers. Privacy issues and required online login/plex-owned accounts for my own media? No thank you.

3

I own a Switch, PS5, and a beefy PC and have been playing Civilization since the first one on MS-DOS.

I love playing games on my TV and using a controller nowadays. I've been playing the Switch version and it works great (controls-wise) but there are obvious performance issues. My PC has no difficulty playing Civ6 regardless of map sizes or number of AIs. But I dislike playing with the KBM when I'm in front of the TV. Since I've already double-dipped (well, triple, since I also own Civ6 on my iPad), I'm reluctant to buy the PS5 version as well.

Does anyone know if there are any good controller mods out there for the PC version? I've even tried emulating the Switch version on my PC, which works well, but doesn't quite give the performance level I would expect to get, since it's emulating a Switch now.

[-] HobbesHK@startrek.website 5 points 1 year ago

I’m at the Grymforge right now and Nere needs to be freed so I can stay safe in the Shadow-Cursed Lands. I’ll persevere, good to hear I’m getting close to your fave bit!

32
Trying to get into Act 2 (startrek.website)

I scoured all the Act 1 areas (probably still missed stuff) but finally decided to jump into Act 2. I'm struggling to feel "connected" to it, to be honest. I went down the ladder into the Underdark and just sailed my way across to some ancient Shar-worshipper place and I feel... lost?

I remember this was exactly the issue I had with D:OS2 as well. Played Fort Joy, loved it, made it off the island and couldn't figure out where to go, what to do, etc. The sense of direction left me.

I feel similar vibes here arriving in Act 2. Anyone have any tips or advice, or is it just a case of "stick with it, you'll be all right"? I'm asking because I've played a lot of Act 1 and barely touched the game since making it into Act 2 a few weeks ago.

8

It's been a few days, sorry about that!

I'm curious to hear what people thought of the finale (season finale?) of Ahsoka.

I could write a lot about it, but actually found that (for once) Polygon captured my thoughts much better than I would be able to write it myself... Ahsoka never bothered telling anyone it was just the middle of a story

The tag line for that season-review seals the deal for me: "What was Ahsoka, but eight hours long?"

As I mentioned before, as someone who's been a fan of the character for years and consumed every piece of media she's been in, this was simply such a letdown for me.

[-] HobbesHK@startrek.website 6 points 1 year ago

Loved the episode. Did I understand correctly that the Betazoids were travelling from planet to planet to find a cure for this rampant emotional telepathic event?

Does that mean T’Lyns powers extended that far?

Or were they secretly hunting for the alien ship? I got a little bit lost with the fast dialog.

On a random note, funny how in ten forward the two guys making out kept inserting themselves in almost every scene.

14

And we’re back, another week, another Revels reunion!

I didn’t check the time on this episode, but was it shorter than most? Does that mean we’re getting a feature length episode next week?

I do hope so, since I felt this episode didn’t really move the plot forward at all. Characters moved around, interacted, but nothing got pushed forward much or was resolved. Ahsoka made it to the planet though.

Hera’s side plot also… happened. Moving swiftly on from a very nice but pointless cameo. I think we get it, the New Republic can’t hunt for a massive hyperspace engine but can send three massive warships and organise a tribunal for one general. Because. Anyway.

Loved the camera work, the banter, the hugs, but… let’s hope next week makes things happen. Knowing Filoni, I’m expecting an exciting finale.

4

What a shame there are only 2 episodes left. Someone wrote earlier that this has been Filoni’s weakest outing so far. I tend to agree, but more because this episode, I finally, finally didn’t want it to end. The pacing felt good, some character motives came to light and yes, finally, the Chimaera, Thrawn and Ezra make their live action introduction.

For a show called Ahsoka, she was stuck in transit for the hour we had with her. So. Maybe a better title would’ve been “Ahsoka and friends”. Or “Sabine, with a side order of Ahsoka”

Can’t believe we now need to get a good feel for Thrawn in this new domain, have Ahsoka battle it out with the evil Sith, jump back (?) to the main universe and - God, the pacing for this season has been really, really poor. Ahsoka comes to grips with Anakin’s turn, finds her mojo and has a cameo sitting in a cockpit of her own show?

At least we had a cute animal and new alien race. And the Night Sisters are clearly still alive and kicking. Loved that part and the lore around it.

Sabine being coy with Ezra about the “how did you get here” felt quite poorly done. The only reason was plot, because that is clearly for next week so Ahsoka can actually do something.

Helmet-Sith was clearly not Ezra then. Don’t think we’ll ever figure that one out.

I do want all of them to get back to the SW universe though. It’ll be cool to see Thrawn work on establishing the foundation for the First Order. And Ezra to join up with the gang and kick some solid Rebel ass.

Just seems we may need to wait for 2027 to see the show we thought we would be watching now. Stop drawing things out!

Anyway. Can’t wait for next week. Which is a first this season.

[-] HobbesHK@startrek.website 7 points 1 year ago

You may want to change the fact that web exports don't work on macOS. MacBook Pro M1 user here. I'm happily running my Godot 4.1 as web exports on my server. Setting the headers is required for any browser / operating system, but things seem to work fine for me on Mac.

[-] HobbesHK@startrek.website 7 points 1 year ago

Oh, absolutely, and more power to them. Godot 4 has been an incredible piece of work and each update things are getting better and better. The thought of more developers using Godot is exciting, since it feels like we're nearing the tipping point where it will really take off.

15

Well, we finally got there. An episode where Ahsoka gained agency, made decisions and took hold of the story. For me, this was the first episode this season I thoroughly enjoyed.

Not going to lie, the first time Anakin called her Snips? Big moment!

And was that Rex commending her on a job well done? I do believe it was!

I really liked what Hayden Christensen did with Anakin here. I know he's a good actor (from roles besides Star Wars) but it's nice to see him given the freedom to bring some subtlety to Anakin here.

Seeing Clone Wars outfits & hairstyles? Now I need a remake of Clone Wars as live action.

Loved the classic Chopper responses, where it's not clear whether he's swearing all the time or just mumbling.

Jacen's force sensitivity played an important role, but was subtly done. But for Kanan & Hera's son to play a role in saving Ahsoka? Great.

It was an episode of Ahsoka fully focused on Ahsoka, which was great. As much as I like seeing Sabine in action, this focus on Ahsoka is why we're here—it's in the show's title and this week it was absolutely the focus of the show.

It seems like we're moving into tighter plotting, with Hera now back to the fleet, our focus will be solely on this strange new galaxy. And we know what that means.

Thrawn.

(And hopefully Ezra)

The pacing issues with this season meant I still would've liked for us to get to this point two episodes ago, but let's see what the final three episodes will bring. Where last week felt like a 6 / 10 for me, this one's felt more like an 8 / 10. Good character work, subtle integrated callbacks, and a clear path forward into next week. Bring it on.

8
submitted 1 year ago* (last edited 1 year ago) by HobbesHK@startrek.website to c/godot@programming.dev

Hi everyone, I was hoping someone could help me with the following. I have a button that saves a screenshot PNG to the Downloads folder when you press it.

What I want is for the button to disappear after it is pressed, so the screenshot does not include the two menu buttons called "%SaveReport" and "%BackMainMenu".

The code for the save button is listed below:

`

func _on_SaveReport_pressed():

$"%SaveReport".visible = false

$"%BackMainMenu".visible = false

print("I've disabled the buttons")
print("That means the screenshot SHOULD be button free")

take_screenshot()

$"%SaveReport".visible = true
$"%BackMainMenu".visible = true

`

As you can see, it calls the take_screenshot() function which is listed above:

`

func take_screenshot(): image = get_viewport().get_texture().get_image()

if OS.get_name() == "Web" or OS.has_feature('JavaScript'):
	print("We're on the web")
	# We're on the web		

	image.clear_mipmaps()

	var buffer = image.save_png_to_buffer()
	JavaScriptBridge.download_buffer(buffer, fileName)

if OS.get_name() != "Web" or !OS.has_feature('JavaScript'):
	# We're not on the web
	print("We're not on the web")
	
	var docs = OS.get_environment("HOME") + "/Documents"
	
	var title = str(docs + "/results",global_ints.observed_person_name, global_ints.observation_minutes,".png")
	
	print(title)
	
	var _saveimage = image.save_png(title)
	
	if OS.get_name() != "OSX":
		print("We're not on MacOS")
		var _openfolder = OS.shell_open(docs)
	
	if OS.get_name() == "OSX":
		print("We're on MacOS")
		
		var _openfolder = OS.shell_open("file://" + docs)

`

The code works. The screenshot is taken and it's saved to the Downloads folder and MacOS/Windows/Linux open up the Downloads folder straight after.

For the life of me, I can't figure out why the Back & Screenshot buttons ( "%SaveReport" and "%BackMainMenu") that I turn invisible BEFORE I call take_screenshot() end up being in the screenshot. Every single time.

Anyone have any ideas?

Thank you!

18
submitted 1 year ago* (last edited 1 year ago) by HobbesHK@startrek.website to c/godot@programming.dev

Hi everyone,

Pretty much as I described in my toot (text copied here). Is anyone aware of what I may need to fix to get this plugin to work again?

I'm hoping someone can help me with a Godot engine question. With the Q&A forum being read-only, I'm hoping Lemmy people can answer this one for me.

I'm trying to use this plugin for HTML5 downloads in Godot 4.1:

https://github.com/Pukkah/HTML5-File-Exchange-for-Godot

It's for Godot 3.4, but I've upgraded my projects and want to stay in 4.1.

Currently, it throws an error “Identifier JavaScript not defined in scope” (see screenshot).

Would anyone have an idea on what to fix here? Thanks!

18
submitted 1 year ago* (last edited 1 year ago) by HobbesHK@startrek.website to c/starwars@lemmy.ml

Well. That happened.

I'm really not sure what to say about this one. I loved Clone Wars and I loved Rebels. But they were zingy, tight shows with a lot of life to them.

This episode... was not that.

There was a space battle between a ship and a few smaller ships.

There was some clattering of wooden swords between a Jedi and a non-Force-Padawan-because-erm... didn't we do the "Let Sabine be Sabine" story already on Rebels?

Oh. And there was something about Hera and the New Republic being ineffective. But we got to see her lovechild from Kanan. So wink-wink he wants to be a Jedi.

I don't know. I feel very conflicted because I desperately want to love this show. But... this episode felt very empty. Boring.

And why do I feel like I'm going to be proven right and masked-evil-Jedi-person turns out to be fallen Ezra?

That would be disappointing.

If this show is trying to tell an exciting story travelling across galaxies, finding Thrawn, adding new layers of mysticism to the universe, then... give me that show. Not this plodding stilted whatever-this-is.

[-] HobbesHK@startrek.website 16 points 1 year ago

I don’t miss it one bit as a social platform. I just wish that search engines wouldn’t prioritise it as much when I try to find a “how to do….” guide. It’s insane how many Reddit threads (half deleted and otherwise) dominate the results. Just show me a nice webpage please.

Without Adblock detection. And no bloody “how to” videos either. I just want to read it through, thank you.

[-] HobbesHK@startrek.website 5 points 1 year ago

As someone who has watched all of Clone Wars, Rebels and read the Thrawn books, I fully get where you’re coming from. Though I think there must be a 10 minute YouTube video of “what to know before watching Ahsoka” somewhere. Rebels is enjoyable (and gets suitably dark in its later seasons) but doesn’t tell an overtly complex story, so a quick primer video would be enough if you don’t want to experience it all.

All the dead space between lines stood out to me too. Ahsoka is obviously older here, but where’s her playfulness and spark?

[-] HobbesHK@startrek.website 9 points 1 year ago

Is anyone perhaps able to summarise these alleged "best" settings? I hate YouTube clickbait.

view more: next ›

HobbesHK

joined 2 years ago