• What are you working on? V7
    2,001 replies, posted
[QUOTE=majorlazer;20075810][IMG]http://i49.tinypic.com/2n19lw4.png[/IMG][/QUOTE] Maybe it's just me (maybe I'm too stupid to get this)... but I don't get it oO I don't even know what that's supposed to be oO
[QUOTE=s0ul0r;20082382]Maybe it's just me (maybe I'm too stupid to get this)... but I don't get it oO I don't even know what that's supposed to be oO[/QUOTE] Shit on a hook? [editline]12:26PM[/editline] Hooked on shit? :buddy:
[QUOTE=s0ul0r;20082382]Maybe it's just me (maybe I'm too stupid to get this)... but I don't get it oO I don't even know what that's supposed to be oO[/QUOTE] Brown nosing..
[QUOTE=Pj The Dj;20082697]Brown nosing..[/QUOTE] Mine was funnier :saddowns:
It's a nose.
[QUOTE=s0ul0r;20082382]Maybe it's just me (maybe I'm too stupid to get this)... but I don't get it oO I don't even know what that's supposed to be oO[/QUOTE] It's a nose that got shit on it while licking Garry's ass.
[QUOTE=noctune9;20080513]Maybe you could do a Dijkstra search to the path, and use the G value as an indicator of how long time it takes to reach that certain point on the path. For example, let's say we have a object traveling along a path at 1 G per minute. That object has probably already traversed some of the path, so it has a offset. We would then have to find a node on the path where A.G*A.Speed < B.G*B.Speed + B.Offset.[/QUOTE] Yea. Maybe you could have a cross between Dijkstra's and A* by adding a bit of a heuristic, but half the heuristic value so it behaves more like Dijkstra's. (A partially targeted Dijkstra's.) The nice thing about roads are that the junctions usually have less than the 4 (Or 8) possible paths that you have with a grid.
[img]http://img708.imageshack.us/img708/8996/pattern.png[/img] I have no idea what's going on in this picture but it's generated by the formula d = x*x + y*y - x - y And d is wrapped between [0, 255]
[QUOTE=ThePuska;20083503][img]http://img708.imageshack.us/img708/8996/pattern.png[/img] I have no idea what's going on in this picture but it's generated by the formula d = x*x + y*y - x - y And d is wrapped between [0, 255][/QUOTE] [img]http://i49.tinypic.com/fas8ht.gif[/img][img]http://i49.tinypic.com/fas8ht.gif[/img][img]http://i49.tinypic.com/fas8ht.gif[/img][img]http://i49.tinypic.com/fas8ht.gif[/img]
auughg
This thread is now epileptic free.
Trippy.
[QUOTE=AteBitLord;20081932]Works better but when I type Stay quiet it shows everything then at the end is the fucking retard thing.[/QUOTE] You forgot to get input after asking the second question.
Currently working on a GMod module allowing people to mount L4D1/2 content. Idea sounds easy but realisation is hard. There is no default-way of mounting the files L4D uses (VPK-Containers) in the Orange-Box engine. Therefore I linked the FileSystem of Source with Nemesis HLLib. Today, the first success: [img_thumb]http://www.daggeringcats.com/wordpress/wp-content/uploads/2010/02/francis.png[/img_thumb]
[QUOTE=AteBitLord;20081932]Works better but when I type Stay quiet it shows everything then at the end is the fucking retard thing.[/QUOTE] You never requested user input again. You need to do the getline again before you check whether it's walk or don't walk, otherwise it'd still be Stay quiet.
Yay! I got things to animate from a tilemap in SFML using my own system. Tilemaps are so much better than seperate files, why did I never use them before?
5 minute 2nd order mandelbrot (MSVC & SDL): [img]http://img519.imageshack.us/img519/5858/mandelbrotday11.png[/img] Another 5 minutes to expand (a + bi)^4 by hand and hardcode it into a quad() function for 4th order mandelbrot: [img]http://img11.imageshack.us/img11/922/mandelbrotday12.png[/img] You could just use std::complex and std::pow() with any arbitrary power but that will be much slower because for arbitrary powers it needs to convert the complex # to polar coordinates and back. [editline]03:02PM[/editline] (Referring to coding time, render time was about 1 sec for both) [editline]03:19PM[/editline] Heres the source if anyone wants a little base to play with: [cpp] #include <iostream> #include <SDL.h> struct complex_t { float a, b; complex_t(float a, float b): a(a), b(b) {} complex_t(): a(0.0f), b(0.0f) {} complex_t pow2() const { return complex_t(a * a - b * b, 2.0f * a * b); } complex_t pow4() const { // w00t binomial expansion, coefs are 1 4 6 4 1 // and we end up with a = a^4 + b^4 - 6(a^2)(b^2), b = 4(a^3)(b) - 4(a)(b^3) float a2 = a * a; float b2 = b * b; float a3 = a2 * a; float b3 = b2 * b; float a4 = a3 * a; float b4 = b3 * b; return complex_t(a4 + b4 - 6.0f * a2 * b2, 4.0f * (a3 * b - a * b3)); } complex_t pow5() const { // more expansion, too long to explain float a2 = a * a; float b2 = b * b; float a3 = a2 * a; float b3 = b2 * b; float a4 = a3 * a; float b4 = b3 * b; float a5 = a4 * a; float b5 = b4 * b; return complex_t(a5 - 10.0f * a3 * b2 + 5.0f * a * b4, 5.0f * a4 * b - 10.0f * a2 * b3 + b5); } complex_t operator +(const complex_t &rhs) const { return complex_t(a + rhs.a, b + rhs.b); } float sqlen() const { return a * a + b * b; } }; bool isInSet(complex_t p) { // z_0 = 0 complex_t z(0.0f, 0.0f); for (int i = 0; i < 100; ++i) { // z_n = z_(n-1)^n + p z = z.pow5() + p; if (z.sqlen() > 4.0f) return false; } return true; } int main(int argc, char *argv[]) { SDL_Init(SDL_INIT_EVERYTHING); SDL_Surface *screen = SDL_SetVideoMode(1024, 768, 32, SDL_SWSURFACE); SDL_WM_SetCaption("mandelbrot", NULL); uint32_t *pixels = (uint32_t*)screen->pixels; bool running = true; while (running) { SDL_Event evt; while (SDL_PollEvent(&evt)) { switch (evt.type) { case SDL_QUIT: running = false; break; } } for (int y = 0; y < screen->h; ++y) { for (int x = 0; x < screen->w; ++x) { uint32_t *pixel = pixels + y * screen->w + x; // map x to [-2.0f, 1.0f] // map y to [1.0f, -1.0f] complex_t p(x / (float)screen->w * 3.0f - 2.0f, (screen->h - y) / (float)screen->h * 2.0f - 1.0f); if (isInSet(p)) *pixel = SDL_MapRGB(screen->format, 0, 0, 0); else *pixel = SDL_MapRGB(screen->format, 255, 255, 255); } } SDL_UpdateRect(screen, 0, 0, 0, 0); } SDL_Quit(); return 0; } [/cpp]
So nobody has ever tried programming with the UDK here I assume?
Updated source is a little cleaner and has pow5()
[QUOTE=CommanderPT;20086457]So nobody has ever tried programming with the UDK here I assume?[/QUOTE] I tried. UnrealScript gave me a headache.
[QUOTE=CommanderPT;20086457]So nobody has ever tried programming with the UDK here I assume?[/QUOTE] I haven't touched Unrealscript since UT2k4. Have you looked into Kismet? What are you trying to do?
[QUOTE=ThePuska;20083503][img_thumb]http://img708.imageshack.us/img708/8996/pattern.png[/img_thumb] I have no idea what's going on in this picture but it's generated by the formula d = x*x + y*y - x - y And d is wrapped between [0, 255][/QUOTE] I had to try this myself. [IMG]http://i46.tinypic.com/9pnhaw.png[/IMG] abs(255*sin(x/250*PI))-50*sin(y/250*PI) I had a better one, but I lost the formula. :frown: You can try it yourself: [url=http://dl.dropbox.com/u/1106779/eyecancer.jnlp]Webstart[/url] or [url=http://dl.dropbox.com/u/1106779/DisplayFormula.jar]JAR[/url] It's extremely slow though because it's evaluating the script for every single pixel.
[QUOTE=AteBitLord;20082674]Shit on a hook? [editline]12:26PM[/editline] Hooked on shit? :buddy:[/QUOTE] Well, maybe because it's drawn more like honey or sirup...
[QUOTE=mahalis;20086928]I haven't touched Unrealscript since UT2k4. Have you looked into Kismet? What are you trying to do?[/QUOTE] Oh, I have yet to do anything, I do boxes in VB that change colors. But I'm just thinking ahead. Kismet looks pretty neat but before I jump in myself, is Unrealscript simmilar to C++ or something or is it something that you have to learn from scratch. Because Unrealscript isn't anything that schools will be teaching.. or so it seems. (Atleast not mine) Seems like you have alteast tried it, I just want your opinion on it. Trying to make up my mind if Unreal 3 is worth going for in the future.
Added some zooming functionality: (mouse click + drag = zoom rectangle) [img]http://img697.imageshack.us/img697/4751/mandelbrotday13.png[/img] [img]http://img11.imageshack.us/img11/2600/mandelbrotday14.png[/img] [img]http://img24.imageshack.us/img24/8845/mandelbrotday15.png[/img] [editline]04:28PM[/editline] I need to fix the aspect ratio so you can't fuck it up, otherwise it gets ugly :v:
You need to add color bands, cause it's cooler with them.
Thanks for the suggestion but I don't really care about colors right now.
[QUOTE=arienh4;20085463]You never requested user input again. You need to do the getline again before you check whether it's walk or don't walk, otherwise it'd still be Stay quiet.[/QUOTE] By George, I think I am in love with you! :biggrin:
Wrote a regular polygon generator in Java (for AP Computer Science ) and it creates some interesting designs when you connect all of the points. [img]http://filesmelt.com/dl/regPoly.png[/img]
[QUOTE=arienh4;20086629]I tried. UnrealScript gave me a headache.[/QUOTE] Can't you use c++ with the newest update
Sorry, you need to Log In to post a reply to this thread.