 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Hello Everyone,
Just in time for the holidays! It's a random snowflake generator. Far
from being an accurate simulation, it does produce better-looking
snowflakes than most programs available today(until I find a better
one). You can save a 700x700 screenshot to file.
The program(with instructions) can be found here:
http://www.caltel.com/~abenge/snowflake1.zip
And a screen shot can be found here:
http://www.caltel.com/~abenge/snowflake.jpg
C++ source is also included. Enjoy :)
Sam
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Samuel Benge" <stb### [at] THIShotmail com> wrote in message
news:473261c7$1@news.povray.org...
> Hello Everyone,
>
> Just in time for the holidays! It's a random snowflake generator. Far from
> being an accurate simulation, it does produce better-looking snowflakes
> than most programs available today(until I find a better one). You can
> save a 700x700 screenshot to file.
>
> The program(with instructions) can be found here:
> http://www.caltel.com/~abenge/snowflake1.zip
>
> And a screen shot can be found here:
> http://www.caltel.com/~abenge/snowflake.jpg
>
> C++ source is also included. Enjoy :)
>
> Sam
I like it! It would make a cool screensaver. Any Idea how to make it into a
screensaver? (Windows XP)
Steve Shelby
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Steve Shelby wrote:
> "Samuel Benge" <stb### [at] THIShotmail com> wrote in message
> news:473261c7$1@news.povray.org...
>> Hello Everyone,
>>
>> Just in time for the holidays! It's a random snowflake generator. Far from
>> being an accurate simulation, it does produce better-looking snowflakes
>> than most programs available today(until I find a better one). You can
>> save a 700x700 screenshot to file.
>>
>> The program(with instructions) can be found here:
>> http://www.caltel.com/~abenge/snowflake1.zip
>>
>> And a screen shot can be found here:
>> http://www.caltel.com/~abenge/snowflake.jpg
>>
>> C++ source is also included. Enjoy :)
>>
>> Sam
>
> I like it! It would make a cool screensaver. Any Idea how to make it into a
> screensaver? (Windows XP)
> Steve Shelby
>
>
Make it shut down when it receives any mouse movement or keyboard input,
and make it full screen instead of windowed. Screensavers are just .exe,
renamed.
I tried using it as a screensaver, as is. The windowed mode kept it from
starting full screen, which was a bigger down side then having to hit
escape to turn it off.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Wed, 07 Nov 2007 17:09:24 -0800, Samuel Benge
<stb### [at] THIShotmail com> wrote:
>Hello Everyone,
>
>Just in time for the holidays! It's a random snowflake generator. Far
>from being an accurate simulation, it does produce better-looking
>snowflakes than most programs available today(until I find a better
>one). You can save a 700x700 screenshot to file.
>
>The program(with instructions) can be found here:
>http://www.caltel.com/~abenge/snowflake1.zip
>
>And a screen shot can be found here:
>http://www.caltel.com/~abenge/snowflake.jpg
>
>C++ source is also included. Enjoy :)
>
>Sam
I really like this program and just in time for Christmas. I do have
one problem though. On my PC it runs too quickly, ( I never thought
that I would say that about any program)
I do not have access to any program that I can use to try amd modify
the source code and certainly nothing to compile it with.
Is it possible for you or someone who knows what they are doing to
make it run much more slowly. Perhaps a key board shortcut to step
through one iteration at a time ?
John
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Sabrina Kilian" <"ykgp at vtSPAM.edu"> wrote in message
news:47333078$1@news.povray.org...
> Make it shut down when it receives any mouse movement or keyboard input,
> and make it full screen instead of windowed. Screensavers are just .exe,
> renamed.
>
> I tried using it as a screensaver, as is. The windowed mode kept it from
> starting full screen, which was a bigger down side then having to hit
> escape to turn it off.
Thanks, Sabrina, for the info.
I copied the files into windows/system32 and renamed snowflake1.exe to
snowflake1.scr, then it was on the dropdown list for selecting screensaver
in the desktop properties setup. I selected it for the screensaver, and it
works!
Steve Shelby
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Sabrina Kilian wrote:
> Make it shut down when it receives any mouse movement or keyboard input,
> and make it full screen instead of windowed. Screensavers are just .exe,
> renamed.
Hmm, it shouldn't be much trouble to make such a version.
> I tried using it as a screensaver, as is. The windowed mode kept it from
> starting full screen, which was a bigger down side then having to hit
> escape to turn it off.
Once again, that shouldn't be too hard. I might as well have it display
colors and refresh the screen once in awhile, too. 1024x768 is pretty
much standard these days, right?
Sam
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Steve Shelby wrote:
> Thanks, Sabrina, for the info.
> I copied the files into windows/system32 and renamed snowflake1.exe to
> snowflake1.scr, then it was on the dropdown list for selecting screensaver
> in the desktop properties setup. I selected it for the screensaver, and it
> works!
> Steve Shelby
Wow, I didn't know it would be so easy! I might wait till I get Windows
XP to release the next version (should be a day or two).
Sam
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
John wrote:
> I really like this program and just in time for Christmas. I do have
> one problem though. On my PC it runs too quickly, ( I never thought
> that I would say that about any program)
>
> I do not have access to any program that I can use to try amd modify
> the source code and certainly nothing to compile it with.
>
> Is it possible for you or someone who knows what they are doing to
> make it run much more slowly. Perhaps a key board shortcut to step
> through one iteration at a time ?
My brother *was* right! I does run too quickly. He also suggested I make
a way for it to step through each frame. I figured using the left mouse
button to pause it would be sufficient, but I guess not. What's your
processor speed?
I hope to release another version soon. Glad you liked this one!
Sam
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Thu, 08 Nov 2007 12:43:27 -0800, Samuel Benge
<stb### [at] THIShotmail com> wrote:
>John wrote:
>> I really like this program and just in time for Christmas. I do have
>> one problem though. On my PC it runs too quickly, ( I never thought
>> that I would say that about any program)
>>
>> I do not have access to any program that I can use to try amd modify
>> the source code and certainly nothing to compile it with.
>>
>> Is it possible for you or someone who knows what they are doing to
>> make it run much more slowly. Perhaps a key board shortcut to step
>> through one iteration at a time ?
>
>My brother *was* right! I does run too quickly. He also suggested I make
>a way for it to step through each frame. I figured using the left mouse
>button to pause it would be sufficient, but I guess not. What's your
>processor speed?
>
>I hope to release another version soon. Glad you liked this one!
>
>Sam
3000Mhz Athlon.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Samuel Benge" <stb### [at] THIShotmail com> wrote in message
news:47337502$1@news.povray.org...
>
> I hope to release another version soon. Glad you liked this one!
>
> Sam
If you're open to suggestions, I have one. After it has been running for a
while, it fills in so much space that it just becomes a big circle and
doesn't look like a snowflake any more. How about limiting the number of
changes it can make, so that when it reaches the point where it is starting
to look like something other than a snowflake, it goes back to zero and
starts over with a new one.
Steve Shelby
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Steve Shelby schrieb:
> "Samuel Benge" <stb### [at] THIShotmail com> wrote in message
> news:47337502$1@news.povray.org...
>> I hope to release another version soon. Glad you liked this one!
>>
>> Sam
>
> If you're open to suggestions, I have one. After it has been running for a
> while, it fills in so much space that it just becomes a big circle and
> doesn't look like a snowflake any more. How about limiting the number of
> changes it can make, so that when it reaches the point where it is starting
> to look like something other than a snowflake, it goes back to zero and
> starts over with a new one.
> Steve Shelby
>
>
IMHO it would be enough to simulate a "space"-push every once in a while
, could be randomized between 5 and 20 seconds.
This would be looking great and really make a nice screensaver.
Arne
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Steve Shelby wrote:
> If you're open to suggestions, I have one. After it has been running for a
> while, it fills in so much space that it just becomes a big circle and
> doesn't look like a snowflake any more. How about limiting the number of
> changes it can make, so that when it reaches the point where it is starting
> to look like something other than a snowflake, it goes back to zero and
> starts over with a new one.
> Steve Shelby
Too late. I'm already developing a version which uses fractal recursion
to form the branches of the flake. It's a near-complete rewrite, but
it's almost finished now.
Sam
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
John wrote:
> Samuel Benge wrote:
>> What's your
>> processor speed?
>
> 3000Mhz Athlon.
>
No wonder! I've got a measly 1.6ghz pentium over here.... but will soon
have a new system with a quad core. That will be a happy day :)
Sam
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Arne Kleinophorst wrote:
> IMHO it would be enough to simulate a "space"-push every once in a while
> , could be randomized between 5 and 20 seconds.
>
> This would be looking great and really make a nice screensaver.
The new version might not look too great as a screensaver, since it
draws the flake all at once. I'll see what I can do.
Sam
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Are there any prerequisites that need to be installed? Tried running it
under WINE and it just hung, and in W2K under VMware it seems to crash
out with no error message. I actually get further under WINE (I get the
initial splash screen).
I figure I must be missing a required dependency.
Jim
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Samuel Benge nous apporta ses lumieres en ce 2007/11/08 15:36:
> Sabrina Kilian wrote:
>> Make it shut down when it receives any mouse movement or keyboard input,
>> and make it full screen instead of windowed. Screensavers are just .exe,
>> renamed.
>
> Hmm, it shouldn't be much trouble to make such a version.
>
>> I tried using it as a screensaver, as is. The windowed mode kept it from
>> starting full screen, which was a bigger down side then having to hit
>> escape to turn it off.
>
> Once again, that shouldn't be too hard. I might as well have it display
> colors and refresh the screen once in awhile, too. 1024x768 is pretty
> much standard these days, right?
>
> Sam
1024x768 and UP!
It's been my minimum resolution since 1995... At the time, I was using 256
colours, but quickly upgraded to 16 (high colour), then 32 bits (true colour).
--
Alain
-------------------------------------------------
WARNING: The consumption of alcohol may create the illusion that you are
tougher, smarter, faster and better looking than most people.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Jim Henderson wrote:
> Are there any prerequisites that need to be installed? Tried running it
> under WINE and it just hung, and in W2K under VMware it seems to crash
> out with no error message. I actually get further under WINE (I get the
> initial splash screen).
>
> I figure I must be missing a required dependency.
>
> Jim
I have no idea how to help you. You might need to get Dev-C++ and
recompiled it for your machine. What version of DirectX do you have?
Sam
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Samuel Benge wrote:
> Jim Henderson wrote:
>> Are there any prerequisites that need to be installed? Tried running
>> it under WINE and it just hung, and in W2K under VMware it seems to
>> crash out with no error message. I actually get further under WINE (I
>> get the initial splash screen).
>>
>> I figure I must be missing a required dependency.
>>
>> Jim
>
> I have no idea how to help you. You might need to get Dev-C++ and
> recompiled it for your machine. What version of DirectX do you have?
>
> Sam
I didn't need Dev-C++ to run it on windows, so I'll guess that isn't the
problem.
A quick check of the call stack for snowflake1.exe gave me:
ntkrnlpa.exe
ntkrnlpa.exe!ProbeForRead
ntkrnlpa.exe!KeReleaseInStackQueuedSpinLockFromDpcLevel
ntdll.dll!KiFastSystemCallRet
kernel32.dll!Sleep
hge.dll
The hge.dll is included in the zip, but it could be that WINE isn't
finding it. You might check if the Haaf's Game Engine can run under
WINE. The other files I think are ones that WINE should handle.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Sabrina Kilian escribió:
> Samuel Benge wrote:
>> I have no idea how to help you. You might need to get Dev-C++ and
>> recompiled it for your machine. What version of DirectX do you have?
>>
>> Sam
> I didn't need Dev-C++ to run it on windows, so I'll guess that isn't the
> problem.
You need to get Dev-C++ to *recompile it from source* for your machine,
if you were going to use the suggestion of recompiling.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Fri, 09 Nov 2007 15:26:59 -0800, Samuel Benge wrote:
> Jim Henderson wrote:
>> Are there any prerequisites that need to be installed? Tried running
>> it under WINE and it just hung, and in W2K under VMware it seems to
>> crash out with no error message. I actually get further under WINE (I
>> get the initial splash screen).
>>
>> I figure I must be missing a required dependency.
>>
>> Jim
>
> I have no idea how to help you. You might need to get Dev-C++ and
> recompiled it for your machine. What version of DirectX do you have?
Under WINE it indicates dx8 is being used, (but it is emulated so maybe
just some missing functionality). In my W2K VM, I show ... whoops, looks
like I might not've installed any version. Will fix that and try again
in the VM.
The error message under WINE is:
err:wgl:X11DRV_wglGetProcAddress (wglMakeContextCurrentARB) - not found
err:wgl:X11DRV_wglGetProcAddress (wglGetCurrentReadDCARB) - not found
fixme:win:EnumDisplayDevicesW ((null),0,0x61f444,0x00000000), stub!
fixme:d3d:IWineD3DDeviceImpl_GetAvailableTextureMem (0x136bd0) : stub,
simulating 64MB for now, returning 64MB left
fixme:d3d8:IDirect3DDevice8Impl_GetDepthStencilSurface Call to
IWineD3DDevice_GetDepthStencilSurface failed
So this looks like a WINE issue.
Jim
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Jim Henderson wrote:
>
> Under WINE it indicates dx8 is being used, (but it is emulated so maybe
> just some missing functionality). In my W2K VM, I show ... whoops, looks
> like I might not've installed any version. Will fix that and try again
> in the VM.
Hopefully you can get it working, since I've got a new version almost
complete. It produces more realistic snowflakes, and is based on an
iterative function. Stay posted...
Sam
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Fri, 09 Nov 2007 15:26:59 -0800, Samuel Benge wrote:
> What version of DirectX do you have?
DirectX 9 on W2K now, no luck, though. :-(
Jim
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Sat, 10 Nov 2007 17:17:21 -0800, Samuel Benge wrote:
> Jim Henderson wrote:
>>
>> Under WINE it indicates dx8 is being used, (but it is emulated so maybe
>> just some missing functionality). In my W2K VM, I show ... whoops,
>> looks like I might not've installed any version. Will fix that and try
>> again in the VM.
>
> Hopefully you can get it working, since I've got a new version almost
> complete. It produces more realistic snowflakes, and is based on an
> iterative function. Stay posted...
Will do, hopefully the new version will have better luck...
Jim
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Samuel Benge schrieb:
> Hello Everyone,
>
> Just in time for the holidays! It's a random snowflake generator. Far
> from being an accurate simulation, it does produce better-looking
> snowflakes than most programs available today(until I find a better
> one). You can save a 700x700 screenshot to file.
>
> The program(with instructions) can be found here:
> http://www.caltel.com/~abenge/snowflake1.zip
>
> And a screen shot can be found here:
> http://www.caltel.com/~abenge/snowflake.jpg
>
> C++ source is also included. Enjoy :)
>
> Sam
Hi Sam,
Wow, this is really cool! It works fine, and the processing of
snowflakes looks very beautiful. I will try out the bitmaps with povray
as soon as I got some time.
Simone
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Simone wrote:
>
> Hi Sam,
>
> Wow, this is really cool! It works fine, and the processing of
> snowflakes looks very beautiful. I will try out the bitmaps with povray
> as soon as I got some time.
Thanks! I'll be looking forward to seeing what you make.
Sam
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |