Logo by visual - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Check out the originating "3d Mandelbulb" thread here
 
*
Welcome, Guest. Please login or register. April 20, 2024, 02:49:28 PM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: 1 2 [3] 4 5   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: FractKali  (Read 13213 times)
0 Members and 1 Guest are viewing this topic.
Kali
Fractal Supremo
*****
Posts: 1138


« Reply #30 on: April 15, 2011, 01:42:18 PM »

@fractalmind: Thanks! I will look for the compilers you pointed, even when I think I should continue with VB.NET for this project, I will definitely try BCX as it will be useful for future projects that I have.

@Syntopia: Indeed, there's a huge difference in performance between VB6 and VB.NET, maybe this leads to confusion about how fast VB really is.
Off course still not the optimal for doing this, but I'll research about multithreading (one of the things you pointed), as I know that it can be done with VB.NET

Thanks both for the info & suggestions!  A Beer Cup
Logged

DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #31 on: April 16, 2011, 11:01:57 AM »

http://www.devx.com/DevX/10MinuteSolution/20365 wink
Logged

No sweat, guardian of wisdom!
Kali
Fractal Supremo
*****
Posts: 1138


« Reply #32 on: April 16, 2011, 01:53:22 PM »


Tante grazie, Luca!

I was already into this, but isn't as easy as it seems, at least for implementing here... there's too much restrictions in handling variables, and having too many variables and a huge array of data, I'm being forced to add complexity into the code or maybe adding public shared variables that slows downs each thread and don't make the difference against my already optimized single-threading solution (I optimized the original code a lot, about half the time required for rendering in full size the image I posted before)
I suppose I'm doing something wrong, tough...  embarrass.
I'll keep trying to figure out how to make multithreading fit well into this  head batting

Thanks again,
Logged

Kali
Fractal Supremo
*****
Posts: 1138


« Reply #33 on: April 16, 2011, 05:57:57 PM »

Guys, I did some adjustements to original calculation and rendering method, and ran a comparison test without using multithreading (see images below).
Also I implemented an exponential smoothing coloring method for this, running exactly the same in UF5 (I used Sam's formula in sam.ufm)
Off course I disabled UF5's antialias.

So, after this results, I think I'm not going to get into the complications of threading as for now...
just wanted to see if speed could really be a problem with VB.NET and I guess Syntopia was right... smiley

It seems that this might work after all, let's see what happens with combinations and such,
but It's a matter of optimizing carefuly each line of code and the use of variables in the calculation and rendering parts.
However, now I will focus on GUI... I have a lot of work to do yet!

IMAGES:






TEST RESULTS:



dance movesdance movesdance movesdance movesdance movesdance movesdance movesdance movesdance movesdance movesdance movesdance moves
« Last Edit: April 16, 2011, 06:00:46 PM by Kali » Logged

DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #34 on: April 16, 2011, 11:11:43 PM »

Using winapi you can call CreateThreadEx, but it is hard to handle

http://www.purebasic.fr/english/viewtopic.php?t=34936 Azn
« Last Edit: April 19, 2011, 11:12:40 AM by DarkBeam » Logged

No sweat, guardian of wisdom!
Kali
Fractal Supremo
*****
Posts: 1138


« Reply #35 on: April 17, 2011, 01:39:20 PM »

Using winapi you can call CreateThreadEx, but it is hard to handle

Mmmm... not gonna get into that for now... speed is fine, as you can see.
Thanks anyway!
Logged

Syntopia
Fractal Molossus
**
Posts: 681



syntopiadk
WWW
« Reply #36 on: April 19, 2011, 04:44:50 PM »

For comparison, if I run the Ducks fractal on a GPU such as the Nvidia 9800GTX with similar resolution (1250x750 at 25 iterations with 2x2 anti-alias), I get ~20 frames per second, or 50ms per frame.

I still think VB.NET is a perfectly fine way to proceed, though. You can build your GUI and fractal implementations, and, if you at some point want to go for speed, you can probably translate the fractal code to DirectX HLSL and control it from the VB.NET gui.

And btw, .NET has very nice threads (System.Threading) - no need for native winapi calls :-) For these kinds of systems, you should be able to get a speedup roughly propertional to the number on cores of your CPU.
Logged
Kali
Fractal Supremo
*****
Posts: 1138


« Reply #37 on: April 19, 2011, 05:25:11 PM »

Wow! that's really fast... I'll try speeding up either with m.threading or GPU but once the program is almost finished. I was worried about VB being too slow with normal code, but as I achieved UF5 speed I think I can continue this way, release a normal version once finished, and then look for the optimizations. Also I must buy a new card if I wish to test GPU, my 9600GT just melted sad

Thanks for the info!

Logged

Kali
Fractal Supremo
*****
Posts: 1138


« Reply #38 on: April 20, 2011, 04:50:35 PM »

Ok, I've posted some ugly b/w images that were only for testing purposes, so I wanted to show a sample image of what actually could be done.

This is a Julia of an hybrid that combines Ducks+Ballfold+Mandelbrot (should I call it "circle fold" in 2D?)

Still no color palette implemented, so I used PS to color the original monochrome image.

Hope you like it!

Full-size here

Logged

Fractal Ken
Fractal Lover
**
Posts: 246


Proud to be 2D


« Reply #39 on: April 20, 2011, 04:59:48 PM »

Very nice pattern.

This is a Julia of an hybrid that combines Ducks+Ballfold+Mandelbrot (should I call it "circle fold" in 2D?)
Then we'd have to call a 2D mandelbox a mandelsquare.  smiley
Logged

Fortran will rise again
Kali
Fractal Supremo
*****
Posts: 1138


« Reply #40 on: April 20, 2011, 06:18:28 PM »

Very nice pattern.

Thanks!

This is a Julia of an hybrid that combines Ducks+Ballfold+Mandelbrot (should I call it "circle fold" in 2D?)
Then we'd have to call a 2D mandelbox a mandelsquare.  smiley

Why not? or Amazing Square! I think I'll use those names in the program smiley
Logged

Erisian
Guest
« Reply #41 on: April 20, 2011, 08:12:48 PM »

Formula combining in 2D - excellent idea!!!  Can't wait to get stuck into those Julias!  happy
Logged
Kali
Fractal Supremo
*****
Posts: 1138


« Reply #42 on: April 21, 2011, 10:53:40 PM »

Formula combining in 2D - excellent idea!!!  Can't wait to get stuck into those Julias!  happy

Thanks, I wish I have more time for this, but be patient... I'll finish it sooner or later smiley

I'm currently working on a dynamic interface that allows changing all parameters on-the-fly, previewing the results inmediately.
This is really important to help finding interesting things inside this hybrids that are very sensitive to small changes in params.
I will post more pics & info as I make some progress, any comments are truly appreciated!
Logged

Bogus
Forums Newbie
*
Posts: 8



gh.selent GerSelent
« Reply #43 on: April 23, 2011, 08:39:32 PM »

Hi There grin

Looks nice the preview .. have you a website for your projekt ?
Logged

Kali
Fractal Supremo
*****
Posts: 1138


« Reply #44 on: April 23, 2011, 09:37:40 PM »

Hi There grin

Looks nice the preview .. have you a website for your projekt ?

Hi Bogus. No I haven't, I'll post related info, pics an news here in this thread.
Thanks for your interest!
Logged

Pages: 1 2 [3] 4 5   Go Down
  Print  
 
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.265 seconds with 27 queries. (Pretty URLs adds 0.012s, 2q)