Logo by Cyclops - 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: Visit the official fractalforums.com Youtube Channel
 
*
Welcome, Guest. Please login or register. April 09, 2020, 07:08:41 AM


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]   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: A fragment for fragmenting into fragments in Fragmentarium :)  (Read 3023 times)
0 Members and 1 Guest are viewing this topic.
cbuchner1
Fractal Phenom
******
Posts: 443


« Reply #15 on: February 14, 2013, 03:42:04 PM »


needs more recursion!

blocks decompose into blocklets, blocklets into grains, grains into dust.

Logged
Kali
Fractal Supremo
*****
Posts: 1138


« Reply #16 on: February 14, 2013, 05:02:04 PM »

needs more recursion!

blocks decompose into blocklets, blocklets into grains, grains into dust.



And my GPU into fire  grin
Logged

|</\|_|
░░░░░░░

http://fractkali.deviantart.com/
taurus
Fractal Supremo
*****
Posts: 1175



profile.php?id=1339106810 @taurus_arts_66
WWW
« Reply #17 on: February 14, 2013, 05:09:37 PM »

resistance is futile...  grin

(screenshot)


* xchange.jpg (29.43 KB, 341x351 - viewed 349 times.)
Logged

when life offers you a lemon, get yourself some salt and tequila!
eiffie
Guest
« Reply #18 on: February 15, 2013, 12:13:49 AM »

EDIT: Wait just another bad idea by me - lol. This is discontinuous but I didn't notice because I used it with the original frag which is somewhat symetrical.

Here is a "simple" optimization that should get rid of 7/8 of the blocks but due to parallelism it doesn't come close to that speed. For high numbers of blocks I saw a slight improvement in speed.
Code:
float sx=((p.x<=0.0)?FragmentsX/2:0);
float ex=((p.x>0.0)?FragmentsX/2+1:FragmentsX);
float sy=((p.y<=0.0)?FragmentsY/2:0);
float ey=((p.y>0.0)?FragmentsY/2+1:FragmentsY);
float sz=((p.z<=0.0)?FragmentsZ/2:0);
float ez=((p.z>0.0)?FragmentsZ/2+1:FragmentsZ);
for (float x=sx; x<ex; x++) {
for (float y=sy; y<ey; y++) {
for (float z=sz; z<ez; z++) {
It just chooses the octant to check. Always keeping the middle layer. Whatever speedup is gained seems lost in compilation time smiley
« Last Edit: February 15, 2013, 05:19:54 PM by eiffie » Logged
Kali
Fractal Supremo
*****
Posts: 1138


« Reply #19 on: February 23, 2013, 12:43:53 AM »

Nice work eiffie, thanks! I saw your post earlier but only tested it today... I don't know what you think is a "slight improvement", but it renders a lot faster for me.

The problem is with the randomize option, but it should be a way to avoid the issue...

I attached the optimized frag, just don't use it with randomize.


* Fragments.frag (8.82 KB - downloaded 97 times.)
« Last Edit: February 23, 2013, 12:48:42 AM by Kali » Logged

|</\|_|
░░░░░░░

http://fractkali.deviantart.com/
eiffie
Guest
« Reply #20 on: February 23, 2013, 05:57:52 PM »

I think the best solution is ray TRACING to the boxs then using distance estimation from there - but the scripts get more complicated that way. I've been cheating and using OpenGL's poly rendering to do the trace then there is almost no limit to the number of pieces. I still haven't tried cutting the fractal fractally but I will when I find time. Thanks for sharing your ideas and pics!
Logged
Kali
Fractal Supremo
*****
Posts: 1138


« Reply #21 on: February 23, 2013, 08:09:40 PM »

You are welcome eiffie, thanks to you for your interest and your help.

Btw, I'm having trouble implementing the optimized version of fog shadows in Fragmentarium. Everything seems to be ok, except it does not work ok grin
I had no problems with the buffer, the shadow map seems to be generated ok, but I think the conversion from sphere to screen coordinates is the problem.
I'll try a few more things, and if I can't do it I'll have to ask for your help  smiley.

P.S.: I'll have to delete the "I˝igo Quilez didn't accept me on Facebook" comment from the .frag, he just did  joy
Logged

|</\|_|
░░░░░░░

http://fractkali.deviantart.com/
Tabasco Raremaster
Iterator
*
Posts: 172



WWW
« Reply #22 on: March 12, 2013, 10:49:42 AM »

Spent hours working on a fractal and you don't like the final result?

Ever thought of smashing it and breaking it to pieces?

Don't waste your money on a 3D print only to violently express your frustration!

And you don't have to use that hammer on your expensive monitor anymore!

I have the solution:

<a href="https://dl.dropbox.com/s/scxoucnt9nfjw5b/fragmentest.swf?token_hash=AAH6vay72NzJ6WPuJuYpJ2eqrfemn-TLaACHZJAvUEghrw" target="_blank">https://dl.dropbox.com/s/scxoucnt9nfjw5b/fragmentest.swf?token_hash=AAH6vay72NzJ6WPuJuYpJ2eqrfemn-TLaACHZJAvUEghrw</a>

Download the .frag, replace the formula section with that fractal you hate so much, and enjoy the fractal rage!


Genius!
Logged

http://tabasco-raremaster.deviantart.com/

If you dislike it press; Alt+F4
LMarkoya
Strange Attractor
***
Posts: 282



« Reply #23 on: March 12, 2013, 12:23:28 PM »

Sweet....nice job
Logged
Pages: 1 [2]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
fragment Mandelbulb3D Gallery micshac 0 397 Last post December 15, 2010, 07:06:21 PM
by micshac
Fragment from Spider web Mandelbulb3D Gallery mica.mala 0 316 Last post August 16, 2012, 06:13:47 PM
by mica.mala
Fragment Fragmentarium Gallery Frakkie 4 443 Last post February 12, 2013, 04:16:41 PM
by knighty
GL depthbuffer from GLSL fragment Programming 3dickulus 10 1539 Last post September 19, 2015, 08:54:41 PM
by 3dickulus
Need help getting rid of corrupt file fragments on internal ExFAT drive General Discussion stardust4ever 5 665 Last post October 23, 2016, 10:09:28 AM
by Sabine

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.127 seconds with 28 queries. (Pretty URLs adds 0.009s, 2q)