The shoutbox is currently out of service. Join us on Discord instead.

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

Started by TheMachine02, January 19, 2015, 05:10:01 pm

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

DJ Omnimaga

How is the speed when no texture is being used other than solid colors?

TheMachine02

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.

tr1p1ea

Well just thinking about when objects are close to the camera is all.

p2

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 s***ty 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
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

tr1p1ea

near plane clipping/culling is certainly an option, I guess it depends on the type of game/program is all.

TheMachine02

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

DJ Omnimaga

I really hope to see a mini game demo someday :)

TheMachine02

December 07, 2016, 10:27:41 am #397 Last Edit: December 07, 2016, 05:24:38 pm by TheMachine02
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 !


p2

that's amazing :D
How did you do the landscape? is it an sphere-like 3d-model itself? O.O
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

TheMachine02


p2

seriously: f*** 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?
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

TheMachine02

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.

DJ Omnimaga

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?

TheMachine02

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

Snektron

Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Powered by EzPortal