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: Support us via Flattr FLATTR Link
 
*
Welcome, Guest. Please login or register. October 23, 2019, 07:08:59 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   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: Experimental MB3D-version with integrated formula-compiler (JIT)  (Read 4617 times)
0 Members and 1 Guest are viewing this topic.
thargor6
Fractal Molossus
**
Posts: 789



WWW
« on: October 26, 2015, 01:17:01 AM »

Hi,
this is not for users yet, but for people who enjoy exploring new formulas and want to play with them quickly (without the need to code them in ASM).
Please do not spread the link, especially not on dA or Facebook, as it is only a proof of concept.

The link below provides the new *.exe and an example-formula

In Formulas there is now a new section "[SOURCE]" where you can put your formula as Delphi-code.
Each formula should have the signature
Code:
procedure MyFormula(var x, y, z, w: Double; PIteration3D: TPIteration3D);
begin
  ...
end;
and may access the TPIteration3D_structure.
Any other structures like TPIteration3DExt are not defined yet (each you want to access must be defined for the JIT-compiler, because the compiler can not use the internal structures. ).

http://www.andreas-maschke.de/java/tmp/MB3D_JIT.zip

About performance: it is known that the JIT-version of a formula is slower than a native or ASM variant. But this one is for exploring and inventing new stuff with ease giving a nice overall performance.

Logged
Snicker02
Alien
***
Posts: 38


« Reply #1 on: October 26, 2015, 02:21:18 AM »

I am not finding Source under formulas

 
Logged
thargor6
Fractal Molossus
**
Posts: 789



WWW
« Reply #2 on: October 26, 2015, 02:40:04 AM »

I am not finding Source under formulas
Currently, you must edit them outside of MB3D with a text-editor, e.g. Notepad++

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


Fragments of the fractal -like the tip of it


« Reply #3 on: October 26, 2015, 07:56:00 AM »

 Wow Cantor Dance great... now we don't need Fragmentarium or stuff like that! Powerrrrr cheesy
Logged

No sweat, guardian of wisdom!
m2001
Conqueror
*******
Posts: 114


« Reply #4 on: October 26, 2015, 08:54:45 AM »

thx!  grin
Logged

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


Fragments of the fractal -like the tip of it


« Reply #5 on: October 26, 2015, 11:12:07 AM »

Hum, some questions now:
If I add an user variable to a custom formula how do I access it? Like
[OPTIONS]
.Version = 2
.DEscale = 1
.SIpower = 2
.Double Scale = 2.0

And difs/3DA/4D/4DA are still unsupported? Thanks infinitely A Beer Cup
Logged

No sweat, guardian of wisdom!
KRAFTWERK
Global Moderator
Fractal Senior
******
Posts: 1439


Virtual Surreality


WWW
« Reply #6 on: October 26, 2015, 11:17:39 AM »

Cool! Great work Thargor!  A Beer Cup
Logged

thargor6
Fractal Molossus
**
Posts: 789



WWW
« Reply #7 on: October 26, 2015, 11:34:26 AM »

If I add an user variable to a custom formula how do I access it?
Not supported yet (but on the TODO-list), you must hardcode all params for now

And difs/3DA/4D/4DA are still unsupported? Thanks infinitely A Beer Cup
You specify this by setting the .DEoption parameter

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


Fragments of the fractal -like the tip of it


« Reply #8 on: October 26, 2015, 11:57:24 AM »

OK!!! In that mode you need to manually scale the DE, that is found in "w" variable (like in other formulas!!!) A Beer Cup It perfectly works Andreas you are genius!
Logged

No sweat, guardian of wisdom!
mclarekin
Fractal Senior
******
Posts: 1739



« Reply #9 on: October 26, 2015, 12:41:49 PM »

@ Thargor

 afro afro afro Much greater access to infinity is sooooo  cool. This is what explorers want.   smiley smiley smiley
Logged
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #10 on: October 26, 2015, 09:10:34 PM »

@andreas do you plan to include used formulas in the save file? that can get really messy cheesy
Logged

---

divide and conquer - iterate and rule - chaos is No random!
thargor6
Fractal Molossus
**
Posts: 789



WWW
« Reply #11 on: October 26, 2015, 10:18:53 PM »

Thank you all!
@Christian Do not know yet if I want to include the formulas in the file, the format is rather tricky, not sure yet if that is really desired. Any comments? :-)
Logged
Snicker02
Alien
***
Posts: 38


« Reply #12 on: October 26, 2015, 11:14:00 PM »

I tried opening it up in Notepad++ and did a search for source.... but not sure which one

Logged
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #13 on: October 26, 2015, 11:19:07 PM »

I tried opening it up in Notepad++ and did a search for source.... but not sure which one


huh?huh?huh?huh?huh? what did you want to achieve by that?

@andreas i think it is just fine to NOT include it, but keeping a record of the exact version of a formula might be needed, since now the available formulas will get spread to infinity, regarding dynamic formula writing i believe an online archive of available formulas is the way to go, similar to what ultrafractal does with automatic downloading and such wink
Logged

---

divide and conquer - iterate and rule - chaos is No random!
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #14 on: October 26, 2015, 11:20:58 PM »

what i find a bit tricky is that 2 mandelbulb renderers have completely different formula definition syntax (delphi/glsl) some sort of meta language to be transformed into both output formats would be worth a thought ... just sayin'
Logged

---

divide and conquer - iterate and rule - chaos is No random!
Pages: [1] 2 3   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
how to sert up most recent mb3d version ??! Mandelbulb 3d cKleinhuis 4 383 Last post July 15, 2012, 09:55:02 PM
by lenord
writing a mb3d formula (*directly* in Assembly) Tutorials « 1 2 » M Benesi 15 2004 Last post October 21, 2015, 11:34:49 PM
by M Benesi
Test: experimental MB3D(JIT) Mandelbulb3D Gallery cyseal 1 538 Last post January 28, 2016, 03:08:58 AM
by Snicker02
Mandelbulb3d experimental version with 8 formula slots Releases thargor6 0 1570 Last post July 02, 2016, 10:58:56 PM
by thargor6
MB3D version with 8 formulas Help & Support erabyterum 2 730 Last post December 08, 2017, 05:23:37 PM
by Spain2points

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.135 seconds with 29 queries. (Pretty URLs adds 0.013s, 2q)