Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

limejet

7
Posts
1
Topics
A member registered Dec 01, 2016

Recent community posts

the physics engine is absolutely mental, i love the chaos of this version.

it’s a common enough issue, lots of aaa games do this too :) it did however make me wonder how unplayable this game would be at 240Hz…

i was wracking my brain trying to figure out how people were posting these massive scores when the flippers are so anemic they can’t even get the ball to the ramps, much less up them… then i realized that you’ve tied your physics to the frame rate. after adjusting from 100Hz to 60 the game became immensely more playable!

Okay! Thanks for at taking the time. Now i have some alternatives to learning opencv myself at least :)

That makes sense for stereo and all that.

I did some experiments and although this camera didn’t work with the realsense driver, it does do ir, and as far as i can tell it does it in much the same way as the original kinect (the one for the 360). There are a set of ir leds around the sensor, and when using the ir video device these leds strobe. This makes the camera capture a sort of black and white heightmap:

The framerate isn’t very good (a few Hz at most), and shiny things like glasses make the image all sorts of weird, but it definitely can do it, and it can do both an rgb stream and an ir stream at the same time.

With the right kind of opencv magic, this could definitely be something, but i get not wanting to spend time on it when there are actual depth cameras available.

I can see that you’re using pyrealsense2, which i assume is just a drop-in thing for realsense support. Considering that intel dropped the product line and motion tracking seems to no longer be officially supported, do you think it might be worth it looking into supporting alternatives?

As an example, i’ve got a generic usb camera that’s branded as “windows hello compatible”. There are a few of these now, all based on the tech in the kinect if i’m not mistaken. It’s got an additional ir camera in it for facial recognition through depth imaging, which seems to be the same tech that’s in the realsense cameras. The ir camera is directly accessible as a video device in linux. Supporting these cameras would open up 3d tracking to people who weren’t able to snag a realsense before they disappeared from the market.

I’ve not seen any drop-in replacements for pyrealsense2, but opencv has support for a variety of stereo camera setups so it may be possible.

I’m on linux, so i “ported” the “new character” script to bash, and in doing so found a bug. When a character.json file is completely empty, the program starts acting very weird:

On startup, it loads an empty character. Makes sense, no images are mapped in the file. However, the “change character” menu now contains a list of layers instead of character names. If i try to select a layer from the dropdown, the program tries to load whatever character would be there if the list didn’t contain layer names, but fails. It just hangs.

The hanging may be a linux/wine issue (wine reports that it hits a stub), but the weird dropdown feels like a bug.

For reference, here’s the bash script (without the bug):

#!/bin/bash 

# Usage: ./new_character.sh "Character name"
# If omitted, character name defaults to "New Character"

char_name=${1-"New Character"}
count=$(( $(ls -d */ | wc -l) + 1 ))
dir_name="$count $char_name"

mkdir -p "$dir_name/images"

echo '{}' > "$dir_name/character.json"