Sat, 16 Apr 2005
Maxwell render - new Rhinoll version
Next Limit has released new version of Rhinoll (0.5.1) and Maxwell Render (1.1.33_alpha). I've just did some render.


6h rendertime, 19 samples, 16 bounces, physical sky


2h rendertime, 16 samples, 16 bounces, physical sky + Sun


2h rendertime, 16 samples, 16 bounces, physical sky + Sun,
added glass surfaces


(posted at 09:22 | filed under rhino3d/renders | link)    (comments | add new)
Tue, 12 Apr 2005
Maxwell render
I've bought prerelease version of Maxwell Render (www.maxwellrender.com), with plugin to Rhino3D. There's some tests.


1h rendertime, 15 samples


1h rendertime, 15 samples


(posted at 08:36 | filed under rhino3d/renders | link)    (comments | add new)
Wed, 06 Apr 2005
Progress bar

from palm-dev e-mail list, credit goes to Logan Shaw

typedef struct
{
    RectangleType bounds;
    WinHandle savedbits;
} ProgBar;

void OpenProgressBar (ProgBar *progbar)
{
    UInt16 savebitserror;

    progbar->savedbits = WinSaveBits (& progbar->bounds, & savebitserror);
    WinEraseRectangle (& progbar->bounds, 0);
}

void CloseProgressBar (ProgBar *progbar)
{
    if (progbar->savedbits)
    {
        WinRestoreBits (
	        progbar->bounds.topLeft.x, progbar->bounds.topLeft.y,
	        progbar->savedbits);
    }
    else
    {
	/* maybe should enqueue a frmUpdateEvent instead, maybe not */
        WinEraseRectangle (& progbar->bounds, 0);
    }
}

void UpdateProgressBar (ProgBar *progbar, Int32 numerator, Int32 denominator)
{
    RectangleType fillrect;

    RctCopyRectangle (& progbar->bounds, & fillrect);
    fillrect.extent.x = progbar->bounds.extent.x * numerator / denominator;

    WinDrawRectangle (& fillrect, 0);
}

void TestProgressBar ()
{
    Int32 i;
    const Int32 max = 25;
    ProgBar progbar;

    progbar.bounds.topLeft.x = 20;
    progbar.bounds.topLeft.y = 70;
    progbar.extent.x = 120;
    progbar.extent.y = 20;

    OpenProgressBar (& progbar);
    for (i = 0; i <= max; i++)
    {
        UpdateProgressBar (& progbar, i, max);
        SysTaskDelay (SysTicksPerSecond() / 5);
    }
    CloseProgressBar (& progbar);
}


(posted at 01:43 | filed under programming/palmbits | link)    (comments | add new)