π
<-

X3D - A 3D Engine for Nspire and PC

C, C++, ASM...

X3D - A 3D Engine for Nspire and PC

Unread postby catastropher » 28 Jul 2017, 04:28

Hello! My name is catastropher (some of you may know me from Codewalrus) and I am the developer of X3D, a 3D engine for PC and the Nspire. I've been working on X3D for the past two years (and have restarted it several times, the most recent being the beginning of the summer). Though still in early alpha, X3D is a very powerful engine and is written entirely from scratch in C. The source, currently ~12k lines, is available on my github here. As of a few weeks ago, it can now load Quake levels and is able to render them at 10-20 fps on the Nspire CX. And as of today, it can do lighting as well:

Show/Hide spoilerAfficher/Masquer le spoiler
Image


If you guys are interested, I'll upload a demo soon :) Please let me know what you think!
User avatar
catastropherProgrammeur
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Level up: 68%
 
Posts: 13
Joined: 30 Sep 2015, 18:05
Gender: Male
Calculator(s):
MyCalcs profile

Re: X3D - A 3D Engine for Nspire and PC

Unread postby Adriweb » 28 Jul 2017, 07:51

I've said it before, but this is definitely worth saying again: Congratulations, this is impressive, and the portability is very nice :D
I'm sure people would like to try a demo, even if limited :) Feel free to upload one to the archives!

(Out of curiosity, even though it would have less users than the other versions, what's the state of the 68k version? Since that's in the name/description of the repo :P)

Edit: since I'm doing Emscripten stuff these days, have the thought of having a web version (compiled automatically to asm.js via emscripten) crossed your mind? It is probably not so hard to port since SDL is available/integrated.

MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)
My calculator programs
Mes programmes pour calculatrices
User avatar
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 79.7%
 
Posts: 14820
Images: 1131
Joined: 01 Jun 2007, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
Twitter: adriweb
GitHub: adriweb

Re: X3D - A 3D Engine for Nspire and PC

Unread postby catastropher » 29 Jul 2017, 21:53

Adriweb wrote:I've said it before, but this is definitely worth saying again: Congratulations, this is impressive, and the portability is very nice :D

Thank you very much! I really appreciate the support :D

Adriweb wrote:I'm sure people would like to try a demo, even if limited :) Feel free to upload one to the archives!

Done! The demo is here if you'd like to give it a try!

Adriweb wrote:(Out of curiosity, even though it would have less users than the other versions, what's the state of the 68k version? Since that's in the name/description of the repo :P)

Haha the 68k port was abandoned because it doesn't have enough memory/processing power :( I never changed the name of the repo though! XD

Adriweb wrote:Edit: since I'm doing Emscripten stuff these days, have the thought of having a web version (compiled automatically to asm.js via emscripten) crossed your mind? It is probably not so hard to port since SDL is available/integrated.

I'll take a look into it!
User avatar
catastropherProgrammeur
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Level up: 68%
 
Posts: 13
Joined: 30 Sep 2015, 18:05
Gender: Male
Calculator(s):
MyCalcs profile

Re: X3D - A 3D Engine for Nspire and PC

Unread postby catastropher » 22 Dec 2017, 19:30

Hi guys, I'm reposting this from Codewalr.us:

Well I've been on a coding binge for the last few weeks so I thought I'd give an update:
  • Implemented mouselook (yaaay no more turning with arrow keys!)
  • Implemented loading/rendering of level models
  • Added object type system for game objects
  • Added some builtin game objects, such as button and rising platform
  • Added event system with triggers e.g. push a button makes a platform raise
  • Figured out how to get paint on walls, which will be used for Portal gels!
  • Added numerous upgrades to the physics engine
Here's a demo of a small Portal-like chamber with all of the aforementioned feature (aside from the paint):



I did my best to make it somewhat look like a Portal chamber. I'm very excited because the engine is finally getting to a point where you can start doing real things with it. If anyone is interested in giving the demo a try the source is on github! :D
User avatar
catastropherProgrammeur
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Level up: 68%
 
Posts: 13
Joined: 30 Sep 2015, 18:05
Gender: Male
Calculator(s):
MyCalcs profile

Re: X3D - A 3D Engine for Nspire and PC

Unread postby grosged » 22 Dec 2017, 20:31

! wonderful !
User avatar
grosgedVIP++
Niveau 14: CI (Calculateur de l'Infini)
Niveau 14: CI (Calculateur de l'Infini)
Level up: 30.2%
 
Posts: 770
Images: 75
Joined: 14 Sep 2011, 12:29
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: X3D - A 3D Engine for Nspire and PC

Unread postby Adriweb » 22 Dec 2017, 20:43

That's a very impressive demo, congrats and keep going!

(Also, I replaced your big .gif by a much smaller webm :P)

MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)
My calculator programs
Mes programmes pour calculatrices
User avatar
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 79.7%
 
Posts: 14820
Images: 1131
Joined: 01 Jun 2007, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
Twitter: adriweb
GitHub: adriweb

Re: X3D - A 3D Engine for Nspire and PC

Unread postby Lionel Debroux » 22 Dec 2017, 22:42

Fantastic work, as always :)
Membre de la TI-Chess Team.
Co-mainteneur de GCC4TI (documentation en ligne de GCC4TI), TIEmu et TILP.
User avatar
Lionel DebrouxSuper Modo
Niveau 14: CI (Calculateur de l'Infini)
Niveau 14: CI (Calculateur de l'Infini)
Level up: 11.3%
 
Posts: 6869
Joined: 23 Dec 2009, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
Class: -
GitHub: debrouxl

Re: X3D - A 3D Engine for Nspire and PC

Unread postby catastropher » 27 Dec 2017, 05:26

Apologies for the late response! I hope everyone had a merry Christmas/happy holiday! :D

grosged wrote:! wonderful !

Thank you very much!

Adriweb wrote:That's a very impressive demo, congrats and keep going!

(Also, I replaced your big .gif by a much smaller webm :P)

Thanks for the encouragement and for replacing the gif, I had never heard of webm!

Lionel Debroux wrote:Fantastic work, as always :)

Thank you! You know, it was you emailing me a few years ago that inspired me to keep going on the project! It's taking me forever but hopefully I'll have a full working game of Portal at the end of this!
User avatar
catastropherProgrammeur
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Level up: 68%
 
Posts: 13
Joined: 30 Sep 2015, 18:05
Gender: Male
Calculator(s):
MyCalcs profile

Re: X3D - A 3D Engine for Nspire and PC

Unread postby catastropher » 09 Jul 2018, 00:48

Been working on the new portal rendering system :3

Show/Hide spoilerAfficher/Masquer le spoiler
Image

Image

Image


I've decided to switch to a 3 month release schedule so that I don't keep disappearing for 6 months at a time :P So I'm looking at releasing a playable demo in September. I'll make a post shortly with what my development goals are by then! I've been making a lot of structural changes to the engine since it's now written in C++ rather than C. This left 35k lines of code to be refactored... so I'm trying to balance adding new features with cleaning up what's there.
User avatar
catastropherProgrammeur
Niveau 3: MH (Membre Habitué)
Niveau 3: MH (Membre Habitué)
Level up: 68%
 
Posts: 13
Joined: 30 Sep 2015, 18:05
Gender: Male
Calculator(s):
MyCalcs profile

Re: X3D - A 3D Engine for Nspire and PC

Unread postby Lionel Debroux » 09 Jul 2018, 06:21

Good progress :)

You're right to have switched to C++. C has been stagnating for years, and platforms which don't have a C++ compiler are unfit for running such engines at a decent framerate anyway.

What are the binary's size and the RAM usage for the Nspire, if you're still maintaining support for that platform ?
Membre de la TI-Chess Team.
Co-mainteneur de GCC4TI (documentation en ligne de GCC4TI), TIEmu et TILP.
User avatar
Lionel DebrouxSuper Modo
Niveau 14: CI (Calculateur de l'Infini)
Niveau 14: CI (Calculateur de l'Infini)
Level up: 11.3%
 
Posts: 6869
Joined: 23 Dec 2009, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
Class: -
GitHub: debrouxl

Next

Return to Native: Ndless, Linux, ...

Who is online

Users browsing this forum: ClaudeBot [spider] and 6 guests

-
Search
-
Social TI-Planet
-
Featured topics
Comparaisons des meilleurs prix pour acheter sa calculatrice !
"1 calculatrice pour tous", le programme solidaire de Texas Instruments. Reçois gratuitement et sans aucune obligation d'achat, 5 calculatrices couleur programmables en Python à donner aux élèves les plus nécessiteux de ton lycée. Tu peux recevoir au choix 5 TI-82 Advanced Edition Python ou bien 5 TI-83 Premium CE Edition Python.
Enseignant(e), reçois gratuitement 1 exemplaire de test de la TI-82 Advanced Edition Python. À demander d'ici le 31 décembre 2024.
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
1234
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...
Donate
Discover the the advantages of a donor account !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partner and ad
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
1513 utilisateurs:
>1493 invités
>14 membres
>6 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Other interesting websites
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)