• What are you working on? V5
    2,005 replies, posted
[QUOTE=garry;18687361]I won't hate ya, I love D3D[/QUOTE] What the... garry is never that nice! Or at least he doesn't appear to be. Anyhow, is there a decent place on the web for Flash, specifically AS2. I need some fairly basic tutorials for a friend who is completely clueless and I could use some more advanced ones myself. When I say basic I mean how to make buttons work, that sort of thing. Advanced is close to point me in the direction of the AS2 instruction manual but don't because it's scary (and rubbish).
[QUOTE=Jallen;18678472][url]http://www.amazon.co.uk/Introduction-Programming-DirectX-Wordware-Graphics/dp/1556229135/ref=sr_1_13?ie=UTF8&s=books&qid=1259663918&sr=8-13[/url][/QUOTE] Thanks going to get it as a christmas present for myself i guess
[QUOTE=Wickedgenius;18687668]What the... garry is never that nice! Or at least he doesn't appear to be. Anyhow, is there a decent place on the web for Flash, specifically AS2. I need some fairly basic tutorials for a friend who is completely clueless and I could use some more advanced ones myself. When I say basic I mean how to make buttons work, that sort of thing. Advanced is close to point me in the direction of the AS2 instruction manual but don't because it's scary (and rubbish).[/QUOTE] Try some of these: [url]http://www.newgrounds.com/collection/flashtutorials[/url]
[QUOTE=efeX;18686547]i love direct x's windows exclusiveness. its great [editline]03:38PM[/editline] it's a good library too. [editline]03:38PM[/editline] direct x has way more control than opengl does, right databee[/QUOTE] Master of misreading strikes again!
are you making fun of me :saddowns:
[QUOTE=Wickedgenius;18687668]What the... garry is never that nice! Or at least he doesn't appear to be. Anyhow, is there a decent place on the web for Flash, specifically AS2. I need some fairly basic tutorials for a friend who is completely clueless and I could use some more advanced ones myself. When I say basic I mean how to make buttons work, that sort of thing. Advanced is close to point me in the direction of the AS2 instruction manual but don't because it's scary (and rubbish).[/QUOTE] Why are you using AS2. That's outdated by now.
I have developed an incredibly convoluted way of creating images with Ruby: create SVG files with a massive grid of 1x1 boxes (1 box for each pixel) and then render the output in Inkscape! [code]n = 1 for x in 0..width-1 for y in 0..height-1 file.puts "<rect style=\"color:#000000;fill:##{color(x,y,width,height)};fill-opacity:#{opacity(x,y,width,height)};fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate\" id=\"rect#{n}\" width=\"1\" height=\"1\" x=\"#{x}\" y=\"#{y}\" /> " n = n + 1 end end[/code] It's silly, and I could probably do better by finding a decent library to use, but now I want to develop an entire Ruby library for manipulating SVG files. The only tricky part is figuring out how each part of the file format works...
[URL=http://filesmelt.com/][IMG]http://filesmelt.com/downloader/people.png[/IMG][/URL] possible revamp of pixel wars??
Anybody knows if it is possible - and how - to integrate protocol buffers with Visual Studio. I'm messing around with custom build rules, but I don't seem to be making any progress. Ëdit: I managed to figure it out.
Been working on OpenGTA2 fonts rendering, and general fonts stuff. It now uses UTF-8 everywhere as character encoding, so it can support pretty much any character set (and there will be no problems with any language, at least not european ones. For chinese ones there's extra font files which add more symbols to primary set): [media]http://filesmelt.com/downloader/opengta2_fonttest.JPG[/media] Some of those fonts seem to be shifted by few symbols with auto-conversion from GTA2, and I don't know why. This shot is a bit newer, and it uses different graphics set (from russian version of GTA2). It shifts two of the fonts, but all others appear fine. Really weird. [media]http://filesmelt.com/downloader/opengta2_fontset2.JPG[/media] Here's current set of characters in the font, original GTA2 mission font lacks many special characters, so I had to draw those manually, and I'm gonna draw the rest of characters (or when need for them arises), but limited to WGL4 set: [img]http://filesmelt.com/downloader/symbtest.JPG[/img] Sorry for nothing graphically enhancing - that will come later. Right now it's just adding internal features, and it's really easy to do that.
It kinda ruins the purpose of the quick brown fox string, when you replace "the" with "a" :v: [B]Edit:[/B] I was so busy correcting that mistake, it almost made me forget to tell you that it looks great! Can't wait to see what you do with this :buddy:
[QUOTE=Dr Magnusson;18704914]It kinda ruins the purpose of the quick brown fox string, when you replace "the" with "a" :v:[/QUOTE] Oh yeah, well, I just needed something long and all-caps, and including foxes
Taking a break from the build system to write an INI Parser in C. Awww yeah.
What's the best way to divide a std::list into, say, 10 smaller std::lists?
Its better if you are less vague.
[cpp]std::list<int> MyInts; for(int=0; i<10000; i++) MyInts.push_back( i ); std::list<int> SplitInts[8]; // Do something for (int i=0; i<8; i++ ) DoSomethingInAThread( SplitInts[i] ) [/cpp]
Well might as well get it out of the way. Is there a reason you don't just divide the total by 8 and split it by that? Seeing as this has to do with threads. Maybe set each task a priority and then divide them up based on the priorities too.
Yes, because that was an example of the kind of thing I'm trying to achieve, not the actual problem I'm facing. [editline]04:22PM[/editline] I think I should just use a std::vector
[cpp]template<typename T> struct dummy_cmp : public std::binary_function<T, T, bool> { bool operator()(const T&, const T&) const { return false; } }; template<typename iter_t> iter_t operator+(iter_t lhs, const std::size_t rhs) { for(size_t i=0; i<rhs; ++i) ++lhs; return lhs; } template<typename type, typename allocator> void splitList( std::list<type, allocator> &list, std::list<type, allocator> *const listArray, const std::size_t arraySize ) { const std::list<type, allocator>::iterator::difference_type chunk_size = static_cast<std::list<type, allocator>::iterator::difference_type> (std::ceil(static_cast<float>(list.size()) / arraySize)); const std::size_t iCount = arraySize-1; for(size_t i=0; i<iCount;++i) listArray[i].splice( listArray[i].begin(), list, list.begin(), list.begin()+chunks ); listArray[iCount].splice( listArray[iCount].begin(), list, list.begin(), list.end() ); assert(list.empty()); } template<typename type, typename allocator> void mergeList( std::list<type, allocator> &list, std::list<type, allocator> *const listArray, const std::size_t arraySize ) { list.clear(); list.reserve(listArray[0].size()*arraySize); for(size_t i=0; i<arraySize;++i) list.merge(listArray[i], dummy_cmp<type>()); }[/cpp] The best I could come up with. You can do splitList, then do your threads, then mergeList again. If you want to avoid mergeList, then you need to use a list of pointers. Maybe you should make your threaded function accept iterators.
[QUOTE=GreyIOutcast;18693688]Why are you using AS2. That's outdated by now.[/QUOTE] AS3 is awful, we started learning how to use AS2 in June/July using Flash MX and then in mid-september they decided to install CS4 and seeing as how we were already working on our projects we continued with AS2. AS3 also changed a number of things which are fairly easy in AS2. [QUOTE=Robert64;18688009]Try some of these: [url]http://www.newgrounds.com/collection/flashtutorials[/url][/QUOTE] I'll keep those in mind although Newgounds is blocked at school, for now.
[QUOTE=Wickedgenius;18715205]AS3 is awful, we started learning how to use AS2 in June/July using Flash MX and then in mid-september they decided to install CS4 and seeing as how we were already working on our projects we continued with AS2. AS3 also changed a number of things which are fairly easy in AS2.[/QUOTE] That's because AS3 works differently. One of the reasons for the major performance boost. You'll basically have to think of AS3 as a new programming/scripting language.
I really hate people that have used AS2 and when they get to AS3 are like oh god its an awful language. Its a thousand times better, things are just done differently.
Don't be like those people who still use VB6 just because VB.NET is different.
[QUOTE=garry;18714124] I think I should just use a std::vector[/QUOTE] Yeah, there's no good point in using a list unless you [i]know[/i] you will specifically benefit from what it offers over a vector.
[QUOTE=Ortzinator;18716267]Don't be like those people who still use VB6 just because VB.NET is different.[/QUOTE] :tinfoil: Although I don't mind 2005 or 2008. I just hate 2002 and 2003. [editline]09:11PM[/editline] Am I the only one who fucking HATES designing forms with Aero turned on? The controls just look so ...shit. Cyan, grey and green don't work together. [IMG]http://i49.tinypic.com/2h81pqt.png[/IMG]
[QUOTE=CarlBooth;18717766] Am I the only one who fucking HATES designing forms with Aero turned on? The controls just look so ...shit. Cyan, grey and green don't work together. [IMG]http://i49.tinypic.com/2h81pqt.png[/IMG][/QUOTE] Rounded corners is the new shit, all the cool kids are using them
One on the left looks like shit. Classic theme for lyf
Why was I rated dumb? I'd like to learn from my mistakes, please :3
[QUOTE=CarlBooth;18717766]:tinfoil: Although I don't mind 2005 or 2008. I just hate 2002 and 2003. [editline]09:11PM[/editline] Am I the only one who fucking HATES designing forms with Aero turned on? The controls just look so ...shit. Cyan, grey and green don't work together. [IMG]http://i49.tinypic.com/2h81pqt.png[/IMG][/QUOTE] I fucking agree with you, except with GTK+ vs GTK+ 2. I mean, who wants something like this.. [img]http://jp.bizet.free.fr/themes/files/Odyssey/GTK2shot-Odyssey.png[/img] When you can have this.. [img]http://people.redhat.com/otaylor/gtk/raleigh-ss.png[/img]
What is with the love of old interfaces? It looks like shit, move on.
Sorry, you need to Log In to post a reply to this thread.