Hi Ralph
The idea was to use the approach of bitblit, not bitblit itself.
Say you have a method, which is called for every pixel and it depends
on a some parameters.
function renderPixel( a : Boolean )
{
if( a )
{
}
else
{
}
}
We could evaluate "a" once and compile this method to optimized SWF
bytecode at runtime.
As is said, i have absolutely no clue, if this is helpful for Flash
3D. It was just an idea ...
Cheers
Ralf.
On Dec 3, 2007 12:40 PM, Ralph Hauwert <[EMAIL PROTECTED]> wrote:
> Ralf,
>
> How would we access bitblit from Flash ? Not sure what we can do with this.
>
> Ralph
>
>
>
> On Dec 2, 2007 11:39 PM, Ralf Bokelberg <[EMAIL PROTECTED] > wrote:
> >
> >
> >
> > I'm reading O'Reilly's <a
> > href="
> http://www.amazon.de/Beautiful-Code-Theory-Practice-OReilly/dp/0596510047/ref=pd_bbs_sr_1?ie=UTF8&s=books-intl-de&qid=1196633416&sr=8-1">Beautiful
> > Code</a>. One essay is talking about creating code at runtime in the
> > Windows 95 BitBlit function. BitBlit copies rectangular bitmap areas.
> > Pixels can be copied in 256 different modes in which pixels are
> > combined. The modes are defined by three different parameters. Instead
> > of using conditionals to determine the mode (which is the same for
> > every pixel), BitBlit renders the parameters to assembler code once,
> > and executes this code for all the pixels. This gave a massive
> > performance boost.
> >
> > I'm not sure how the current Flash 3D libraries work. Maybe they don't
> > use per pixel rendering. Maybe they already use the same technology as
> > the one explained above. Just in case they don't ...
> >
> > Cheers
> > Ralf.
> >
> > _______________________________________________
> > osflash mailing list
> > [email protected]
> > http://osflash.org/mailman/listinfo/osflash_osflash.org
> >
>
>
>
> --
> Ralph Hauwert
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
--
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org