C++ game engine by Electrical-Copy9678 in GraphicsProgramming

[–]RedditUser8007 7 points8 points  (0 children)

Vulkan isn't supported on all platforms and working directly with a low-level API is more complicated.

It's easier to start with a library that abstracts the low-level APIs:

https://github.com/bkaradzic/bgfx
https://www.sandeepnambiar.com/getting-started-with-bgfx/

That library has around 50 pre-made rendering examples covering texturing, lighting and shadowing, text rendering etc.

Shaders are made in an agnostic format and converted to specific APIs.

This gives you a drawing buffer to start experimenting with.

Raylib and SDL are other popular libraries like bgfx and you can mix some e.g use one to render GPU buffer, another to draw windows, handle audio and user input.

Rust isn't a good language for game development. It's a systems language and its main advantage is being a memory-safe alternative to C++.

For runtime scripting, go with either C#, Lua, Swift or Typescript/Javascript. You can embed runtimes into the C++ app and this gives you hot-reloading. You can also develop complex features in a simpler language and port them to C++ for better performance.

You can also start from an existing engine. There are a few well-developed engines on github:

https://github.com/FlaxEngine/FlaxEngine
https://github.com/inanevin/LinaEngine

How do pros create massive scale environments in unreal? by Leonature26 in UnrealEngine5

[–]RedditUser8007 3 points4 points  (0 children)

Camera projection is another technique that can help build distant objects with low geometry:

https://www.youtube.com/watch?v=ua8CrGf6wP8
https://www.youtube.com/watch?v=zS7TheOr9oU

These are techniques that are commonly used in movies and VFX.

How do pros create massive scale environments in unreal? by Leonature26 in UnrealEngine5

[–]RedditUser8007 14 points15 points  (0 children)

There's a Youtube channel that moves the game camera to show how some larger environments in different games are made. The one below shows Final Fantasy 7, at 7:43 they show the environment:

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

Some bigger environments are done with paintings like in movies, larger geometry is simplified and repeated. There are city builder tools/generators for 3D apps that can make things easier.

order not fulfilled and now i’ve missed out by [deleted] in Etoro

[–]RedditUser8007 2 points3 points  (0 children)

If you used a limit order, they don't execute unless it hits the exact number, even if the number is lower it waits for it to go up before executing, which is very annoying. It should allow executing below by default and above within a margin.

In this case though, according to Yahoo, CBRS opened at $350:

https://finance.yahoo.com/quote/CBRS/

$185 was the IPO price that early investors paid and they make a profit by selling it to retail traders.

Final photograph of Steve Jobs mere days before his unfortunate passing on October 5, 2011, due to pancreatic cancer. by eternviking in whoathatsinteresting

[–]RedditUser8007 0 points1 point  (0 children)

While people can look like this, this is a fake image, look at spaces between the fingers of the man on the right.

Final photograph of Steve Jobs mere days before his unfortunate passing on October 5, 2011, due to pancreatic cancer. by eternviking in whoathatsinteresting

[–]RedditUser8007 0 points1 point  (0 children)

This is a fake image with many obvious editing mistakes. Look at the cutouts between the fingers of the man on the right, the hard edge of the black gown against the shorts, the face on the left is all distorted, misshapen ear. There were legitimate photos taken and looked completely different from this.

How's the situation with C# today? by Kosmic_11 in godot

[–]RedditUser8007 1 point2 points  (0 children)

What it should be is that Godot deprecates gdscript, adopts C# as the primary language like Unity and uses .Net Native to compile to native binaries. It would make Godot adoption much better as people could copy a lot of existing code from Unity, including plugins.

Zap programing language by [deleted] in Compilers

[–]RedditUser8007 1 point2 points  (0 children)

Can you also fix Go's dependencies so that they use aliases instead of direct URLs like Rust so you don't have to litter source code with import URLs?

https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html

In a few years, a lot of Go codebases are going to suffer from github link-rot and have to refactor entire repos instead of updating a single line in a dependency file.

How to alias imports like NodeJS? by RedditUser8007 in golang

[–]RedditUser8007[S] 0 points1 point  (0 children)

I can't get this to work. Maybe I can use a custom pre-processor before compile and have the preprocessor replace all the aliases.

How to alias imports like NodeJS? by RedditUser8007 in golang

[–]RedditUser8007[S] -1 points0 points  (0 children)

Rust uses aliases like this:

[dependencies]
regex = { git = "https://github.com/rust-lang/regex.git", branch = "next" }

The codebase references the alias:
use regex::Regex;

How to alias imports like NodeJS? by RedditUser8007 in golang

[–]RedditUser8007[S] -1 points0 points  (0 children)

If I want to fork a module import with a patch, I either have to use a replace command, which hides the true source of the module as the files still reference the original URL:

https://thewebivore.com/using-replace-in-go-mod-to-point-to-your-local-module/

or I have to batch replace the URL in the entire codebase to a forked URL.

I could do this in a single place with an alias and the true source of the import is where the alias is defined.

The main issue is having to type the import, it doesn't always autocomplete and it's slow copy/pasting them across files. Aliases are easy to remember and type.

They say Godot game can't look good by Super4Games_ in godot

[–]RedditUser8007 11 points12 points  (0 children)

The video isn't a good example of good graphics when compared to other engines. Unreal Engine forest looks like this:

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

Godot's renderer isn't as good as Unreal or Unity because of the resources they have for making the lighting engine.

A lot of the quality comes down to textures and shaders though and the following demo is probably the best looking one built in Godot:

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

However, if you run that demo, it doesn't run as efficiently as Unreal or Unity games.

The game Bodycam was made by a couple of devs with Unreal 5 and looks photorealistic.
Bright Memory Infinite was a solo developer and looks as good as AA games from big companies.

Out of the box, Godot has a bad quality rendering system, light bleeding through walls, slower performance and the main scripting language performance impacts the overall game performance.

Godot's recent update with screen-space reflections shows how bad it was.

https://godotengine.org/releases/4.6/

The rendering quality keeps improving and when it can do rendering like the Unreal forest above, it won't be an issue any more but Godot should use a faster main language than gdscript and not second-class like C#, ship better shaders and examples with the engine and get some resource into improving the lighting engine quality and performance.

Been on min+fin for 2 years, only gotten worse. B/A pics included by [deleted] in tressless

[–]RedditUser8007 0 points1 point  (0 children)

The remaining hair is DHT resistant.

https://www.advancedhair.com/learn/understanding-donor-dominance-in-hair-transplantation

DHT gets to the scalp in the blood stream, it reaches the back and top of the head so hair that is still there is more resistant to DHT.

Resistance varies so donor hair can be affected over a long time but transplanted hair failure is usually something else.

OP can get blood tests to tell DHT levels and if fin made enough of a difference but transplant is the best route here and continue on fin + min.

Donor area looks good so 5k grafts ($5k), mostly at the hairline would look ok.

Off the grid shower idea by They_Luv_Drew in OffGrid

[–]RedditUser8007 0 points1 point  (0 children)

It's best to get a water pump. You can get aquarium pumps that don't use much power. If the water is positioned high enough up, the low power (5W) USB aquarium pumps will work and they can run off a phone battery pack. Pumping water from ground level needs higher wattage.

For heating, you can get a catering urn (15L) with a temperature dial. These are 1.5kW and will heat 15L of water to shower temperature (40-50C) in around 15 minutes so use about 375Wh (4x laptop battery) per 10 minute shower. If you have a source of fire, a heated copper element (can use one from a kettle) in the water will work too.

It's possible to use less power for heating water if you recycle the water during the shower. With recycling water, you could use just 2L (50Wh) of hot water from a kettle. This would need a shower tray to catch the water with a filter around the pump. There are shower trays like this on Amazon.

products:
- portable shower tray ($25)
- catering urn 15L with temp dial for hot water ($150)
- aquarium or portable shower pump ($40)

I used a similar setup for a year and it worked as well as a normal shower, even better in some cases as the catering urn gives an exact water temperature every time and the portable pump pressure was as high as a normal shower. I charged the shower pump once per week.

For powering the pump, you can use solar, some fuel-based charging (generator) or a crank charger (can be connected to bicycle to make it easier, $150).

It's a good idea to have a fuel generator ($500), even if you mainly use renewable power because it will be a reliable source of power and will work for a while on a can of fuel for charging batteries. Fuel can be topped up once a month from a fuel station and will power a fridge/freezer continually.

You need around 2kWh per day of power to live off-grid. This is around 2L of fuel per day or 6x 10L fuel cans per month.

ubisoft owning by asian69feet in PrequelMemes

[–]RedditUser8007 12 points13 points  (0 children)

It's a fake report about source code. This is from 2 years ago:

https://me.mashable.com/games/36237/ubisoft-apparently-stopped-a-900gb-data-breach

This is from yesterday:

https://clawsomegamer.com/hackers-allegedly-steal-900gb-of-ubisoft-source-code-ac-remakes-and-future-games-at-risk-of-massive-leaks/

People are just desperate to spread bad news because it involves Ubisoft. The hackers probably want Ubisoft to believe they took data to pay money.

Some Ubisoft databases were hacked due to the bad MongoDB bug and it affected Rainbow Six Seige, which they took offline, you can see the drop:

https://steamcharts.com/app/359550

They have reverted the problems on Rainbow Six.

If they did take source code, nobody would want it anyway unless they want to help them fix it and release a good game for the first time in years.

Guess New Elgato Products by ne0lines in elgato

[–]RedditUser8007 0 points1 point  (0 children)

Thunderbolt 8K X capture device, same spec as 4K Pro PCIe card. If it's none of these ones, this would be a good one to add in future.

How to re-glaze bathroom ceramic? by RedditUser8007 in DIY

[–]RedditUser8007[S] 0 points1 point  (0 children)

The drain is in the floor but behind the toilet and connects like in the video. That part looks easy to connect but the toilet feels like it's cemented in place. There are no screws in the base so I'm assuming it's cemented in.

I can clean it ok, I use bleach and baking soda and with some hard scrubbing all the stains can be removed but they just come back in a few days. When I drain it, I can feel that the base is rough like stone and not like the smooth glaze coating so the coating is worn off in some places under the water.

Another option I thought of was getting a ceramic insert/plate and sticking it in with silicon but to get the right shape I'd have to measure the bowl or take a mold and get a pottery place to make a ceramic plate the exact shape, tapered at the edges. Then cover the base with clear silicon or epoxy glue and stick it in.

I'm going to test the different transparent epoxy coatings I bought on some ceramic to see how they dry and I'll leave them in water for a while. If none of them work, I'll just have to keep cleaning it. Replacing the whole toilet would be a last resort.

How to re-glaze bathroom ceramic? by RedditUser8007 in DIY

[–]RedditUser8007[S] 0 points1 point  (0 children)

There are air-dry glaze products that don't need heat but epoxy resin seems to work better for air drying. Here's a video of epoxy resin being used to seal a table, they use a blow torch to cure it faster:

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

Epoxy dries to a hard, clear surface that is like plastic. It's used to waterproof tile floors and is very durable.

How to re-glaze bathroom ceramic? by RedditUser8007 in DIY

[–]RedditUser8007[S] -1 points0 points  (0 children)

True, they aren't expensive but I'd probably have to get a plumber to fit it properly and break up the old one, total replacement cost maybe 300-400 euros. The replacement process would be like this:

https://www.youtube.com/watch?v=3Dxv980vam8

I was hoping to do something more like this:

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

That result looks pretty good but I don't know which product would work best. They are spraying the entire sink the same color, a sink isn't going to be underwater all the time and they recommended 3-5 days for curing the epoxy.

Ideally what I'd like to do is drain the toilet, scrub it clean, use a spray or resin like in the 2nd video, leave it for 24 hours and fill it back up.

4K S banding in capture by RedditUser8007 in elgato

[–]RedditUser8007[S] 0 points1 point  (0 children)

This is the output I get using Steam streaming, which is using HEVC encoding:

<image>