10 months 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

[Warning - They Cuss a lot]

Nothing like being called a hacker

Yooo

@BurgosGames ' Neko Ghost Jump made it to Epic's Free games

Addax

They have very long horns

This week's Fan Art Friday celebrates Baldi's Basics in Education and Learning! Accept the quest in your quest log to get started.

I suck at this game

@MewMarissa is a Jolter to Watch and and a game developer who takes pride in attention to detail and producing quality work! Follow @MewMarissa before the quest ends on April 8 and you'll get Coins!

Fishies

Audio Occlusion

never knew this was a thing

this whole time I have been placing plethora of audio volumes like a buffoon

Great news! 📢 @Aya_Games has joined Game Jolt!

They're the indie studio behind the haunting & atmospheric horror platformer Ayasa: Shadows of Silence.

Follow the development of Ayasa: Shadows of Silence at https://bit.ly/AYASAGAME

UE4 Blueprint vs C++ Performance Test

plus Hybrid Blueprint C++ approach

Read article if you wanna know what I'm doing