Random Fractal Avatar

The place for anything at all...
Post Reply

Vilkacis...

why? just why??
2
20%
that was an immense waste of time...
0
No votes
2 - Doesn’t really care either way
1
10%
3 - They’re pretty cool I guess, but they aren’t an obsession
1
10%
4 - I like werewolves a lot but wouldn’t want to become one
4
40%
Report the incident to your pack’s leaders and let them decide what to do
2
20%
 
Total votes: 10

User avatar
Vilkacis
Legendary
Legendary
Posts: 1974
Joined: Sun Mar 27, 2005 10:08 pm
Location: Washington

Random Fractal Avatar

Post by Vilkacis »

Okay, because some of you may be wondering about the change to my avatar, it's probably just temporary. You see, I saw what Lupin did with his avatar (that is, he randomized it), and being the curious person I am, I decided to try to emulate the effect. Also, it occurred to me, why bother with a limited number of images when I can have an infinite number? So, thus, my random fractal avatar was born:

Image

Not quite as cool as I imagined it, but a lot of fun to write nonetheless.
:lol:

-- Vilkacis
Figarou
Legendary
Legendary
Posts: 13085
Joined: Sun Nov 28, 2004 5:27 am
Custom Title: Executive Producer (Red Victoria)
Gender: Male
Location: Tejas

Post by Figarou »

I think its cool to have random pics as the avatar. I've seen it done before at other forums. I like to know how its done so I can do the same. :D
Figarou
Legendary
Legendary
Posts: 13085
Joined: Sun Nov 28, 2004 5:27 am
Custom Title: Executive Producer (Red Victoria)
Gender: Male
Location: Tejas

Post by Figarou »

hehe...sneaky little devil I am!!

Added one more option to the poll.

:D
User avatar
Lupin
Legendary
Legendary
Posts: 6129
Joined: Sun Jun 19, 2005 11:26 pm
Custom Title: Ninja BOFH
Gender: Male
Location: 29°30.727'N 98°35.949'W
Contact:

Post by Lupin »

Mine, at least, is a real simple php script that selects a random image from the directory it's in.
Figarou
Legendary
Legendary
Posts: 13085
Joined: Sun Nov 28, 2004 5:27 am
Custom Title: Executive Producer (Red Victoria)
Gender: Male
Location: Tejas

Post by Figarou »

Lupin wrote:Mine, at least, is a real simple php script that selects a random image from the directory it's in.

interesting. Did you write this yourself?
User avatar
Lupin
Legendary
Legendary
Posts: 6129
Joined: Sun Jun 19, 2005 11:26 pm
Custom Title: Ninja BOFH
Gender: Male
Location: 29°30.727'N 98°35.949'W
Contact:

Post by Lupin »

Figarou wrote:
Lupin wrote:Mine, at least, is a real simple php script that selects a random image from the directory it's in.

interesting. Did you write this yourself?
It's based on someone elses script, but I ended up ripping most of the old script out and replacing it with my own code.
User avatar
Aki
Legendary
Legendary
Posts: 2595
Joined: Fri Feb 11, 2005 10:06 pm
Custom Title: Wolfblood
Gender: Male
Location: Massachusetts

Post by Aki »

As cool as that tis, i liked the old one better. :P
Image
User avatar
Vilkacis
Legendary
Legendary
Posts: 1974
Joined: Sun Mar 27, 2005 10:08 pm
Location: Washington

Post by Vilkacis »

Aki wrote:As cool as that tis, i liked the old one better. :P
Heh, I'll be back to the old one before long, don't you worry.

I'm just showing this off for a little while.

-- Vilkacis
User avatar
Lupin
Legendary
Legendary
Posts: 6129
Joined: Sun Jun 19, 2005 11:26 pm
Custom Title: Ninja BOFH
Gender: Male
Location: 29°30.727'N 98°35.949'W
Contact:

Post by Lupin »

So how are you generating the fractal?
User avatar
Vilkacis
Legendary
Legendary
Posts: 1974
Joined: Sun Mar 27, 2005 10:08 pm
Location: Washington

Post by Vilkacis »

Lupin wrote:So how are you generating the fractal?
I'm working on commenting the code right now, then I'll post it :D

It's a Markus-Lyapunov fractal.

-- Vilkacis
User avatar
Vilkacis
Legendary
Legendary
Posts: 1974
Joined: Sun Mar 27, 2005 10:08 pm
Location: Washington

Post by Vilkacis »

Okay, here we go:

The source code can be found here.

I used this java code as my primary reference as far as fractal generation goes.

In order to get it to work on phpBB, you'll have to add something like this to your .htaccess file on your server:

Code: Select all

