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

3D models - A call To Arms [3d][z80][ez80]

Started by TheMachine02, May 09, 2017, 05:36:50 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

TheMachine02

Well, rendering scaled/rotated 2D sprite is a matter of skipping one dimension and use the exact same code as with 3d rendering. So yeah, draing only two textured triangle and rotating 4 vertex is pretty fast. That could indeed be used.

c4ooo

Quote from: TheMachine02 on May 14, 2017, 09:23:36 AM
Well, rendering scaled/rotated 2D sprite is a matter of skipping one dimension and use the exact same code as with 3d rendering. So yeah, draing only two textured triangle and rotating 4 vertex is pretty fast. That could indeed be used.
If rendering rotation / scaling of 2D sprites, why not treat them as a single rectangle instead of two triangles? I dont understand the reason behind why everything 3D is made from triangles lol

kotu

#17
The reason things are made from  triangles in 3D is: a polygon with 3 vertices defiines a plane - one with 4 vertices can define up to 2 planes

*edit*
so with a triangle you always know whether the whole thing is visible or not.
  • Calculators owned: TI 84+CE-T
  • Consoles, mobile devices and vintage computers owned: Sega Master System, Sony PlayStation 3
SUBSCRIBE TO THE FUTURERAVE.UK MAILING LIST
http://futurerave.uk

c4ooo

Quote from: kotu on May 14, 2017, 06:26:03 PM
The reason things are made from  triangles in 3D is: a polygon with 3 vertices defiines a plane - one with 4 vertices can define up to 2 planes

*edit*
so with a triangle you always know whether the whole thing is visible or not.
Well i meant if it was ported to just allow 2D sprites on a 2D surface. I guess my post was confusing since i mentioned 3D :(

TheMachine02

Sure, 2D blitting method could also be programmed, but it would be very close to what textured triangle code is, and there is little point to use maybe a little more optimized code which would add a lot of weight to the already heavy program. Futhermore, there isn't many gain to be expected from a custom 2D pipeline, especially that the integration with the 3D will be harder. Better off using 3D pipeline for everything (not UI though  :P )

xMarminq_

You could just pull a Doom and make it look 3D
  • Calculators owned: Ti-84 Plus CE, Ti-84 Plus (can be borrowed from my school)
I don't associate with associations

p2

using gLib with 2D chars could result in a really impressive framerate if I think about how simplified the map of nDoom was...
But doesnt that kill the purpose or a real 3D game? ;)

sure it'd do for a first demo of gLib, but I doubt that's what he wants.
As I understood it, he needs real 3D char models to test gLib on a real 3D game to evaluate the speed ;)
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CAS, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
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

Exactly, since using 3D model for character open a whole world of possibilities against using only 2D precomputed image, especially in lightning (cause yeah, my lightning is quite efficient right now). And even if the speed isn't enough to ouput full 320x240, I have the possibilities to lower the resolution....

c4ooo

Maybe you can do something simple like this just to showcase the engine? :)


p2

Do you guys still remember the ravenfield topic?
I guess such a simplified character model (rather similar to minecraft) would be enough for testing the speed in a first demo :)
Even tho it wouldn't really show the true beauty of the light stuff :/
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CAS, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
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)

c4ooo

Quote from: p2 on May 16, 2017, 08:09:49 AM
Do you guys still remember the ravenfield topic?
I guess such a simplified character model (rather similar to minecraft) would be enough for testing the speed in a first demo :)
Even tho it wouldn't really show the true beauty of the light stuff :/
3D minecraft would be awesome too

p2

not very realistic cuz of the amount of blocks that have to be rendered for a decent game experience.
in a simplified building like in nDOOM like 20 surfaces are shown in average (guessed, idk for sure) but for minecraft... x.x

I think an nDOOM like map combined with a minecraft-style character would be best suited...

Feel free to correct me if I'm wrong @TheMachine02 ^^
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CAS, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
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

Yeah minecraft despite his low-poly appearance is still quite heavy for CPUs. You have to build up chunk & many polygons may be needed to be rendered. With significant shortcut such as very low view distance it could be possible though. gLib can still output a heavy number of triangles per frame hopefully  :P

Dream of Omnimaga

I think the Minecraft issue is that you need to render every single side of the squares, right? In regular 3D games, the terrain is usually a bunch of walls stuck together while Minecraft is individual blocks
  • 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

WholeWheatBagels

IIRC why Minecraft is so CPU-intensive is that it has to calculate what blocks to show and render them in real-time dynamically instead of a fixed map like other games. Not sure if this is actually why tho.
Living in another world to you.



Also in case you were wondering Frankie did go to Hollywood

Powered by EzPortal