[QUOTE=Catdaemon;17353894]Because you're joining the wrong one. There are always people there.[/QUOTE]
#fpcoders at irc.gamesurge.net, right?
yes
Whoops, badly configured it there.
[QUOTE=bigdoggie;17354142]#fpcoders at irc.gamesurge.net, right?[/QUOTE]
For anyone who does not even...
[url]irc://irc.gamesurge.net/#fpcoders[/url]
I'm not that experienced with PHP, so I don't know if I did it all the right way, but I wrote a simple mathematical expression parser:
[url]http://82.171.96.250/evaluator/[/url]
It currently supports the operators [b]*, /, +, -, ^[/b] and [b]%[/b]. I'm now going to work on support for parentheses. Tell me if you can find any bugs so far or if you've got anything to say about the source code.
[QUOTE=Overv;17354551]I'm not that experienced with PHP, so I don't know if I did it all the right way, but I wrote a simple mathematical expression parser:
[url]http://82.171.96.250/evaluator/[/url]
It currently supports the operators [b]*, /, +, -, ^[/b] and [b]%[/b]. I'm now going to work on support for parentheses. Tell me if you can find any bugs so far or if you've got anything to say about the source code.[/QUOTE]
I was scared that you might just have used [url=http://us2.php.net/manual/en/function.eval.php]eval[/url] but your way of doing it seems safe.
[QUOTE=Xeon06;17354704]I was scared that you might just have used [url=http://us2.php.net/manual/en/function.eval.php]eval[/url] but your way of doing it seems safe.[/QUOTE]
No, if I had used eval, I wouldn't have learned anything and it's intended to be easily portable to other languages.
[img]http://i29.tinypic.com/mcakbl.png[/img]
:D.
i spot myself
It crashes for me :(
And my 700 post is the most useless one yet :D
[IMG]http://i132.photobucket.com/albums/q17/Mattayu/lolinertia.jpg[/IMG]
[URL=http://www.mediafire.com/download.php?oygjmjynjxi]Download[/URL]
You are the commander of planetary defense platform X! You're are responsible for protecting earth from the approaching meteors sent tumbling into earth by the evil Gaxter!
(ITT: Make up cheesy plots.)
- SIDE TO SIDE ACTION! Ever want to be a pilot of a spaceship that can only move side to side? NOW YOU CAN!
- METEORS THAT INTERLOPE! Do you love rocks that don't collide with each other and go straight down? SO DO I.
- MUSIC THAT I TOOK FROM SOME GAME! Boy that's some great music!
- STUPID NOISE SOUND EFFECTS! Want that retro feel, or a sound that might be your speakers breaking or might be my game? YOU CAN HAVE THAT NOW!
This is my current project :P first game and I'm still working at it, just got sound working. But ya I'm still working on it. The code is a mess but the game is semi-decent in a simple way.
[QUOTE=ZeekyHBomb;17352037]Well, you could try using the programmable pipeline (OGL3) instead of the depreciated fixed-function pipeline of OGL2-times.
That will take some work to implement if you didn't code the interfaces quite abstract though.
And if you decide against trying that, change GL_POLYGON to GL_TRIANGLE_STRIP. Normal graphic-cards will render it more easily as they are optimized for triangles.[/QUOTE]
And instead of using anything between glBegins, use indexed vertex arrays and VBOs. Fast [I]and[/I] small amount of memory. It also lets you specify arbitrary vertex attributes in an interlaced pattern to improve cache hits. It's really hard to optimize for triangle strips anyway.
[QUOTE=ZeekyHBomb;17352037]Well, you could try using the programmable pipeline (OGL3) instead of the depreciated fixed-function pipeline of OGL2-times.
That will take some work to implement if you didn't code the interfaces quite abstract though.
And if you decide against trying that, change GL_POLYGON to GL_TRIANGLE_STRIP. Normal graphic-cards will render it more easily as they are optimized for triangles.[/QUOTE]
I'd rather stick with opengl 2 as I know it and it's widely supported. Would the difference between a polygon and a triangle strip be substantial?
[QUOTE=Catdaemon;17358532]I'd rather stick with opengl 2 as I know it and it's widely supported. Would the difference between a polygon and a triangle strip be substantial?[/QUOTE]
Triangle strips and polygons are all gl 1.1
Triangle strips would indeed be better. Each glVertex call is a command that must go over the pipe, and the fewer redundant vertex calls, the better.
In fact, you should be using GL_TRIANGLES if you can't figure out how to arrange it in a strip. glBegin and glEnd mark primitives in opengl, and the pipeline must be flushed between each primitive. (i.e. [I]slow[/I]) You want to draw your entire object between a single glBegin and glEnd pair.
[editline]03:48PM[/editline]
Still, nothing beats the performance of VBOs. The entire reason VBOs exist is to reduce the amount of information that is necessary to go over the bottlenecked graphics bus in each frame. VBOs have vertex information stored in graphics memory, so drawing an object from one is only a few commands (and the CPU code does not have to wait for the GPU to finish drawing the object before continuing execution of its own code. This is a vitally important part of improving performance of graphics code.)
Just finished [url]http://resourcepile.com/[/url] based on my mini-framework, 4 hours start to finish :D
[QUOTE='-[ Fizzadar ]-;17358990']Just finished [url]http://resourcepile.com/[/url] based on my mini-framework, 4 hours start to finish :D[/QUOTE]
If you can get a lot of content on there that is properly sorted I may regularly use the site.
[QUOTE=Hibame;17361384]If you can get a lot of content on there that is properly sorted I may regularly use the site.[/QUOTE]
That's the plan :)
Currently it's simple category based content, I should probably add search, but due to a lack of actual content, just pure titles, it wouldn't work to well, nor would tagging, since you'd end up with the same names as the categories xD
I'm thinking of adding a grid view system though, but as for sorting content, no clue other than decent set out categories. Maybe I could have options for how many per page, which layout style, which would help if you wanted like... all icon resources, in a massive grid.
[editline]02:18AM[/editline]
Update on above:
I suppose what you're meant to do is follow the feed or follow us on twitter, and as good resources come up, check them out. If you like them, you bookmark them on delicious or whatever (decided against a favorite + login system, because more bookmarking is not needed). But of course, the categories will build an archive of resources over time.
Working on a Platformer RPG with a friend. (C++ / SFML)
[media]http://i32.tinypic.com/2nicfvm.png[/media]
So far I have collisions, animations, hat changing, and platform "physics". Still working on message boxes/UI.
well, I'm back to working on what I normally work on
[img]http://i31.tinypic.com/ou0euf.jpg[/img]
looks good what is it
[editline]12:21AM[/editline]
a source mod?
[QUOTE=efeX;17365742]looks good what is it
[editline]12:21AM[/editline]
a source mod?[/QUOTE]
Empires. It's a source mod.
[QUOTE=noctune9;17365778]Empires. It's a source mod.[/QUOTE]
yap
My expression evaluator now supports parentheses, next on the todo list are functions. Tell me if you can [url=http://82.171.96.250/evaluator/][u]spot any bugs[/u][/url] once again.
[QUOTE=Overv;17366350]My expression evaluator now supports parentheses, next on the todo list are functions. Tell me if you can [url=http://82.171.96.250/evaluator/][u]spot any bugs[/u][/url] once again.[/QUOTE]
0.999999999999999999999999999999999999999/1.0
There's a bug :v: (I'm serious actually, it gives back a 1)
[QUOTE=Chandler;17366594]0.999999999999999999999999999999999999999/1.0
There's a bug :v: (I'm serious actually, it gives back a 1)[/QUOTE]
Negligble according to [url=http://www.google.com/search?rlz=1C1GGLS_nlNL334NL334&sourceid=chrome&ie=UTF-8&q=0.999999999999999999999999999999999999999/1.0]Google[/url].
[QUOTE=arienh4;17366611]Negligble according to [url=http://www.google.com/search?rlz=1C1GGLS_nlNL334NL334&sourceid=chrome&ie=UTF-8&q=0.999999999999999999999999999999999999999/1.0]Google[/url].[/QUOTE]
Also, eventually:
[url]http://en.wikipedia.org/wiki/0.999...#Algebraic[/url]
[quote=overv;17366350]my expression evaluator now supports parentheses, next on the todo list are functions. Tell me if you can [url=http://82.171.96.250/evaluator/][u]spot any bugs[/u][/url] once again.[/quote]
10^100^1000
[QUOTE=Wipmuck;17367477]10^100^1000[/QUOTE]
Not a bug, a technical limitation. I'd suggest you contact the PHP developers for that one.
Did some more work on my WoW armory parser, it can check how far into the raiding part of the game you are by checking achievements. Not public yet since there's quite a few bugs. :v:
Sorry, you need to Log In to post a reply to this thread.