The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the newest Gaming News from
QJ.NET in your email each day?




Want to learn more about the team who brings you the QJ news?

Read about them now!

 


Results 1 to 28 of 28

Fractal Universe V1

This is a discussion on Fractal Universe V1 within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Fractal Universe V1 for Sony PSP by Art 2009 PSP Version: Canon Digital Camera Version: Hi Guys. This is my ...

  
  1. #1
    Art
    Art is offline
    Bush Programmer
    Points: 57,474, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 21.0%

    Join Date
    Nov 2005
    Posts
    3,647
    QJ Pts
    57,474
    Level
    100
    Downloads
    0
    Uploads
    0

    Default Fractal Universe V1

    Fractal Universe V1 for Sony PSP by Art 2009

    PSP Version:






    Canon Digital Camera Version:


    Hi Guys.
    This is my first version of Fractal Universe for the PSP.
    I wasn't going to write any more PSP apps since I'm actively programming
    for another platform and all, but this one was actually done to speed up
    the process of writing the same program to run on another platform
    (and then I got carried away with it).

    This is a relatively fast Mandelbrot set fractal explorer.
    You can move left, right , up, down, and zoom in & out of the image you see at any time.
    The fractal universe is limitless, and you can zoom in as many times as you like without
    losing any detail. You can also save an image to Memory Stick.

    Download backup link:
    Send big files the easy way. Files too large for email attachments? No problem!

    Cheers, Art.
    Attached Files Attached Files
    Last edited by Art; 07-03-2009 at 11:29 PM.

  2. #2
    Developer and Tutor.
    Points: 8,736, Level: 62
    Level completed: 96%, Points required for next Level: 14
    Overall activity: 0%

    Join Date
    Jul 2007
    Location
    Widnes, England
    Posts
    1,649
    QJ Pts
    8,736
    Level
    62
    My Mood
    Happy
    Downloads
    0
    Uploads
    0

    Default

    Nice Art i love the apps and programs that you make you always provide screenshots and good documentation aswell, well done
    ------ FaT3oYCG -----
    AKA Craig, call me what you want to It's your preference.
    My Website: http://www.modern-gamer.co.uk/

    Currently working on:
    (0) MediaGrab
    (0) PGE Gears Of War - On hold (Very large project).
    (0) PS???? -On Hold A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix).

  3. #3
    Art
    Art is offline
    Bush Programmer
    Points: 57,474, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 21.0%

    Join Date
    Nov 2005
    Posts
    3,647
    QJ Pts
    57,474
    Level
    100
    Downloads
    0
    Uploads
    0

    Default

    Thanks :)
    I'm glad I did this one, because I used to like playing with a program like this years ago.
    (and it was much slower).

  4. #4
    Local Tech
    Points: 9,044, Level: 63
    Level completed: 98%, Points required for next Level: 6
    Overall activity: 27.0%

    Join Date
    Oct 2007
    Location
    home
    Posts
    1,821
    QJ Pts
    9,044
    Level
    63
    Downloads
    1
    Uploads
    0

    Default

    hey screens look reall nice and promising
    but what does this line mean? "This is a relatively fast Mandelbrot set fractal explorer."

  5. #5
    Art
    Art is offline
    Bush Programmer
    Points: 57,474, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 21.0%

    Join Date
    Nov 2005
    Posts
    3,647
    QJ Pts
    57,474
    Level
    100
    Downloads
    0
    Uploads
    0

    Default

    It's pretty intensive work for the computer to render a fractal.
    This algorithm is "relatively" fast (ie. faster than some other algorithms out there).
    The PSP isn't the fastest platform to run it on though.
    It takes some seconds to render each frame.

    The previous PSP fractal explorer was able to do it faster sacrificing quality.
    This one should be virtually infinite (for as long as you can keep dividing a double precision float by 2),
    which means you can keep zooming in forever and not lose any detail.

  6. #6
    QJ Gamer Bronze
    Points: 3,988, Level: 40
    Level completed: 19%, Points required for next Level: 162
    Overall activity: 0%

    Join Date
    Sep 2006
    Posts
    41
    QJ Pts
    3,988
    Level
    40
    My Mood
    Cynical
    Downloads
    1
    Uploads
    0

    Default

    nice app, but level details after multiple zoom (cca 10x) rapidly declines
    psp.novinky.org

  7. #7
    Developer and Tutor.
    Points: 8,736, Level: 62
    Level completed: 96%, Points required for next Level: 14
    Overall activity: 0%

    Join Date
    Jul 2007
    Location
    Widnes, England
    Posts
    1,649
    QJ Pts
    8,736
    Level
    62
    My Mood
    Happy
    Downloads
    0
    Uploads
    0

    Default

    o_O the quality is fine, you zoomed in so you get more black, what did you expect it to look like that is not pixilated! good quality.
    ------ FaT3oYCG -----
    AKA Craig, call me what you want to It's your preference.
    My Website: http://www.modern-gamer.co.uk/

    Currently working on:
    (0) MediaGrab
    (0) PGE Gears Of War - On hold (Very large project).
    (0) PS???? -On Hold A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix).

  8. #8
    QJ Gamer Bronze
    Points: 5,628, Level: 48
    Level completed: 39%, Points required for next Level: 122
    Overall activity: 19.0%

    Join Date
    Dec 2007
    Location
    B.F.
    Posts
    328
    QJ Pts
    5,628
    Level
    48
    My Mood
    Psychedelic
    Downloads
    1
    Uploads
    0

    Default

    Pretty Nice, Art, I tried it.

    I have been working on the same topic, in Lua. I found the whole script on my laptop.

    Code:
    depth,x0,y0,x1,y1 = 32,-1,-1,1,1
    --x0 = -0.65
    --y0 = -0.7
    --x1 = -0.5
    --y1 = -0.6
    
    collist = {}
    for i=0,depth do
    b = math.floor(i / depth * 1024)
    if b > 255 then
    b = 255
    end
    g = math.floor((i - depth / 3) / depth * 1024)
    if g > 255 then
    g = 255
    end
    if g < 0 then
    g = 0
    end
    r = math.floor((i - depth / 3 * 2) / depth * 1024)
    if r > 255 then
    r = 255
    end
    if r < 0 then
    r = 0
    end
    collist[i] = Color.new(r, g, b)
    end
    collist[depth-1] = Color.new(0, 0, 0)
    
    -- Drawing Fractal
    w,h=480,272
    render = Image.createEmpty(480,272)
    deltax = x1 - x0
    deltay = y1 - y0
    for y=0,h-1 do
    	for x=0,w-1 do
    	r = 0; n = 0; b = x / w * deltax + x0; e = y / h * deltay + y0; i = 0
    		while i < depth-1 and r * r < 4 do
    		d = r; r = r * r - n * n + b; n = 2 * d * n + e; i = i + 1
    		end
    	render:pixel(x, y, collist[i])
    	end
    screen:blit(0, 0, render)
    screen.waitVblankStart()
    screen.flip()
    end
    
    while true do
    screen.waitVblankStart()
    screen:flip()
    end

    And result:

    00:00: Windows is loading...Come back tomorrow.
    01:00 : Booting done.Not yet errors encountered...
    01:10: Fatal error.Windows has been detected on logical drive
    01:22: Keyboard Locked, try everything.
    01:42 : Mouse Device Pilot not found, or uninstalled.Press Left-Bouton to continue.
    01:50 : Ending User session.Do you want to play another game ?
    01:59: Not enough memory.Only 508'312'583 bytes available.
    02:00 : System is shutting Down.

  9. #9
    QJ Gamer Green
    Points: 2,682, Level: 31
    Level completed: 55%, Points required for next Level: 68
    Overall activity: 0%

    Join Date
    Dec 2008
    Location
    London
    Posts
    94
    QJ Pts
    2,682
    Level
    31
    Downloads
    6
    Uploads
    0

    Default

    Good to see your work on the psp aging.

    Thanks

  10. #10
    Speed for life
    Points: 121,080, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%
    Awards:
    Most Popular

    Join Date
    Jan 2009
    Location
    Greece,Limnos
    Posts
    7,863
    QJ Pts
    121,080
    Level
    100
    My Mood
    Relaxed
    Downloads
    12
    Uploads
    2

    Default

    They are nice for screensaver.
    Is it possible to make it ?
    [SIZE="1"][COLOR=limegreen]Phat PSP 1004 TA-079 v3 + Sony 16GB Mark II + tiltFX with 5.00 m33-6 + 1.50 kernel +Prometheus-4 patch + 5.01 patch[/COLOR]
    [COLOR=DarkOrange]Phat PS3 CECHG04 40GB (750GB) with 3.55.2 PRIVACY[/COLOR]
    [COLOR=Red]Slim PS2 SCPH-75004 + Free McBoot 1.8b + uLaunchELF v4.42 + ESR beta r9b[/COLOR]
    [COLOR=teal]iPhone 3G 8GB jailbroken with iOS 4.2.1 with OpeniBoot 0.2 and iDroid Pepparkaka 11.04 (Android 2.3.3)[/COLOR]
    [COLOR=DarkOrchid]Fujitsu Simens Amilo PA1510 + 2.5GB Ram + AMD Sempron 3400+ 1.8GHz + Windows XP/Ubuntu 9.10[/COLOR][/SIZE]

    [URL="http://forums.qj.net/guides-psp-hacks-homebrew-emulators/159330-guide-how-patch-5-55-6-00-6-10-6-20-6-30-6-31-6-35-6-36-games-all-cfw.html"]Patch the 5.55/6.00/6.10/6.20/6.30/6.31/6.35/6.36 games to work with all FWs[/URL]
    [URL="http://forums.qj.net/psp-general/170056-cwcheat-databases.html"]My CWCheat databases[/URL]
    [URL="http://forums.qj.net/guides-psp-hacks-homebrew-emulators/156916-guide-ultimate-psp-game-addons-guide.html"]PSP Game Addons[/URL]
    [URL="http://forums.qj.net/blogs/nickxab/"]My qj blog[/URL]
    [URL="http://forums.qj.net/blogs/nickxab/17-cydia-sources.html"]Cydia Sources[/URL]

    [IMG]http://img32.imageshack.us/img32/6181/58350347.png[/IMG]
    [IMG]http://img156.imageshack.us/img156/5489/consoles.gif[/IMG]
    [IMG]http://img843.imageshack.us/img843/2356/kyoshoracer.jpg[/IMG]
    [IMG]http://img80.imageshack.us/img80/8681/userbar794826.gif[/IMG]
    [IMG]http://img517.imageshack.us/img517/2861/userbar781427.gif[/IMG]
    [IMG]http://img256.imageshack.us/img256/3394/userbar781454.gif[/IMG]
    [IMG]http://img231.imageshack.us/img231/1889/userbar781443.gif[/IMG]
    [IMG]http://www.userbars.com/i/542861.gif[/IMG]

  11. #11
    Lua Coder
    Points: 11,989, Level: 71
    Level completed: 85%, Points required for next Level: 61
    Overall activity: 0%

    Join Date
    Jan 2008
    Location
    Iowa
    Posts
    834
    QJ Pts
    11,989
    Level
    71
    My Mood
    Busy
    Downloads
    2
    Uploads
    0

    Default

    wow this looks great
    ...

  12. #12
    Developer
    Points: 14,963, Level: 79
    Level completed: 23%, Points required for next Level: 387
    Overall activity: 0%

    Join Date
    Jun 2007
    Posts
    2,475
    QJ Pts
    14,963
    Level
    79
    Downloads
    0
    Uploads
    0

    Default

    Sometimes my memory stick led keeps blinking for ever when I use this.

    You should have a list of "known to look cool" color palletes

  13. #13
    Art
    Art is offline
    Bush Programmer
    Points: 57,474, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 21.0%

    Join Date
    Nov 2005
    Posts
    3,647
    QJ Pts
    57,474
    Level
    100
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by niobe View Post
    nice app, but level details after multiple zoom (cca 10x) rapidly declines
    You are right. My understanding is somewhat better now.
    I have a fix that will allow many more levels of detail:



    And note you can't see the transition between colours.
    This level of detail at high zoom costs a lot of time, so I'm thinking of a trick
    to use like zooming in at low detail, and then turning on high detail once you're
    already there.

    I also have saving of multiple images ready.
    Art.

  14. #14
    Lua Coder
    Points: 11,989, Level: 71
    Level completed: 85%, Points required for next Level: 61
    Overall activity: 0%

    Join Date
    Jan 2008
    Location
    Iowa
    Posts
    834
    QJ Pts
    11,989
    Level
    71
    My Mood
    Busy
    Downloads
    2
    Uploads
    0

    Default

    that sounds neat, you should add some catchy song to it it feels like that is all that is missing. Anyways great work
    ...

  15. #15
    QJ Gamer Green
    Points: 2,524, Level: 30
    Level completed: 50%, Points required for next Level: 76
    Overall activity: 0%

    Join Date
    May 2008
    Posts
    6
    QJ Pts
    2,524
    Level
    30
    Downloads
    0
    Uploads
    0

    Default

    Fyi- Details at higher zoom.. (Ie Blackness) is fixed with higher iterations.

  16. #16
    QJ Gamer Bronze
    Points: 4,509, Level: 42
    Level completed: 80%, Points required for next Level: 41
    Overall activity: 0%

    Join Date
    Jul 2007
    Location
    Somewhere
    Posts
    63
    QJ Pts
    4,509
    Level
    42
    Downloads
    0
    Uploads
    0

    Default

    Amazing work Art ! =]
    My Current Releases:
    Spoiler for Click Here To See My Releases:


    Homebrew Apps:
    Ultimate Button Tester , Playstation Portable Toolbox (PPT) , Homebrew Portal Launcher , Greek Font Flasher(GFF) , PAINTBALL 2D V1.5 , PowerSwitch Blocker V1.0

    Portals:
    Cy-Portal , RSPortal , PSP Downloader , Greek Webbrowser Virtual Keyboard

    Others:
    Greek XMB Theme(.ptf)

  17. #17
    Art
    Art is offline
    Bush Programmer
    Points: 57,474, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 21.0%

    Join Date
    Nov 2005
    Posts
    3,647
    QJ Pts
    57,474
    Level
    100
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by TesterSam View Post
    Fyi- Details at higher zoom.. (Ie Blackness) is fixed with higher iterations.
    Yes, this one uses 30, I'm adding an option for 256 which is also the number
    of colours in the palette.

    There's also an "auto mode" that will zoom out to 0 from where ever you are,
    and save a numbered image for every frame.

  18. #18
    Lua Coder
    Points: 11,989, Level: 71
    Level completed: 85%, Points required for next Level: 61
    Overall activity: 0%

    Join Date
    Jan 2008
    Location
    Iowa
    Posts
    834
    QJ Pts
    11,989
    Level
    71
    My Mood
    Busy
    Downloads
    2
    Uploads
    0

    Default

    that sounds good
    ...

  19. #19
    Art
    Art is offline
    Bush Programmer
    Points: 57,474, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 21.0%

    Join Date
    Nov 2005
    Posts
    3,647
    QJ Pts
    57,474
    Level
    100
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by Torch View Post
    Sometimes my memory stick led keeps blinking for ever when I use this.

    You should have a list of "known to look cool" color palletes
    Don't know why that would be. It only should access the MS to save images.
    The colour palettes are auto generated with the code from the PSP Plasma demo :)
    It would be possible to remember the number of iterations used to generate each palette to reproduce good ones.

  20. #20
    Developer
    Points: 14,963, Level: 79
    Level completed: 23%, Points required for next Level: 387
    Overall activity: 0%

    Join Date
    Jun 2007
    Posts
    2,475
    QJ Pts
    14,963
    Level
    79
    Downloads
    0
    Uploads
    0

    Default

    When it shows the intro screen and I press a button to show the first image, the MS LED starts blinking. It keeps blinking until I press a button again and it says CALCULATING. It would be nice if it didn't exit immediately when pressing the Home button.

  21. #21
    Art
    Art is offline
    Bush Programmer
    Points: 57,474, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 21.0%

    Join Date
    Nov 2005
    Posts
    3,647
    QJ Pts
    57,474
    Level
    100
    Downloads
    0
    Uploads
    0

    Default

    Ah, I was using the exit callbacks, but it either hung or took a very long time to exit,
    so I set to exit on popup screen.

    Here's a demo I'll be using in the thread for version 2. Done by incrementing the max
    number of iterations by one for each of 256 frames :)

    http://www.youtube.com/watch?v=vOYNpAPuClE

    There's plenty of zoom videos on YouTube, but I haven't seen this effect yet.
    Art.

  22. #22
    Lua Coder
    Points: 11,989, Level: 71
    Level completed: 85%, Points required for next Level: 61
    Overall activity: 0%

    Join Date
    Jan 2008
    Location
    Iowa
    Posts
    834
    QJ Pts
    11,989
    Level
    71
    My Mood
    Busy
    Downloads
    2
    Uploads
    0

    Default

    wow that is awsome keep up the good work
    ...

  23. #23
    Developer
    Points: 14,963, Level: 79
    Level completed: 23%, Points required for next Level: 387
    Overall activity: 0%

    Join Date
    Jun 2007
    Posts
    2,475
    QJ Pts
    14,963
    Level
    79
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by Art View Post
    Ah, I was using the exit callbacks, but it either hung or took a very long time to exit,
    so I set to exit on popup screen.
    How are you detecting the Home screen from user mode?? The ExitCallback only fires after the user chooses Yes.
    I don't see why it would take long using the exit callback. As long as you check the done=1 or whatever variable that gets set in the callback from withing the rendering loop it should terminate instantly.

  24. #24
    Art
    Art is offline
    Bush Programmer
    Points: 57,474, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 21.0%

    Join Date
    Nov 2005
    Posts
    3,647
    QJ Pts
    57,474
    Level
    100
    Downloads
    0
    Uploads
    0

    Default

    Thanks, it appears to be fixed now.
    You can check for the exit popup just by checking for the Home button in user mode.

  25. #25
    Developer
    Points: 14,963, Level: 79
    Level completed: 23%, Points required for next Level: 387
    Overall activity: 0%

    Join Date
    Jun 2007
    Posts
    2,475
    QJ Pts
    14,963
    Level
    79
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by Art View Post
    Thanks, it appears to be fixed now.
    You can check for the exit popup just by checking for the Home button in user mode.
    No you can't read the Home button from user mode. You're using the kernel mode Ctrl functions if you can do that. Or you're using kubridge. Which means its not firmware independent like you said it was. kubridge is only available from 3.something CFW onwards and directly calling the kernel function would only work on the 1.50 kernel.

  26. #26
    Art
    Art is offline
    Bush Programmer
    Points: 57,474, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 21.0%

    Join Date
    Nov 2005
    Posts
    3,647
    QJ Pts
    57,474
    Level
    100
    Downloads
    0
    Uploads
    0

    Default

    Doesn't this line:
    PSP_MODULE_INFO("Fractal Universe", 0, 1, 0);
    cause a program to be unable to use kernel mode functions?
    then this:
    // if(pad.Buttons & PSP_CTRL_HOME) {
    // sam = 1; // set sample address counter
    // samlock = 1; // re-enable player routine
    // samsel = 1; // select click sample
    // sceKernelExitGame();
    // }

    is what I was using.

    THe problem is if I check for a done var for every iteration it will probably add significant delay
    with so many iterations.
    I could compromise and check once each line or something.

  27. #27
    Developer
    Points: 14,963, Level: 79
    Level completed: 23%, Points required for next Level: 387
    Overall activity: 0%

    Join Date
    Jun 2007
    Posts
    2,475
    QJ Pts
    14,963
    Level
    79
    Downloads
    0
    Uploads
    0

    Default

    Right, I forgot. In user mode it doesn't return the physical state of the Home button (whether its pressed or not) but returns whether the Exit screen is visible or not. Thus it would return true even after you release the home button.

    You have to be checking for the Home button in a loop as well right? That consumes WAAAAY more CPU, 1000s of instructions, as its a Syscall into a kernel export. Checking if done!=0 would be compiled to 3 or 4 instructions. It just needs to respond in a reasonable amount of time, so just put it in an appropriate location.

  28. #28
    Art
    Art is offline
    Bush Programmer
    Points: 57,474, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 21.0%

    Join Date
    Nov 2005
    Posts
    3,647
    QJ Pts
    57,474
    Level
    100
    Downloads
    0
    Uploads
    0

    Default

    I wasn't checking it at all in the drawing loop though.
    It would have still taken ages to exit while drawing probably.
    But I'm going to check the done var for each of the 272 lines that are drawn.


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





All times are GMT -8. The time now is 07:48 AM.

Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2013, Caputo Media, LLC. All Rights Reserved. Cluster C5.
Contact Us | Free Flash Games | Ad Blockers Suck! Why?