Join us on Discord!
You can help CodeWalrus stay online by donating here.

[C] AntiCaster: a non euclidean raycaster

Started by Snektron, November 16, 2015, 07:04:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

matrefeytontias

Wow that's awesome. A friend I'm talking with right now sends you props, and double props for releasing the source :P
  • Calculators owned: TI-83+.fr, TI-Nspire CAS prototype, TI-84+ CSE, TI-Nspire CX
My TI games (some got their own article on non-calc websites !) : http://www.ticalc.org/archives/files/authors/112/11202.html

My moozik (100% free metal) : http://www.soundcloud.com/matrefeytontias

Snektron

  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Dream of Omnimaga

Something I wonder is how fast the Microcat and Nspire CX would be able to run this, and what about the TI-89?

Quote from: matrefeytontias on November 18, 2015, 12:07:42 AM
Wow that's awesome. A friend I'm talking with right now sends you props, and double props for releasing the source :P
Lionel Debroux? :P I agree, though.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Snektron

Quote from: DJ Omnimaga on November 18, 2015, 12:25:09 AM
Something I wonder is how fast the Microcat and Nspire CX would be able to run this, and what about the TI-89?

Well the good thing is, it would proably be fast enough :) Maybe even fast enough to run on a 84, but i do use a few sqrts per x-pixel per frame so yea

Also, i pushed an update :)
The windows link is still http://quantuminfinity.space/files/ac.zip
Not many visible changes, but i improved movement and structured the code a bit more.
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


matrefeytontias

No, it's not someone from the TI community, but he does appreciate open-sourced projects, especially awesome ones like this one :P
  • Calculators owned: TI-83+.fr, TI-Nspire CAS prototype, TI-84+ CSE, TI-Nspire CX
My TI games (some got their own article on non-calc websites !) : http://www.ticalc.org/archives/files/authors/112/11202.html

My moozik (100% free metal) : http://www.soundcloud.com/matrefeytontias

Snektron

Today i added mirrors and textures! :D (the windows link is not updated yet, the github link is)

It now depends on FreeImage for image loading.
(Texture credits to LD Studios, it was the first one i could find in my asset folder)

As of yet textures are still a bit slow and buggy, so i'll need to make some improvements.
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Dream of Omnimaga

This is getting better and better. :) I hope you can get higher resolution textures to run fast enough at some point. Also would adding a floor and sky background (gradient for the floor and maybe a 2D scrolling image for the sky, or gradient depending if you're indoor or outdoor) decrease speed a lot?
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Snektron

#22
Texture size isn't really the problem, but it gets a little slower if you stand in front of a wall because the CPU has to do so much work, and it isn't really made for that. I might see if i can speed up vertical drawing with the GPU.

Also:
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Dream of Omnimaga

Strangely enough, most other 3D engines speed up when you close to walls. But I remember that the Nspire raycaster did the opposite like yours.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

alexgt

  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

Ivoah

I ported it to the Nspire:



There are still a few bugs, namely when trying to look or walk through compressed or stretched space



tns download: https://sr.ht/jsWe.tns
  • Calculators owned: TI-86 (now broken), TI SR-56, TI-Nspire CX CAS, TI-84+ SE, TI-84+ SE, TI-85, TI-73 Explorer VS, ViewScreen, TI-84+ CSE, TI-83+ SE

Dream of Omnimaga

Awesome Ivoah. Also it seems like you are trying to do some anti-aliasing, right? Because I notice some pixels that are darker.


Quote from: Cumred_Snektron on November 20, 2015, 02:46:53 PM
Also:

Yes. :P
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Ivoah

Quote from: DJ Omnimaga on November 21, 2015, 06:28:01 AM
Awesome Ivoah. Also it seems like you are trying to do some anti-aliasing, right? Because I notice some pixels that are darker.

Nah, that's the Nspire Student Software scaling up the image, and then OS X scaling that up for the Retina display.
  • Calculators owned: TI-86 (now broken), TI SR-56, TI-Nspire CX CAS, TI-84+ SE, TI-84+ SE, TI-85, TI-73 Explorer VS, ViewScreen, TI-84+ CSE, TI-83+ SE

Dream of Omnimaga

Ah I see. How is the speed on-calc? I didn't have much time to recharge my calc and try this. Also does this work on OS 3.6?
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

SiphonicSugar

  • Calculators owned: TI-89, TI-84 Plus, TI-92, TI-84 Plus C SE, and TI-Nspire CAS with Touchpad
I'm just trying to grab some inspiration. :P

Powered by EzPortal