Allegro.cc - Online Community

Allegro.cc Forums » Allegro Development » tried allegro 5 today, some ideas

This thread is locked; no one can reply to it. rss feed Print
 1   2   3 
tried allegro 5 today, some ideas
Thomas Fjellstrom
Member #476
June 2000
avatar

With OpenGL. GL only provides a 3D api, and no direct means to integrate it with a given platform api. So now you get to learn Win32, Xlib, and other stuff.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro SVN Snapshots] - [Allegro TODO] - [Web Hosting]
"God Bless Joe Pesci" -- George Carlin
"Goto is the buldozer of coding. Sometimes, the buldozer is just the right tool for the job. Not often, but sometimes." -- LordBob

Matthew Leverton
Supreme Loser
January 1999
avatar

verthex said:

Simple, couldn't get that allegro 5 to work so I'm trying to go with a lower version, but I think I'll just go with openGL soon.

You should use SDL.

verthex
Member #11,340
September 2009
avatar

You should use SDL.

It installs cleanly but it doesn't have as many examples as allegro.

Evert
Member #794
November 2000
avatar

verthex said:

Simple, couldn't get that allegro 5 to work so I'm trying to go with a lower version

In that case, you start a new threat to ask questions about that. Otherwise it's just confusing.

verthex said:

I did try that for the linker options and got more errors than just -lalleg missing.

So where is the library installed? Where are the header files? Are those directories in the search path?
Also, how comfortable are you using Linux? You don't come across as though you're very familiar with it, in which case you might like to read up on how to do things (like set environment variables).

Karadoc ~~
Member #2,749
September 2002
avatar

I don't find verthex's posts to be threatening...

(I'm sorry. I should try to refrain from posting when I have nothing meaningful to contribute.)

-----------

Daniel McKinnon
Member #7,364
June 2006

do_line() is a function I use a lot normally. Of coarse we already discussed polygon rendering and triangulation using the earclip method, but I sense now that we're going to be using the GPU 2D polygon rendering will need to advance too. In my opinion Allegro should do everything it can to make it easier to make games without turning into one of those cut/paste game maker suites.

SiegeLord
Member #7,827
October 2006
avatar

do_line() is a function I use a lot normally.

A5 has an equivalent for it (it's a tiny bit harder to use though).

Quote:

Of coarse we already discussed polygon rendering and triangulation using the earclip method, but I sense now that we're going to be using the GPU 2D polygon rendering will need to advance too.

I'm confused what you mean by that.

"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18
[SiegeLord's Abode][Codes]:[DAllegro5]

Bruce Perry
Member #270
April 2000

but I sense, now that we're going to be using the GPU, 2D polygon rendering will need to advance too

FTFY.

(I'm sorry. I should try to refrain from posting when I have nothing meaningful to contribute.)

I for one enjoyed your post :)

--
Bruce "entheh" Perry [ Web site | DUMB | Set Up Us The Bomb !!! | Balls ]
The brxybrytl has you.

SiegeLord
Member #7,827
October 2006
avatar

Bruce Perry said:

but I sense, now that we're going to be using the GPU, 2D polygon rendering will need to advance too

FTFY.

That still makes no sense.

"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18
[SiegeLord's Abode][Codes]:[DAllegro5]

Bruce Perry
Member #270
April 2000

I assumed he means people will expect more out of the 2D polygon renderer now that it uses the GPU. I could be wrong.

--
Bruce "entheh" Perry [ Web site | DUMB | Set Up Us The Bomb !!! | Balls ]
The brxybrytl has you.

Arthur Kalliokoski
Member #5,540
February 2005
avatar

people will expect more out of the 2D polygon renderer now

Polygons and circles with new improved pixels!

I really admire the U.S. Constitution. It's so much better than what we have now.

Bruce Perry
Member #270
April 2000

Well, the Allegro 4 one already does arbitrary self-intersecting polygons. I expect Allegro 5 will support paradoxical ones fit for bringing down the Borg. :)

--
Bruce "entheh" Perry [ Web site | DUMB | Set Up Us The Bomb !!! | Balls ]
The brxybrytl has you.

Daniel McKinnon
Member #7,364
June 2006

I meant that there will be more expectations for polygon rendering. I mentioned the ear clipping method for triangulating polygons since that's the issue with polygon rendering in A5 and why it's not supported yet.

p.s. I don't know what FTFY means.

Thomas Fjellstrom
Member #476
June 2000
avatar

I don't think allegro even supports Triangulation. Maybe it will in the future, but even just D3D and OpenGL just finally hot support for it. After I don't know how many years.

p.s. I don't know what FTFY means.

Fixed That For You

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro SVN Snapshots] - [Allegro TODO] - [Web Hosting]
"God Bless Joe Pesci" -- George Carlin
"Goto is the buldozer of coding. Sometimes, the buldozer is just the right tool for the job. Not often, but sometimes." -- LordBob

SiegeLord
Member #7,827
October 2006
avatar

I meant that there will be more expectations for polygon rendering. I mentioned the ear clipping method for triangulating polygons since that's the issue with polygon rendering in A5 and why it's not supported yet.

The reason A5 has no general polygon rendering is because it moved to GPU. GPU in fact made the situation worse in that respect. GPU is not magic.

EDIT:
That said... yes, one day we'll get triangulization support and one day we'll also get a shader addon.

"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18
[SiegeLord's Abode][Codes]:[DAllegro5]

Timorg
Member #2,028
March 2002

I don't think allegro even supports Triangulation. Maybe it will in the future, but even just D3D and OpenGL just finally hot support for it. After I don't know how many years.

Apparently OpenGL has has had shader tessellation for 3 years, this document discussing how to use it was 1st published in 2007-06-26. As for OpenGL polygon tessellation, I found it a little unwieldy to use, but it got the job done when I needed it to.

I have never directly used D3D so I can't pass comment on it.

____________________________________________________________________________________________
[Wii: 7692-0472-6469-4203]
"c is much better than c++ if you don't need OOP simply because it's smaller and requires less load time." - alethiophile
OMG my sides are hurting from laughing so hard... :D

Thomas Fjellstrom
Member #476
June 2000
avatar

Timorg said:

Apparently OpenGL has has had shader tessellation for 3 years

But hardware hasn't actually had support for it till DX11 or something. Which means the past year or so.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro SVN Snapshots] - [Allegro TODO] - [Web Hosting]
"God Bless Joe Pesci" -- George Carlin
"Goto is the buldozer of coding. Sometimes, the buldozer is just the right tool for the job. Not often, but sometimes." -- LordBob

Timorg
Member #2,028
March 2002

I guess this is one of those things, that a few cards would have supported it, but unless you have general market take up of the technology, implementing it into a game or engine is a money hole, (unless your game/engine lives long enough to see it be taken up by the market.)

____________________________________________________________________________________________
[Wii: 7692-0472-6469-4203]
"c is much better than c++ if you don't need OOP simply because it's smaller and requires less load time." - alethiophile
OMG my sides are hurting from laughing so hard... :D

Thomas Fjellstrom
Member #476
June 2000
avatar

No, as far as I'm aware, no cards had hardware tessellation till DX made it a mandatory part of its API.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro SVN Snapshots] - [Allegro TODO] - [Web Hosting]
"God Bless Joe Pesci" -- George Carlin
"Goto is the buldozer of coding. Sometimes, the buldozer is just the right tool for the job. Not often, but sometimes." -- LordBob

Timorg
Member #2,028
March 2002

I can find cards that could do hardware tessellation back then, but I can not seem to find information if they were supported as OpenGL extensions. Truform was one hardware tessellation system, from 2001, but it was dropped before it was standardised, (and lack of market takeup.) But other than that, it seems September last year was when cards started supporting it. But I am still sure there are some random crazy cards produced by someone that would have been able to do it. :P

____________________________________________________________________________________________
[Wii: 7692-0472-6469-4203]
"c is much better than c++ if you don't need OOP simply because it's smaller and requires less load time." - alethiophile
OMG my sides are hurting from laughing so hard... :D

Thomas Fjellstrom
Member #476
June 2000
avatar

Timorg said:

But other than that, it seems September last year was when cards started supporting it. But I am still sure there are some random crazy cards produced by someone that would have been able to do it. :P

I'm talking standard average consumer/gamer GPUs. Not HPC cards ;)

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro SVN Snapshots] - [Allegro TODO] - [Web Hosting]
"God Bless Joe Pesci" -- George Carlin
"Goto is the buldozer of coding. Sometimes, the buldozer is just the right tool for the job. Not often, but sometimes." -- LordBob

Timorg
Member #2,028
March 2002

I love Allegro.cc, its a place where even when people completely agree with each other, they can still argue. :D

____________________________________________________________________________________________
[Wii: 7692-0472-6469-4203]
"c is much better than c++ if you don't need OOP simply because it's smaller and requires less load time." - alethiophile
OMG my sides are hurting from laughing so hard... :D

 1   2   3 


Go to: