I've always wondered, how do mandelbrot sets work?
[QUOTE=C:\;34439621]I've always wondered, how do mandelbrot sets work?[/QUOTE]
it's pretty complex
Well here's how I did it. (Please note, I am very much a noob, so don't yell at me for my code)
[code]#include "ConsoleGraphics.h"
#include <iostream>
#include <cmath>
using namespace std;
int MAX_INTS = 500;
void testRecurtion();
int main()
{
testRecurtion();
cin.get();
return EXIT_SUCCESS;
}
void testRecurtion()
{
int Width = 750;
int Height = 150;
int H = 0;
int W = 0;
while (H < Height-1)
{
if(W > Width-1)
{
W = 0;
H++;
}else
{
float XZ = 4; // Zoom Level (Low numbers are more zoomed in)
float YZ = 4;
float XA = 0; // offset (View a different area of the set)
float YA = 0;
// The Scaling for each pixel.
float X0 = W * XZ/Width - (XZ/2) + XA;
float Y0 = H * YZ/Height - (YZ/2) + YA;
//th vars for the loop
float X = 0;
float Y = 0;
float Iteration = 0;
// this really doesnt effeect us (it wouldif we had say, rgb values for colors, but atm might as well leave it at 10/
float MaxIteration = 10;
//this determines weather each point is in the set. Basicly, if it hits 4, before the max ints, it's in, other wise it's not (then it gets colord)
while (pow(X,2) + pow(Y,2) <= 2*2 && Iteration < MaxIteration)
{
float TempX = X*X - Y*Y + X0;
Y = 2 * X * Y + Y0;
X = TempX;
Iteration++;
}
printText(" ",W,H,0,15-floor((Iteration/MaxIteration)*15));
W++;
}
}
}
[/code]
This is in c++ btw.
[QUOTE=COBRAa;34439486]And why is that relevant to this thread?[/QUOTE]
Because that's caused by his 4chan Risk bot.
I'm thinking about a little mobile-page to view FP via FP API to learn more PHP.
Problem being I don't know how to use like 90% of the shit needed for it, but that's kind of the point now isn't it.
The thing is, I don't even bloody understand how I'm supposed to make the authentication work.
If I've understood it correctly, I ask the user for his username and password, md5 the password, action=authenticate with that, and I get some sort of session key or something back from the server which I suppose I then use to communicate with the API from then on?
But how do I get that session info back, and should I just use PHP session to store the key, and then have a log-out button that destroys the session and redirects you to the main page?
I guess what I'm asking here is, can anyone throw me a bone?
Edit: There's nothing else coming back from the connection other than the little JSON that tells you login ok. I am confused by all of this.
[QUOTE=raBBish;34439718]Because that's caused by his 4chan Risk bot.[/QUOTE]
Well, not [i]risk[/i] bot... yet.
[lua]
local getData = {
access_token = access_token,
steamids = "103582791430091926,103582791431790208"
}
local statusCode, response = ISteamOAuth.GetGroupSummaries( getData )
for _, group in pairs(response["groups"]) do
print(group["name"] .. ":")
print("\tUsers: " .. group["users"])
print("\tUsers Ingame: " .. group["usersingame"])
print("\tUsers Inchat: " .. group["usersinclanchat"])
end
[/lua]
[img]http://puu.sh/eWFz[/img]
[QUOTE=nikomo;34440116]But how do I get that session info back, and should I just use PHP session to store the key, and then have a log-out button that destroys the session and redirects you to the main page?[/QUOTE]
yes
[editline]29th January 2012[/editline]
also you might be better served in the web dev forum
I feel like I want to get back into programming (I used to be fairly good with lua scripting in roblox back when I used to play that, but have basically forgotten everything), but don't really know where I should pick it up again.
[QUOTE=sabreman;34439547][img_thumb]http://i.imgur.com/6re6C.png[/img_thumb]
My First steps into actual legit programming.
Edit: Yes, that is an acii Mandelbrot :3[/QUOTE]
Nice. Mandelbrot is an awesome step into programming. Now I feel like making on of these again.
Ok people, some progress here in the UI for the Facepunch WP app:
[thumb]http://dl.dropbox.com/u/25318683/prombanner.jpg[/thumb]
here's a closer look.
[thumb]http://dl.dropbox.com/u/25318683/mockup.jpg[/thumb]
It looks cluttered because of how close each section is next to each other, and the spacing between each isn't accurate. This is the main screen, when browsing/reading threads the huge top bar will be greatly reduced and the icons on the bottom removed for better reading/more space.
Login page:
[thumb]http://dl.dropbox.com/u/25318683/loginpage.jpg[/thumb]
Also, when you click on the titles of each section, it gives you a jumplist, where you can pick the section you're looking for
[thumb]http://dl.dropbox.com/u/25318683/jumplist.jpg[/thumb]
That's all I've got for the moment, gonna keep working on it later.
[QUOTE=ConTron123;34433191]Remember these?
[img]http://i.imgur.com/lynHe.png[/img]
I just made my own :v:[/QUOTE]
needs moar sliders
[QUOTE=bobthe2lol;34439430][img]http://puu.sh/eWa6[/img]
Shit... :v:[/QUOTE]
How are you answering the captchas anyway?
So, we have Android and WP7 Facepunch apps being worked on, but why not iOS? I'd love to see some iOS love since Pocoyo's site isn't working for some strange reason. Cydia or not, I'd buy it.
My progress with tlua..
[img_thumb]http://i.imgur.com/PlJu4.png[/img_thumb]
[QUOTE=Kepler;34441609]So, we have Android and WP7 Facepunch apps being worked on, but why not iOS? I'd love to see some iOS love since Pocoyo's site isn't working for some strange reason. Cydia or not, I'd buy it.[/QUOTE]
I'm working on one. I'm finishing up the model (Data Handler / Loader) as we speak. The UI goodness.
[editline]28th January 2012[/editline]
It will be on the app store for free.
ETA: 1 to 1.5 weeks until I publish it. I can't get much work done when I have school.
[QUOTE=i300;34441637]I'm working on one. I'm finishing up the model (Data Handler / Loader) as we speak. The UI goodness.[/QUOTE]
Cool beans. Any ETA? This has been annoying me for the past few days:
[t]http://i.imgur.com/6ZQit.png[/t]
[QUOTE=i300;34441637]
It will be on the app store for free.[/QUOTE]
Cool Refried Beans.
Here's a nice silk-esque iconset I found a few days ago, it's also nicely available in both 16px and 32px:
[IMG]http://www.fatcow.com/fatcow-icons/fatcow-icons-2.jpg[/IMG]
(that's not all of them, the whole set is 2,400 icons)
[url]http://www.fatcow.com/free-icons[/url]
[QUOTE=barttool;34441022]Ok people, some progress here in the UI for the Facepunch WP app:
[thumb]http://dl.dropbox.com/u/25318683/prombanner.jpg[/thumb]
here's a closer look.
[thumb]http://dl.dropbox.com/u/25318683/mockup.jpg[/thumb]
It looks cluttered because of how close each section is next to each other, and the spacing between each isn't accurate. This is the main screen, when browsing/reading threads the huge top bar will be greatly reduced and the icons on the bottom removed for better reading/more space.
Login page:
[thumb]http://dl.dropbox.com/u/25318683/loginpage.jpg[/thumb]
Also, when you click on the titles of each section, it gives you a jumplist, where you can pick the section you're looking for
[thumb]http://dl.dropbox.com/u/25318683/jumplist.jpg[/thumb]
That's all I've got for the moment, gonna keep working on it later.[/QUOTE]
Holy fuck.
I'll get started on it right away. Do you have the exact color code for the red, and the Facepunch logo you're using for me?
[QUOTE=horsedrowner;34442941]Holy fuck.
I'll get started on it right away. Do you have the exact color code for the red, and the Facepunch logo you're using for me?[/QUOTE]
add me on steam, it's gonna be a long night :v:
[editline]29th January 2012[/editline]
[QUOTE=Overv;34437496]A nice replacement of the silk icons for solid color style themes? Most excellent.[/QUOTE]
Oh this is gonna be very useful for the WP app.
[QUOTE=horsedrowner;34442941]Do you have the exact color code for the red, and the Facepunch logo you're using for me?[/QUOTE]
mspaint my friend
[QUOTE=horsedrowner;34442941]Do you have the exact color code for the red (...)[/QUOTE]
hex #C01F25
rgb 192, 31, 37
[QUOTE=Naarkie;34441338]needs moar sliders[/QUOTE]
You got it.
[img]http://i.imgur.com/XFQhb.png[/img]
..:v:
[QUOTE=barttool;34442960]add me on steam, it's gonna be a long night :v:
[editline]29th January 2012[/editline]
Oh this is gonna be very useful for the WP app.[/QUOTE]
If you have Expression Blend, PLEASE do the designing for me. It's driving me crazy.
I finally get it to work in the preview, but then I try it on the emulator and it's all wrong again.
[QUOTE=dije;34444031]Please: [url]http://micropoll.com/t/KE0bSZIuzO[/url][/QUOTE]
Why not vote with ratings?
had to implement some fancy quadtrees and a even fancier tree search algorithm to make this
as efficient as it is.
[video=youtube;M-UXlEbIeOU]http://www.youtube.com/watch?v=M-UXlEbIeOU&feature=youtu.be[/video]
a standard world is populated by around 50k objects and a few 1000 NPCs if I want to and it works
very smoothly
and as you can see a cute little bug, but that's already fixed
[QUOTE=Nighley;34444844]had to implement some fancy quadtrees and a even fancier tree search algorithm to make this
as efficient as it is.
[video=youtube;M-UXlEbIeOU]http://www.youtube.com/watch?v=M-UXlEbIeOU&feature=youtu.be[/video]
a standard world is populated by around 50k objects and a few 1000 NPCs if I want to and it works
very smoothly
and as you can see a cute little bug, but that's already fixed[/QUOTE]
Love the art style. Just tone down the grass a bit.
[QUOTE=nikomo;34440116]I'm thinking about a little mobile-page to view FP via FP API to learn more PHP.
Problem being I don't know how to use like 90% of the shit needed for it, but that's kind of the point now isn't it.
The thing is, I don't even bloody understand how I'm supposed to make the authentication work.
If I've understood it correctly, I ask the user for his username and password, md5 the password, action=authenticate with that, and I get some sort of session key or something back from the server which I suppose I then use to communicate with the API from then on?
But how do I get that session info back, and should I just use PHP session to store the key, and then have a log-out button that destroys the session and redirects you to the main page?
I guess what I'm asking here is, can anyone throw me a bone?
Edit: There's nothing else coming back from the connection other than the little JSON that tells you login ok. I am confused by all of this.[/QUOTE]
Once you get login OK, you can make other action requests like getforums, but keep sending username and password. Authenticate just opens a session with Facepunch.
[editline]29th January 2012[/editline]
[QUOTE=Kepler;34441668]Cool beans. Any ETA? This has been annoying me for the past few days:
[t]http://i.imgur.com/6ZQit.png[/t][/QUOTE]
That used FPAPI, but the new ScrAPI is [i]very[/i] similar. You can switch from the old API to the new one with about 20-30 minutes work max.
[QUOTE=Darwin226;34444916]Love the art style. Just tone down the grass a bit.[/QUOTE]
thx and yes the grass is a HUGE problem, as I had darker grass but then the trees looked like they are just tree stumps ;p
as I said, I need a real artist to make these things work better together, I mean the red flowers are ugh... ;p or maybe i just teach myself, there must be some kind of "pseudo"art tutorials out there.
EDIT:
but it actually looks brighter in the Youtube video than it actually is, strange...
[img]http://www.peniscorp.com/stuff/Overv-Chat-2012-01-29_16.03.43.png[/img]
It's on GitHub now (also I suck at using git :v:)
Sorry, you need to Log In to post a reply to this thread.