You can help CodeWalrus stay online by donating here. | New CodeWalrus | Old (dark mode) | Old (light) | Discord server

[gLib][3d][z80][ez80] gLib a fast 3D asm/axiom library

b/[Inactive] gLib 3D polygon library (TI-83+/84+/CE/83PCE) Started by TheMachine02, January 19, 2015, 05:10:01 PM

Previous topic - Next topic

0 Members and 7 Guests are viewing this topic.

u/TheMachine02 April 15, 2015, 06:11:57 AM
I can indeed add that, even if that require slighty more works to correctly interfacing with the OS vars, and being more slow :p
But this is definitly doable.
u/Dream of Omnimaga April 15, 2015, 06:36:00 AM
I guess if it used hooks it would be faster, but the problem is that you would need to make sure that the hook chains properly with Doors CS, ZStart, Omnicalc, Symbolic or xLIB.
u/Snektron April 15, 2015, 09:58:41 AM
Hooks chaining is not really hard (though you need to find a safe place in the ram to store the hook, someone really should make a standard for this), but the user also has to activate them in the right order
u/Dream of Omnimaga April 16, 2015, 03:17:48 AM
Yeah that's the issue I think. In your case, would the hook have to be installed after DCS?

As for standards, Kerm started a topic in 2013 to setup some standards right from the start on the CSE, so I assume it will be the same for the CE. This is to avoid problems like on the 83+ where we ended up with about 3-4 different shells and libs of programs and stuff like xLIB that didn't chain properly with Symbolic/Omnicalc. So when ASM really gets started on that calc, if you ever decide to code for it and port your program, then you might need to make sure to check which RAM area to use and what not to use.
u/Duke "Tape" Eiyeron April 16, 2015, 07:28:37 AM
Yeah, but not everyone wants the same shell. I'm okay at defining standards but avoid them to be too restrictive and blocks competiton/concurrency.
u/Snektron April 16, 2015, 08:24:21 AM
Quote from: DJ Omnimaga on April 16, 2015, 03:17:48 AM
Yeah that's the issue I think. In your case, would the hook have to be installed after DCS?
Depends on what the user wants to run first. With a parser hook it shouldn't really matter though (if both apps chain properly) unless
some commands use the same token...
u/TheMachine02 April 16, 2015, 09:30:40 AM
Yeah indeed, but I definitely do that a the end, after the asm lib/axiom is complete  :P
Also I like how I have speed up triangle filling code : asm version is 4x faster than axe version XD, and is +-300 bytes smaller... that put the theorical triangle output rate at almost 192 Tri/s, almost 2x more than the axe version  :D ... and I haven't finished to optimize filling and many other things.
u/Snektron April 16, 2015, 12:57:56 PM
Wow that's quite a fast algorithm. How do you test the filling algorithm?
u/Duke "Tape" Eiyeron April 16, 2015, 02:05:59 PM
That's prettty amazing to have that amount of triangles drawn/s as we are on a calculator. Do you take account of the fact that a triagnle close to the camera will take longer to draw than a small triangle?
u/TheMachine02 April 16, 2015, 02:29:27 PM
Quote from: Cumred_Snektron on April 16, 2015, 12:57:56 PM
Wow that's quite a fast algorithm. How do you test the filling algorithm?

cycles counting / fps testing

Quote from: Duke "Tape" Eiyeron on April 16, 2015, 02:05:59 PM
Do you take account of the fact that a triagnle close to the camera will take longer to draw than a small triangle?
Actually I based the calculation on triangles who fill 1536 pxl - one quarter of the screen.
u/Duke "Tape" Eiyeron April 16, 2015, 04:08:45 PM
Neato! I can't wait until someone does a RPG with it! :D
u/Snektron April 16, 2015, 04:43:38 PM
Yeah that'd be really cool :D
u/Duke "Tape" Eiyeron April 16, 2015, 05:15:54 PM
And yet, it'll probably get out just after HL3, such projets are really hard to get done.
u/TheMachine02 April 17, 2015, 02:24:50 PM
Quote from: Duke "Tape" Eiyeron on April 16, 2015, 04:08:45 PM
Neato! I can't wait until someone does a RPG with it! :D

Hehe  :P strange things happens
u/Dream of Omnimaga April 17, 2015, 04:16:20 PM
Quote from: Duke "Tape" Eiyeron on April 16, 2015, 07:28:37 AM
Yeah, but not everyone wants the same shell. I'm okay at defining standards but avoid them to be too restrictive and blocks competiton/concurrency.
yeah it's more to avoid compatibility issues. For example, many Ion games crashed in MirageOS and vice-versa and if people played Metroid II or XXR they had to uninstall Omnicalc and Symbolic.

Quote from: Duke "Tape" Eiyeron on April 16, 2015, 04:08:45 PM
Neato! I can't wait until someone does a RPG with it! :D
Illusiat 3-D :P
Website statistics


MyCalcs | Ticalc.org | Cemetech | Omnimaga | TI-Basic Developer | MaxCoderz | TI-Story | Casiocalc.org | Casiopeia | The Museum of HP Calculators | HPCalc.org | CnCalc.org | Music 2000 Community | TI Education | Casio Education | HP Calcs | NumWorks | SwissMicros | Sharp Calculators
Powered by EzPortal