Redirect /fractal/randomav.jpg http://www.thevilkacis.net/fractal/randomav.php
EDIT: (Note: that's supposed to be a single line)

That way you can link to it as if it were an image instead of a php file (phpBB won't let you link to a php file like that for your avatar).

-- Vilkacis
User avatar
Vilkacis
Legendary
Legendary
Posts: 1974
Joined: Sun Mar 27, 2005 10:08 pm
Location: Washington

Post by Vilkacis »

I went back to my old avatar
:lol:

The fractal was neat, but it doesn't fit well as an avatar here. Anyway, you can still see it at the top of this thread.

-- Vilkacis
Figarou
Legendary
Legendary
Posts: 13085
Joined: Sun Nov 28, 2004 5:27 am
Custom Title: Executive Producer (Red Victoria)
Gender: Male
Location: Tejas

Post by Figarou »

I'm not sure what I did, but I tried to post the code/script into my website. I even got help from Vilkacis. It is cool to have different pics show up. But its not worth losing your website if you place the code in wrong.

I still think its cool though. :D
User avatar
Lupin
Legendary
Legendary
Posts: 6129
Joined: Sun Jun 19, 2005 11:26 pm
Custom Title: Ninja BOFH
Gender: Male
Location: 29°30.727'N 98°35.949'W
Contact:

Post by Lupin »

Vilkacis wrote: That way you can link to it as if it were an image instead of a php file (phpBB won't let you link to a php file like that for your avatar).
It won't? I was wondering about that. I just used the redirect because I was too lazy to edit my profile for the new image.
User avatar
WolvenOne
Legendary
Legendary
Posts: 879
Joined: Wed Nov 24, 2004 5:36 pm
Custom Title: The Right-Wing WarMongering Artsy-Fartsy Woof
Location: Rigby Idaho

Post by WolvenOne »

kinda indifferent to it myself but, hey, whatever floats your boat.
User avatar
Lupin
Legendary
Legendary
Posts: 6129
Joined: Sun Jun 19, 2005 11:26 pm
Custom Title: Ninja BOFH
Gender: Male
Location: 29°30.727'N 98°35.949'W
Contact:

Post by Lupin »

Figarou wrote:I'm not sure what I did, but I tried to post the code/script into my website. I even got help from Vilkacis. It is cool to have different pics show up. But its not worth losing your website if you place the code in wrong.

I still think its cool though. :D
Yeah, that's why I stuck all of it in it's own directory. I have a bad habit of sticking large images in ~lupin/ so I figured that accidently using one of those would be a bad idea.
User avatar
Vilkacis
Legendary
Legendary
Posts: 1974
Joined: Sun Mar 27, 2005 10:08 pm
Location: Washington

Post by Vilkacis »

Lupin wrote:It won't? I was wondering about that. I just used the redirect because I was too lazy to edit my profile for the new image.
Nope. If you try to link to a php file for your avatar, it will display a blank "error" message and reject your change. Furthermore, if you try to link to it with the tags, it won't recognize it:

Image

-- Vilkacis
User avatar
Vilkacis
Legendary
Legendary
Posts: 1974
Joined: Sun Mar 27, 2005 10:08 pm
Location: Washington

Post by Vilkacis »

Figarou wrote:I'm not sure what I did, but I tried to post the code/script into my website. I even got help from Vilkacis.
To clarify, we got the script working correctly, but we were having trouble getting the server to redirect correctly with the .htaccess file.

-- Vilkacis
User avatar
outwarddoodles
Moderator
Moderator
Posts: 2670
Joined: Sat Apr 02, 2005 11:49 am
Custom Title: I'm here! What more do you want?
Gender: Female
Location: Ohio
Contact:

Post by outwarddoodles »

I was seeing those and kept wondering 'What the heck?', personally I might want to try it, put a couple pictures of demons llamas and maybe one of Kuzco, thats really cewl.
"We are not always what we seem, and hardly ever what we dream."
User avatar
Lupin
Legendary
Legendary
Posts: 6129
Joined: Sun Jun 19, 2005 11:26 pm
Custom Title: Ninja BOFH
Gender: Male
Location: 29°30.727'N 98°35.949'W
Contact:

Post by Lupin »

Vilkacis wrote:
Nope. If you try to link to a php file for your avatar, it will display a blank "error" message and reject your change. Furthermore, if you try to link to it with the tags, it won't recognize it:

Image
I don't know why I didn't think of this earlier, but there's a real easy workaround. Just apppend a slash and a 'legal' filename to the end of the url.

Fo example. my avatar URL is now http://nospam.kicks-a**.net/~lupin/avat ... p/fake.jpg

And
Image

(Note: this only works on webservers running apache, which is most of them anyway.)
User avatar
Vilkacis
Legendary
Legendary
Posts: 1974
Joined: Sun Mar 27, 2005 10:08 pm
Location: Washington

Post by Vilkacis »

Never thought of that :wink:

Much easier than messing around with .htaccess files and redirects.

-- Vilkacis
Post Reply