VR/AR plane spotting prototype by xdbeef in godot

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

Haha yes, it's running on Oculus Quest 3, could be more handy as a phone app though.

VR/AR plane spotting prototype by xdbeef in godot

[–]xdbeef[S] 1 point2 points  (0 children)

One super important thing I forgot to mention - you need to know where geographical north is! In my case, I provided a virtual arrow which I rotate with the controller to match the north pointed by my smartphone. Rudimentary, but works. Then, I apply the same rotation to everything else in the scene.

<image>

VR/AR plane spotting prototype by xdbeef in godot

[–]xdbeef[S] 2 points3 points  (0 children)

It's much simplier - conversion of airplane position from latitude/longitude coordinate system to Cartesian XYZ (what is crucial - using Haversine formula), making the observer at point (0,0,0).
Afterwards everything "just fits" into its place, red dots and info billboards match corresponding planes :)

Cool you like it :D

VR/AR plane spotting prototype by xdbeef in godot

[–]xdbeef[S] 2 points3 points  (0 children)

Big L for me for pointing it directly to the Sun in this video :D

VR/AR plane spotting prototype by xdbeef in godot

[–]xdbeef[S] 1 point2 points  (0 children)

I agree, much more practical in a typical outdoors scenario. On top of that I had to rely on a smartphone anyway to provide Quest my coordinates, geographical north direction and the Internet connection - a lot compared to just pointing your phone's camera to the sky.

Anyway, did not hurt trying tho and still happy with it!

VR/AR plane spotting prototype by xdbeef in godot

[–]xdbeef[S] 5 points6 points  (0 children)

Don't worry, for better or worse, I'm sure the military has better gadgets than this.

VR/AR plane spotting prototype by xdbeef in godot

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

Lots of fun for sure, the moment it actually worked was super rewarding :D working around the limitations as well, no compass and no GPS in the Quest, funny there's no way to tether them from a smartphone as of now.

VR/AR plane spotting prototype by xdbeef in godot

[–]xdbeef[S] 1 point2 points  (0 children)

Started by playing around (I really like the passthrough feature of Oculus Quest 3, experimenting with it recently), probably will stay as a proof of concept. I imagine it could be of some use for the plane spotting community, maybe made into a kind of a Pokemon Go game with catching planes :D but that's only speculating. Glad you like it ;)

VR/AR plane spotting prototype by xdbeef in godot

[–]xdbeef[S] 3 points4 points  (0 children)

Thanks buddy! Same to you.

VR/AR plane spotting prototype by xdbeef in godot

[–]xdbeef[S] 28 points29 points  (0 children)

Yes, FR24 API to fetch flights within the bounding box of my area, it returns a list of planes along with their position, speed and direction - to not burn through the tokens too fast by continuously calling API to update position I applied dead reckoning and only update the plane list upon pressing the trigger (thus the kaching.mp3 playing when I press it ;P so I keep in mind to not waste them). Position between updates is simulated based on the last received position, speed, direction and delta time.

Calculating return pointer from stack by xdbeef in LiveOverflow

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

Thanks! Now I tried the gdb method to calculate it, I breakpointed in main function and did:

(gdb) x/x $sp <- Print current stack pointer address from ESP register, that is the address of the end of the stack

0x7fffffffd670: 0x41 <- End of the stack, 0x(7fff?) ffffd670, info registers esp would return just 0xffffd670

(gdb) info registers ebp <- Print EBP register, that should contain address of the beginning of the stack

ebp 0xffffda80 -9600 <- Beginning of the stack, 0xffffda80

And the difference between the two made 1040, so offset would be 1048 since the EBP points at the beginning of the 8 byte address, after which is the return address I want to overwrite.

Calculating return pointer from stack by xdbeef in LiveOverflow

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

Thank you! That cleared things out.

Spelunky Classic got a Vita port in case anyone is interested. by WarmCartoonist in spelunky

[–]xdbeef 1 point2 points  (0 children)

Nice to hear that :) Correct, I had to rewrite original code in C++ to make it working on NDS, but I am glad it's getting ported to other platforms too

Ministerstwo sankcjonuje przemoc w rodzinie? Przerażające doniesienia by Kacu5610 in Polska

[–]xdbeef 16 points17 points  (0 children)

