Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Sebastian Jennen
@zebastian
ok, there it is: buddhi1980/mandelbulber2@d85f85c
Krzysztof Marczak
@buddhi1980
ok
Krzysztof Marczak
@buddhi1980
I have fixed it. Now it doesn't crash
But there is another problem. When you swap tabs then you also swap all widgets.
So if you swap 1 and 2 then you have wighets from fractal 1 on tab no. 2 (look at widgets tooltips, then you will se which parameter is connected)
I'm not sure if this will be possible, but after swap event, you can swap tab contents (all widgets) internally and then swap parameters
This is the reason why I wanted to add arrows to swap parameters between tabs. Swapping tabs by dragging makes mess in widget numbers
Sebastian Jennen
@zebastian
yes, arrows would have been easier, but dragging really has a better user experience and is faster.
we will need to change the tabs as well, or set the objectname again for the swapped tabs,
i will continue to work on this tomorrow evening, thanks for your help!
Martin
@acidhunter
hello everybody, nice to see this chatroom :-)
Krzysztof Marczak
@buddhi1980
Hello
Martin
@acidhunter
can somebody tell me whats the build req. on windows?
i would get mandelbulber roled out via a msi pack to distribute renderings over night in my office ^^
Krzysztof Marczak
@buddhi1980
Are you asking how to build it under windows or how to package it?
Martin
@acidhunter
only build
Krzysztof Marczak
@buddhi1980
It's longer story, because you need to configure cross-compiller
but win32 nad win64 executables are available
Martin
@acidhunter
i know, thanks for this
but i want to get it build by myself, never do such things under windows
on osx and linux i got working builds
Krzysztof Marczak
@buddhi1980
I compile windows executables under linux
Martin
@acidhunter
i read some docs and try to get it running, will came back later if i got questions
Krzysztof Marczak
@buddhi1980
if you go to mandelbulber2/mandelbulber2/deploy/ there you will find two bash files:
setup-cross-compile-to-windows.sh
cross-compile-windows.sh
in mandelbulber2/mandelbulber2/ there is one more needed file: make-package.sh
Martin
@acidhunter
thank you for your great work!!!
a nice
thx, will try this after reboot, see you soon ;-)
Krzysztof Marczak
@buddhi1980
with trat scrips (you can modify it for your purposes) you can try to get your own executables
Martin
@acidhunter
are these scripts working on osx?
i am not sure which os i select on reboot^^
Krzysztof Marczak
@buddhi1980
no, they are prepared for linux
that scrips work well with Debian or Ubuntu
Sebastian Jennen
@zebastian
i tried a couple of things so far, but nothing is really going to work out:
void RenderWindow::slotFractalSwap(int swapA, int swapB)
{
qDebug() << "swapping " << swapA << " with " << swapB;

    /*cParameterContainer swap = gParFractal->at(swapA);
    gParFractal->at(swapA) = gParFractal->at(swapB);
    gParFractal->at(swapB) = swap;*/
    gMainInterface->SynchronizeInterface(gPar, gParFractal, cInterface::read);
    gParFractal->swap(swapA, swapB);
    gMainInterface->SynchronizeInterface(gPar, gParFractal, cInterface::write);

    QString nameA = ui->tabWidget_fractals->widget(swapA)->objectName();
    ui->tabWidget_fractals->widget(swapA)->setObjectName(
                ui->tabWidget_fractals->widget(swapB)->objectName());
    ui->tabWidget_fractals->widget(swapB)->setObjectName(nameA);
}

with gParFractal->swap:

void cFractalContainer::swap(int swapA, int swapB)
{
    cParameterContainer swap = fractals[swapA];
    fractals[swapA] = fractals[swapB];
    fractals[swapB] = swap;
}
Krzysztof Marczak
@buddhi1980
Try to do this step by step. First learn how to swap parameters, how to swap widgets or name. Then try do do everything together.
Krzysztof Marczak
@buddhi1980
Yesterday I have bought and installed Windows 10, so I will be able to test our application on modern Windows.
mclarekin
@mclarekin
@bermarte A big thank you from my nephews 9 year old son. He now has Mandelbulber V2.06 running on his Mac, and he is having fun.
Sebastian Jennen
@zebastian
@buddhi1980 what changes do you still want to make for the next release, what can i contribute?
i can do german language update and i am looking for example settings on my different devices / OSes. It's a mess :/
Krzysztof Marczak
@buddhi1980
Now we are cleaning up all the stuff. I think we will not make any major changes. All fractal formulas are done and ui also.
Krzysztof Marczak
@buddhi1980
To do is: 1. Add missing icons for formulas, 2. Update missing tooltips, 3. Update translations, 4. Fix known bugs. 5. Prepare packages and test under different OSes 6. Release
Martin
@acidhunter
i can help with testing on osx and arch linux
i could try to build dmgs for osx, would to learn that thing^^
Sebastian Jennen
@zebastian
  1. icons finally finished! @buddhi1980 thanks really much for your effort into this idea. This turned out better than i even imagined. :D
Sebastian Jennen
@zebastian

i checked out the reference for reflection / refraction
http://graphics.stanford.edu/courses/cs148-10-summer/docs/2006--degreve--reflection_refraction.pdf
and thought i give schlick approximation a try, maybe this could save render time:

double rSchlick2Reflectance(const CVector3 &normal, const CVector3 &incident, double n1, double n2)
{
        const double r0 = (n1 - n2) / (n1 + n2);
        const double r02 = r0 * r0;
        const double cosI = -normal.Dot(incident);
        double x;
        if(n1 > n2)
        {
                const double n = n1 / n2;
                const double sinT2 = n * n * (1.0 - cosI * cosI);
                if(sinT2 > 1.0) return 1.0; //total internal reflection
                const double cosT = sqrt(1.0 - sinT2);
                x = 1.0 - cosT;
        }
        else{
                x = 1.0 - cosI;
        }

        return r02 + (1.0 - r02) * x * x * x * x * x;
}

but i ended up getting the exact same render times for all use cases i came up with. @buddhi is the difference in calculation time for the reflactance/refraction always negligible to the raymarching process, or could this take effect in some configuration?

Krzysztof Marczak
@buddhi1980
The biggest amout of time is not consumed by reflectance equations but by ray-marching inside the fractal object
calculation of reflectance value is very fast because it's calculated once only when ray hits fractal surface
then ray is going forward outside or inside the fractal, but for this there are calculated fractal interations which are much more CPU consuming
Sebastian Jennen
@zebastian
thats too bad, at least i finally understood the fresnel equations :)
Krzysztof Marczak
@buddhi1980
I have finished with examples for all formulas. Now I will focus on missing tooltips.
@mclarekin, do you have any nice examples to add?
mclarekin
@mclarekin
@buddhi1980 If there is anything I have posted at FF since V2.06 release that you would like as an example, I can probably find the .fract. You guys have a look.
Sebastian Jennen
@zebastian

@mclarekin i just looked through your recent image history on ff
I favor fullscreen fractals, but of course this is just a matter of taste.
here is a small list of the ones i liked the most. Especially the coloring in the first one is great.

Mindless Mengerings 322 - http://www.fractalforums.com/index.php?action=gallery;sa=view;id=18467

Mindless Mengerings 333 - http://www.fractalforums.com/index.php?action=gallery;sa=view;id=18607
Hats off to Hobold. - http://www.fractalforums.com/index.php?action=gallery;sa=view;id=18703
On the tip of a tongue - http://www.fractalforums.com/index.php?action=gallery;sa=view;id=18524
Chaotic Converter - http://www.fractalforums.com/index.php?action=gallery;sa=view;id=18116

Sebastian Jennen
@zebastian
@buddhi1980
Krzysztof Marczak
@buddhi1980
??