Jump to content
  • Advertisement

PGC

Member
  • Content Count

    23
  • Joined

  • Last visited

Community Reputation

115 Neutral

About PGC

  • Rank
    Member
  1. PGC

    Linear Algebra library

    Someone suggested this to me : http://plib.sourceforge.net/sg/ It looks like all I'm searching for ... anyone any experience in using this ?
  2. PGC

    Algorithmic problem

    You could make some tweaks ... after sorting (small to large) : if ( S_n + S_(n-1) < x ) then no such 2 elements else if ( S_1 + S_2 > x ) then no such 2 elements and searching might be done a little different : i1 = 1 i2 = 2 for ( i2 <= n ) { x' = x - S_i1; while ( ( S_i2 < x' ) && ( i2 <= n ) ) { i2++; } if ( x' == x ) { succes , present.... } i1++; } "& lt;" stands for "<"
  3. PGC

    Linear Algebra library

    Quote:Original post by nmi Quote:Original post by PGC Quote:Original post by nmi Did someone already mention Blitz++ ? http://sal.jyu.fi/B/0/BLITZ++.html A listing of available libraries can be found here: http://www.oonumerics.org/oon/#libraries The copyrights indicated on the bottom of the site indicate 2001. Did they stop development ? I can't reach oonumerics.org for some reason by the way... As indicated by sourceforge the latest release is from October 14, 2005. http://sourceforge.net/project/showfiles.php?group_id=63961 Strange thing that you cannot reach oonumerics. For me it works fine. Maybe you should try again another day. I don't know why either. Looks interesting, 'blitz++'. I'll check it out.
  4. PGC

    Linear Algebra library

    Quote:Original post by nmi Did someone already mention Blitz++ ? http://sal.jyu.fi/B/0/BLITZ++.html A listing of available libraries can be found here: http://www.oonumerics.org/oon/#libraries The copyrights indicated on the bottom of the site indicate 2001. Did they stop development ? I can't reach oonumerics.org for some reason by the way...
  5. PGC

    Linear Algebra library

    Quote:Original post by lightbringer Quote:Original post by PGC ... Maybe directx has a standard class for vectors, however openGl (which I'm using) doesn't. So do 99% of the 3d application creators implement their own vector/la class(es) ? I'm not a game programmer nor do I consider myself anything of an experienced programmer, but I am very surprised about this... OpenGl doesn't have a lot of things ^_^. Well, it won't hurt you to implement them yourself. Personally I use the vector classes which come with the lwjgl library, which is a java binding for opengl. However, vectors and matrices are rather simple - if/once you understand the math behind them, coding some shouldn't take any signifficant amount of time. As I said before, I can implement them myself, it's just that I do not wish to be the 1002nd person to reinvent the damn wheel. I know my linear algebra, don't worry.
  6. PGC

    Linear Algebra library

    That (SSE and such) would be very handy of course and I might add that later on. For now however I'll concentrate on the la (linear algebra) library. Although uBLAS might be a bit more extended than would be necessary, it is, as far as I can tell the most accepted library. I am a bit surprised of the lack of a really standard library for 3/4 dimensional la when you consider the amount of 3d programs/games nowadays. Maybe directx has a standard class for vectors, however openGl (which I'm using) doesn't. So do 99% of the 3d application creators implement their own vector/la class(es) ? I'm not a game programmer nor do I consider myself anything of an experienced programmer, but I am very surprised about this...
  7. PGC

    Linear Algebra library

    ury > as I said, I want to avoid implementing it myself. I believe there to be a 1001 implementations by now, all by people who decided to 'implement it themselves'. I do not want to reinvent the wheel for the 1002nd time. Yes, I only need 3 and 4 dimensional operations. From what I've seen thusfar, Boost::uBlas seems like a decent library. The MKL however is Intel specific. My code might have to run on non-intel systems so now and then... And a heavy gun might actually be required since I'm working on a visualizer for particle simulations, thus involving lots of particles...
  8. PGC

    Linear Algebra library

    I had read about Boost (uBLAS) before, but wondered how standard that is. ury > I want to use it for a 3d visualization. Several linear algebraic methods are performed . I can implement those myself, however, instead of creating my own vector class and such I wondered if there were any standard and (most important) commonly used libraries.
  9. I was wondering, is there a standard C++ library for vectors classes and such ? One that is fairly standard ? And no, I don't mean the stl vector container class kind but the linear algebra type.
  10. PGC

    Coded message please read,

    Go outside, meet with friends, enjoy life, get laid .... don't waste your time trying to start a conversation in c-code... there are better things you can do with your life.
  11. Quote:Original post by JDUK While playing an RTS game I all of a sudden have to gain omniprecence and be mentaly one side of the map while being phisicaly(whats on my monitor) in another part of the map. And whats worse unlike a real war/conflict/etc I cant depend on a groups leaders or commanders to do the smart thing if left alone and lead thier group/platoon/regiment... im the only thinking being out of my entire army. and I have to be every man and think for every man at every moment in the game. Heir heir . That is EXACTLY the reason why I don't like rts's. If you commanded a real army, you'd be able to give your commanders a directive and can assume that they execute properly , and if they couldn't they'd contact you AND take proper action. I think commanding an army would be like playing a chess-game, while the pieces are capable of making certain important decisions on their own... In current rts's this is simply not possible. The units are simply too stupid, and so are (if there are any) the commanders. Although turn-base games do not allow the nice action an rts offers, it IS more fun to play. if you want action, play an fps. If you could make a certain semi-turn based rts, where there are ranks, and each rank is capable of making more abstract decisions than the one below it ... now THAT would be interesting . i.e. A soldier is only capable of making decisions for himself, guard, fire, walk etc ; a platoon commander is capable of making decisions for the whole platoon, where is the platoon going to go ,.. ) ; field officer determines where several platoons should go ,..... etc etc ... in the highest rank there will be you ... commanding the game like a chess-game, however you can also zoom in to see the complexity of things... Great question ! Sorry about my ramble...
  12. You might want to strcpy the string btw. I'm not too sure though , but I do no think that putting a pointer in the queue ( string is a char* I assume.. ) to where the string of a line used to be in memory is very safe... though I'm not too sure when it comes to that fancy '>>' stuff :P
  13. template<typename Element> inline void PQueue<Element>::enqueue(Element e) { Link tempPtr = new Node(e); if (isEmpty()) front = back = tempPtr; back->next = tempPtr; back = tempPtr; size++; } Mmh ... please make a habit out of it to always use {} after an if statement ... In a quick glance I would have thought the above code said : template<typename Element> inline void PQueue<Element>::enqueue(Element e) { Link tempPtr = new Node(e); if (isEmpty()) { front = back = tempPtr; back->next = tempPtr; back = tempPtr; size++; } } for all of the stuff after the if statement is indented ... but you meant : template<typename Element> inline void PQueue<Element>::enqueue(Element e) { Link tempPtr = new Node(e); if (isEmpty()) { front = back = tempPtr; } back->next = tempPtr; back = tempPtr; size++; } And when you work with null pointers, use NULL please, instead of '0'... [Edited by - PGC on November 6, 2005 6:42:43 PM]
  14. Could you show a piece of the code ? You might want to consider using a thing like Flex/Bison though (I don't know if that is available under Windows however... ) .
  15. PGC

    glVertex3f??!

    Try reading the OpenGl Red Book http://www.opengl.org/documentation/red_book_1.0/
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!