20 days ago

This animal detection system was a pain to develop, but it's done now.

So many failed attempts.
In the end, I just reused the same system for perception trace in SuperliminalPSX.

Not the best system but it works.


Old Approaches

My 1st ever method was just to use a single linetrace in the dead center of the screen, but that would require precision shots.

My 2nd method was to use a big box trace that would extend quite far in the forward direction. It worked, but the problem was any animal that would be near the player (not even in the frame) would get hit before the one in the in the camera shot.

My 3rd approach was to use a cone mesh and check what ever overlaps with. Quite a simple method but unfortunately it wasn't working properly. It would detect some animals but not the others. Another problem was checking if the animal is on the screen as well and not behind trees, rocks etc

Current System

Its an iterative box trace approach. The size grows bigger each iteration. Its not the best system because this approach uses For Loop, that in the worst case can go up to 150 iterations. It only checks for pawns and doesn't collide with anything else.
then a line trace is done to the hit animal to check whether the player can even see this animal. If so, the picture gets tagged with the animal's name and saved onto both the disk (as a png) and into the save game (the path at which this png can be retrieved).



2 comments

Loading...

Next up

Honey UI implementation into my Untitled project.

Some of the UI has been copied over from my other projects.

I am not that good with UI design, I'm just a programmer :P

Pixel DMC DeLorean

Crashed, Abandoned & Forgotten Toyota AE86

NEW TRAILER: Heat and Run launches into Early Access on Steam & Gamejolt on October 13, 2022.

🎯 4vs4 online shooter game.

✨ Heroes, abilities & block building.

❤️ Wishlist now: https://store.steampowered.com/app/1225790/

#trailertuesday #earlyaccess #gamedev

What gaming chair does this dude have??

Boss battle on mobile device (prototype)

So far this is only a test, in the future it will be finalized.

Lowtiergod's meme @Victoree edition

Saw this katia meme and thought it fits victoree's loving and caring nature very well

Forgot to post this

Ice bear - We Bare Bears

Had this as my pfp for a few days

The Gnome Gang has been tormenting the inhabitants of the Toscana since the world went into the eternal night. They are chaotic, annoying and mildly dangerous. Probably a tiny bit more of a threat now that they have learned how to make bombs.

Dankpods' little Polish nugget

The Fiat Nikki otherwise known as TONY!!