Author Topic: Freebasic 3d renderer using tinyptc  (Read 26536 times)

0 Members and 2 Guests are viewing this topic.

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17409
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Freebasic 3d renderer using tinyptc
« Reply #20 on: May 13, 2006 »
Whoops! Sorry, I forgot that the font was 9*9!!
Getting 54 - 65 fps
P4 3.0ghz Radeon X300se 128mb, 512mb ram.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Stonemonkey

  • Pentium
  • *****
  • Posts: 1315
  • Karma: 96
    • View Profile
Re: Freebasic 3d renderer using tinyptc
« Reply #21 on: May 14, 2006 »
good framerate, there's not much in the way of optimisation atm.

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: Freebasic 3d renderer using tinyptc
« Reply #22 on: May 14, 2006 »
Wouldnt worry about optimizing it buddy, I wouldnt think you could. Fantastic work.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Stonemonkey

  • Pentium
  • *****
  • Posts: 1315
  • Karma: 96
    • View Profile
Re: Freebasic 3d renderer using tinyptc
« Reply #23 on: May 14, 2006 »
I think I can make some improvements on it Clyde.

Offline relsoft

  • DBF Aficionado
  • ******
  • Posts: 3303
  • Karma: 47
    • View Profile
Re: Freebasic 3d renderer using tinyptc
« Reply #24 on: May 15, 2006 »
That's some awesome and wicked render man!!!!

14 - 15 FPS here on my duron 750. :*)

Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17409
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Freebasic 3d renderer using tinyptc
« Reply #25 on: May 15, 2006 »
By the way, if anyone else wants to nab that font for their own prods, feel free and grab it.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Stonemonkey

  • Pentium
  • *****
  • Posts: 1315
  • Karma: 96
    • View Profile
Re: Freebasic 3d renderer using tinyptc
« Reply #26 on: May 20, 2006 »
Made a few changes now and made it into a .dll. Still got loads of stuff i'm wanting to add but here's a slightly modified tunnel demo along with the files you need to use the dll as it is atm.

Some changes:
All texture/entity/world etc handles are now integers
Models now contain the object data instead of meshes, models can be used by multiple meshes to cut down on memory usage.
Added functions: text_to_texture,texture_offset,move_texture_offset,render_to_texture.

EDIT d/l removed, get updated version from later post
« Last Edit: May 21, 2006 by Stonemonkey »

Offline relsoft

  • DBF Aficionado
  • ******
  • Posts: 3303
  • Karma: 47
    • View Profile
Re: Freebasic 3d renderer using tinyptc
« Reply #27 on: May 20, 2006 »
Cool update!!! I like it when the texture got warped. :*)
Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: Freebasic 3d renderer using tinyptc
« Reply #28 on: May 20, 2006 »
Very cool and clever, btw im getting around 30 fps.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17409
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Freebasic 3d renderer using tinyptc
« Reply #29 on: May 20, 2006 »
Nice effect SM, loving the sunken cubes it looks much nicer than the first one, getting a fairly consistent 60fps here.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Stonemonkey

  • Pentium
  • *****
  • Posts: 1315
  • Karma: 96
    • View Profile
Re: Freebasic 3d renderer using tinyptc
« Reply #30 on: May 20, 2006 »
Thanks rel and clyde, as i said before i'm planning on adding a lot more to this as well as speeding it up and if there's anything anoyone would like added feel free to make suggstions.

currently on the to do list:
vertex/texel alpha
entity heirarchy
shadows
methods to retrieve and modify entity/vertex etc info(coords and stuff)
scene blending/wipes
display buffer pixel operations

ah, you've posted before me shockwave, thanks and must look good at 60fps i just get around 35
« Last Edit: May 20, 2006 by Stonemonkey »

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: Freebasic 3d renderer using tinyptc
« Reply #31 on: May 20, 2006 »
As a suggestion how about primitive creating. Like CreateCylinder, CreateSphere, etc.

What a cool to do list.

All the best matey,
Cheers - Clyde.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Stonemonkey

  • Pentium
  • *****
  • Posts: 1315
  • Karma: 96
    • View Profile
Re: Freebasic 3d renderer using tinyptc
« Reply #32 on: May 20, 2006 »
Yeah clyde, stuff like that's pretty handy but would maybe be better kept outside the dll and instead in some sort of add in list of functions, as well as keeping the size of the dll to a minimum it would allow the programmer more control over stuff like how the cubes or cylinders are textured.  Keep the suggestions coming though.

Offline Stonemonkey

  • Pentium
  • *****
  • Posts: 1315
  • Karma: 96
    • View Profile
Re: Freebasic 3d renderer using tinyptc
« Reply #33 on: May 21, 2006 »
Alpha should now be fully working, got some of the shadow code in place but nothing to see there yet. Added a brush system so textures can be reused with differing properties. Starting to slow down a bit now tho.
Also the call to update the buffer to the display is now manual and it's possible to get the address of the colour buffer to read and write to before the update.

Maybe this should be in the work in progress forum.
« Last Edit: May 22, 2006 by Stonemonkey »

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17409
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Freebasic 3d renderer using tinyptc
« Reply #34 on: May 21, 2006 »
The FPS has certainly taken a big hit here, it's running at about half the speed of the last version but the alpha is working perfectly and it is chucking a lot of stuff around so I guess that's to be expected. Looking cool.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Stonemonkey

  • Pentium
  • *****
  • Posts: 1315
  • Karma: 96
    • View Profile
Re: Freebasic 3d renderer using tinyptc
« Reply #35 on: May 22, 2006 »
Managed to get a little bit of the speed back but not much (although can't be compared to previous now as the demo's changed a bit), and added the entity hierarchy stuff which i might still add to to give a little more control over. Thinking of starting something similar using opengl.
« Last Edit: May 23, 2006 by Stonemonkey »

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2757
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: Freebasic 3d renderer using tinyptc
« Reply #36 on: May 23, 2006 »
I got 36 fps instead 16 from previous one, nice work  :)
Challenge Trophies Won:

Offline Stonemonkey

  • Pentium
  • *****
  • Posts: 1315
  • Karma: 96
    • View Profile
Re: Freebasic 3d renderer using tinyptc
« Reply #37 on: May 23, 2006 »
Cool rbraz, thanks. Got the shadow system working now which probably needs a bit of adjustment here and there as i do some testing but on the whole it's working pretty well (with the exception that shading doesn't work on the alpha surfaces atm but i'll fix that).

One problem with the system and i can't see any way around it is that shadows can't be cast onto alpha surfaces which is a bit annoying.
« Last Edit: May 24, 2006 by Stonemonkey »

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17409
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Freebasic 3d renderer using tinyptc
« Reply #38 on: May 23, 2006 »
I tell you what, that is really reall nice. The speed of the whole thing seems unchanged too so I guess that your optimisations did the trick.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline relsoft

  • DBF Aficionado
  • ******
  • Posts: 3303
  • Karma: 47
    • View Profile
Re: Freebasic 3d renderer using tinyptc
« Reply #39 on: May 23, 2006 »
Cool update! faster too. about 10 FPS here from 2 FPS. :*)
Challenge Trophies Won: