Author Topic: A 2D ASCII Text/Graphics Lib (WIP)(OpenGL Style)  (Read 2968 times)

0 Members and 1 Guest are viewing this topic.

Offline Rattrapmax6

  • Atari ST
  • ***
  • Posts: 131
  • Karma: 5
  • World Wild Web Stallion
    • View Profile
Basicaly I've been playing around with making OpenGL style graphics commands.... the:

Code: [Select]
glBegin GL_TRIANGLES
     glVertex3f (1.0, 0.0, 0.0)
     glVertex3f (1.0, 1.0, 0.0)
     glVertex3f (0.0, 1.0, 0.0)
glEnd

Which would/might prevent a confusing command like this:
Code: [Select]
Gl_Triangle(1.0, 0.0, 0.0,1.0, 1.0, 0.0,0.0, 1.0, 0.0)
Is how this lib is being designed.... Tho while the current version I'm playing around with doesn't have triangles, it does have points..

I'm not sure how far it will go with it, but it's a cool lil lib already....

Examples and Include lib:
UPDATED: Line functions added:
http://www.xteraco.com/xtrgraphics/Temp/ASCII_Lib.zip

^ Note, it's not compiled yet.. Right now it's just a .BAS file you include into your prog (THE_LIB.bas)
« Last Edit: June 24, 2006 by Rattrapmax6 »
-Rattra (x.t.r.GRAPHICS)

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: A 2D ASCII Text/Graphics Lib (WIP)(OpenGL Style)
« Reply #1 on: June 23, 2006 »
Dude thats awesome and welldone.
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: 17378
  • Karma: 497
  • evil/good
    • View Profile
    • My Homepage
Re: A 2D ASCII Text/Graphics Lib (WIP)(OpenGL Style)
« Reply #2 on: June 23, 2006 »
How cool is that? :)
Love it, I'd really like to see a FB ascii demo, I'd thought of ascii demos and how to write them back last year, I was downloading loads of them from Pouet and thinking how cool they are.
Now seeing your XTR logo and how your lib converts this to ascii gives me lots of ideas.
By the way, the conversion from logo to ascii is really good.
Looking forward to seeing some effects next!
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: A 2D ASCII Text/Graphics Lib (WIP)(OpenGL Style)
« Reply #3 on: June 23, 2006 »
I made one last year too in Blitz. Never got round to finishing off the other parts. Bits of it could be easily converted, but theres a few that will take a bit of time to adapt. And OGL i've not really looked into much. Got the books, just the brain isnt responding too well these days.

Check out the TMDC link in the uselinks, for demos that are pure acsii / ansi and dos.

Good one on the Engine Rattrapmax.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Tetra

  • DBF Aficionado
  • ******
  • Posts: 2532
  • Karma: 83
  • Pirate Monkey!
    • View Profile
Re: A 2D ASCII Text/Graphics Lib (WIP)(OpenGL Style)
« Reply #4 on: June 23, 2006 »
Nice 1 Rattrapmax6  thanx for sharing it with us, the matrix example was cool  O0

 :cheers:
Challenge Trophies Won:

Offline Rattrapmax6

  • Atari ST
  • ***
  • Posts: 131
  • Karma: 5
  • World Wild Web Stallion
    • View Profile
Re: A 2D ASCII Text/Graphics Lib (WIP)(OpenGL Style)
« Reply #5 on: June 23, 2006 »
Yeah, It's a cool lil toy.... I also made a 3D ASCII lib ages ago, but it wasn't the fastest rendering thing, more so from the cheap way I made the z-buffer.... But for what lil it could do, it was pretty cool:
http://www.ascii-world.com/phpBB2/viewtopic.php?p=719#719

As far as this one.... I was planning on adding lines today, but my line algos are really buggy.... I'm going to have to time out, and play w/ making lines agian.... XD .... I know the math, so it shouldn't take too long to refreash.... =)

Thanks for the comments tho, wasn't expecting such hot reviews on an ASCII Engine.. ;) .. Might be something good to keep working on in my spare time..  ;D .. I know I can't help but marvel at this things speed, even w/ the animated window title, it flies....  :o

PS: @Tetra: Yeah, the Matrix one is awesome, even tho it's a simple effect... =D
-Rattra (x.t.r.GRAPHICS)

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17378
  • Karma: 497
  • evil/good
    • View Profile
    • My Homepage
Re: A 2D ASCII Text/Graphics Lib (WIP)(OpenGL Style)
« Reply #6 on: June 23, 2006 »

Thanks for the comments tho, wasn't expecting such hot reviews on an ASCII Engine.. ;) .. Might be something good to keep working on in my spare time..

Ascii demos rule full stop! :) :)
I'll be honest with you, if I had an ascii engine like that I'd be doing an ascii demo for sure.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Rattrapmax6

  • Atari ST
  • ***
  • Posts: 131
  • Karma: 5
  • World Wild Web Stallion
    • View Profile
Re: A 2D ASCII Text/Graphics Lib (WIP)(OpenGL Style)
« Reply #7 on: June 23, 2006 »
 :||

I ADDED LINES!!!! :o *Passes out*

They were beeing a real ass for awhile, but I got them in there, and they look and work pretty good....

^ Reuploaded to the first link.... the Zip should have the new file "Line_Test.bas" and .exe ....  ;D ....

Enjoy!

PS: @ Shockwave: Well, I'm deffently making one so far....
-Rattra (x.t.r.GRAPHICS)

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17378
  • Karma: 497
  • evil/good
    • View Profile
    • My Homepage
Re: A 2D ASCII Text/Graphics Lib (WIP)(OpenGL Style)
« Reply #8 on: June 23, 2006 »
Lines are working well  :)
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: A 2D ASCII Text/Graphics Lib (WIP)(OpenGL Style)
« Reply #9 on: June 23, 2006 »
Cool, nice work there RattrapMax.

Seeing as I can't use Version 2 of Bass with Blitz anymore, I might see about over the weekend adapting my ascii efforts. Though it isnt OGL-fied. Sorry for swaying slightly off topic.

Looking forward to see what you come up with RattrapMax dude,
All the very best,
Clyde.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Rattrapmax6

  • Atari ST
  • ***
  • Posts: 131
  • Karma: 5
  • World Wild Web Stallion
    • View Profile
Re: A 2D ASCII Text/Graphics Lib (WIP)(OpenGL Style)
« Reply #10 on: July 27, 2006 »
Thought I'd be nice and update this....

So far, since the last update, I did do some work before stopping off.... I hit a nasty rock with the colour buffer, and am going to have to figure that bit out agian....

I've also been slacking off on my coding, attention span is like a wonky sinus wave here as of late.. As I've also been meaning to do somethig for the ASCII demo thing, but I keep forgetting, or failing to come up w/ a cool idea.... Next time I'm bored though, I might read back over my source, and fix up this lib some.... hopefully....
-Rattra (x.t.r.GRAPHICS)

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17378
  • Karma: 497
  • evil/good
    • View Profile
    • My Homepage
Re: A 2D ASCII Text/Graphics Lib (WIP)(OpenGL Style)
« Reply #11 on: July 27, 2006 »
With the lib I'd have thought that you would find it easy to come up with something cool for the Ascii challenge *but* I know how easy it is to just hit a mental brick wall for no reason sometimes. Especially when it's Summertime and there are better things to do :)
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Rattrapmax6

  • Atari ST
  • ***
  • Posts: 131
  • Karma: 5
  • World Wild Web Stallion
    • View Profile
Re: A 2D ASCII Text/Graphics Lib (WIP)(OpenGL Style)
« Reply #12 on: July 27, 2006 »
I have started something, 3 mor days.. heh....

What I was working on was a Demo/intro ... then I was looking at the others, and they where just single effects.. So I lost all focus on it... I might brake it apart and submit the individual effects, unless the demo is okay.... I just need to finish it up....
-Rattra (x.t.r.GRAPHICS)

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17378
  • Karma: 497
  • evil/good
    • View Profile
    • My Homepage
Re: A 2D ASCII Text/Graphics Lib (WIP)(OpenGL Style)
« Reply #13 on: July 27, 2006 »
Submit the demo is fine :)
The comp was supposed to be for the first part to submit an effect and the second part to submit a demo but as it happens we have one entry the wrong way around already (Tetras) so I don't suppose it matters which way you do it!
Shockwave ^ Codigos
Challenge Trophies Won: