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 2 Guests are viewing this topic.

u/Dream of Omnimaga November 21, 2016, 11:10:07 PM
How is the speed when no texture is being used other than solid colors?
u/TheMachine02 November 22, 2016, 02:11:21 PM
Well flat filling is much faster than texture like about x5. For very huge triangle there isnt many possibilities. I am limited by ldir throughput at 7ts per pixel. Hopefully there shouldnt be such big tri in typical scene.
u/tr1p1ea November 22, 2016, 08:01:18 PM
Well just thinking about when objects are close to the camera is all.
u/p2 November 22, 2016, 08:08:38 PM
maybe the following will work (but might slow it down):
the edge of the camera angel (on the edge of what will be visible on the screen) add extra plains and calculate their collision lines with any object that's claser than XXXm to the "camera". Then only display the smaller field defined by those colission edges.
Buuut I guess you thoght about this months ago and thought it was a cty way to do stuff....
so just ignore it probably ^^
also can't wait to see a demo of one-colore models at full speed ;D
u/tr1p1ea November 23, 2016, 05:35:51 AM
near plane clipping/culling is certainly an option, I guess it depends on the type of game/program is all.
u/TheMachine02 November 23, 2016, 05:04:15 PM
Yeah, clipping is already half supported in the engine. Sure it could work, but I guess programms will need to be tweaked on per-game base. Anyway, there is also a way to do 5TStates/pxl but amout of work in the outer inner loop would almost supress all the benefit. So 7TStates/pixel that is all  :P
u/Dream of Omnimaga November 23, 2016, 05:11:03 PM
I really hope to see a mini game demo someday :)
u/TheMachine02 December 07, 2016, 10:27:41 AM
Progress !





So yeah, clipping half-work now ! And ok, it is slow, but I am not finished yet  :P

EDIT : texture convert now support dithering & color boosting !

Last Edit: December 07, 2016, 05:24:38 PM by TheMachine02
u/p2 December 07, 2016, 10:30:06 AM
that's amazing :D
How did you do the landscape? is it an sphere-like 3d-model itself? O.O
u/TheMachine02 December 07, 2016, 10:31:45 AM
Exactly  :) A ~100 polygons sphere model.
u/p2 December 07, 2016, 10:34:17 AM
seriously: c that blue alien woman, she doesn't smile anyways. Just create a beautiful landscape and let the camera fly over it O.O
It looks amazing!! That would be more thn enough of a graphics demo ^.^

That warer... is the picture already a gradient? or is it real rendered with light and stuff?
u/TheMachine02 December 07, 2016, 10:37:04 AM
Quote from: p2 on December 07, 2016, 10:34:17 AM
It looks amazing!! That would be more thn enough of a graphics demo ^.^
That warer... is the picture already a gradient? or is it real rendered with light and stuff?

Thanks, and yeah, I planned a demo  :P
Anyway, no, there isn't any real time light here. It would be in really pasta fps if it was  :P It is only the texture which give this effect.
u/Dream of Omnimaga December 08, 2016, 01:43:45 AM
That is just beautiful O.O. I wonder how fast it runs if you reduce the quality, such as the vertical and horizontal resolution of the background? And what if it's turned into a 2D scrolling bitmap?


I just tried the demo and noticed it comes with many files. Is there a list of controls available somewhere?
u/TheMachine02 December 08, 2016, 08:51:49 AM
Having a lower resolution on the background won't make things faster. However, turning it to a 2D bitmap would be a massive boost - but break thing when you look up or down. The method here is the conservative method - you can do what you want, it'll always look good.
All the file there is with the demo are all the texture file - I guess I could pack them, but well this is a demo, so I didn't do it  :P

Controls are just right and left key to rotate the model cause I never bothered to implement more  :P
u/Snektron December 08, 2016, 09:28:58 AM
Pretty awesome :o
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