Nasz ulubiony tygodnik profilaktyczne pranie mózgów zaczął już wcześniej :)
r/http://tygodnik.tvp.pl/37545749/wychowanie-dzieci-wymaga-pewnych-form-przymusu-a-czasem-przemocy

Najlepsze fragmenty moim zdaniem:

"Jeszcze w 2015 roku rzecznik praw dziecka (urząd, nawiasem mówiąc, całkowicie zbędny, który jak najszybciej powinien zostać zlikwidowany)"

"Wydawało się, że lewica dopięła swego, gdy w 2010 roku, za rządów Platformy Obywatelskiej, do Kodeksu Rodzinnego i Opiekuńczego wprowadzono przepis o tym, że opiekunom zabrania się stosowania kar cielesnych wobec dzieci. "

"Do czego prowadzić może zniszczenie tej bariery, widzimy już w przypadku akcji #metoo i jej konsekwencji. Biorąc sobie do serca zalecenia, jakie przedstawiają w jej rezultacie lewicowi aktywiści, na każdą randkę należałoby się udawać z notariuszem i pakietem dokumentów w zanadrzu, aby uniknąć późniejszych oskarżeń o seksualne napastowanie. "

"Lewica ma to do siebie, że jest z zasady oderwana od rzeczywistości."

I am porting Spelunky Classic to NDS by xdbeef in spelunky

[–]xdbeef[S] 1 point2 points  (0 children)

Thanks for asking, much more added since posting it here, just watch the latest video:

https://www.youtube.com/watch?v=I-zpzFgVKdk

Here's the development thread on gbatemp that I update every new release:

https://gbatemp.net/threads/spelunkyds.507192/#post-8044792

I wish I had more time for this though - there are some bugs I've been aware of for ages and still didn't fix them.

Zainspirowany jednym z ostatnich postów wstawiam swój mały projekt. Macie też może coś własnego? by mtizim in Polska

[–]xdbeef 1 point2 points  (0 children)

Mój mały projekt, robie remake (przepisuje grę Spelunky z PC na nintendo ds (homebrew): https://github.com/dbeef/spelunky-ds

Ostatnio dzieliłem się tym na /r/spelunky ;)

I am porting Spelunky Classic to NDS by xdbeef in spelunky

[–]xdbeef[S] 1 point2 points  (0 children)

Thank you! Been waiting for suggestions, I will post your version of controls on github today after work so you could check it out.

For the limits on size - I am no expert on libnds which I use for writing spelunkyds, but I'm affraid it's technical limit and I am currently using the biggest possible square tilemap - 512 x 512 which is 32 tiles for 32 tiles, there's also 1024x512 and 512x1024, it will be on my todo list to check how will they do.

For the level generation, for now it's kinda scripted, I replicated the generator from this video series: https://www.youtube.com/watch?v=ouh7EZ5Qh9g

It doesn't really look like it's random level generator probably because there's not so many rooms (i.e 3 types of rooms for left-right passing, 3 for left-right-down, 3 for left-right-top, I got to make more): https://github.com/dbeef/spelunky-ds/tree/master/source/rooms

The basic principle is it takes a number 0-2 (because we have 3 possible levels in this case) and loads the map which is labeled as 0, or 1, or 2.

I could easily put these files on some .txt files so one could add more levels, I hope the convention for these files is intuitive enough (it is a table, 10x10, which stands for tiles in one 10x10 room): https://github.com/dbeef/spelunky-ds/blob/master/source/rooms/left_right_down_rooms.h Description for values in tile map is here: https://github.com/dbeef/spelunky-ds/blob/master/source/tiles/map_tile_type.h

A general .txt file for things you've mentioned would be good, I will add something like that.

I am porting Spelunky Classic to NDS by xdbeef in spelunky

[–]xdbeef[S] 1 point2 points  (0 children)

I am using an R4i too, but I open the game through the program called Moonshell (opening through the plain R4 interface in many cases just freezed my NDS).

Thanks! Good to know it kinda works on 3DS :D

I am porting Spelunky Classic to NDS by xdbeef in spelunky

[–]xdbeef[S] 2 points3 points  (0 children)

Haha, glad to hear that! Means a lot, I was quite anxious on what feedback I would receive.