[Papervision3D] Phongshader enhancement (bigger lightsource?)
Sander Schuurman
barn at chello.nl
Fri May 1 03:04:14 PDT 2009
As much as I like to use 'lens flares' ;), I don't know exactly what you
mean... The concepts aren't clear to me.
Any other thoughts?
thnx
o renken wrote:
> As i know you cant influence the light source neither in intensity nor
> in size.
>
> For the smooth shadow-graduation to the sites of your cube ive got a
> thought:
> Maybe you can use a CompositeMaterial which holds your phong-shader
> and additional a FlatShadeMaterial in the layer below. The FlatShade
> may have a graduation from 0xFFFFFF to 0x000000. Maybe playing around
> with blendLayers may give you a better result. Just a thought, i didnt
> tried it.
>
> Another thing: You can try to use a EnvMapShader instead of phong or
> gouraud. Open Photoshop, create a new 256,256 dokument. Dark
> Background and then the LensFlare-Effekt in Render-Effects. Drag the
> Point in the center, so youll get a nice shiny Phong-map. This you can
> use as envMap for the shader.
> If you move you camera, you have to move the light with it.
>
> olee
>
> 2009/4/29 Sander Schuurman <barn at chello.nl <mailto:barn at chello.nl>>
>
> Hi cool list,
>
> To enhance my portfolio with a tiny little bit extra detail I
> decided to add some phongshading to my rotating block.
> My question is if the lightsource could be altered. As if it seems
> to be bigger or something.
>
> I've made 2 tests:
>
> test1:
> http://www.sentoplene.com/phongshader/test1/
> The lighting and shadowing is a bit too dramatic for my liking,
> it's a bit too dark
> code:
> var light :PointLight3D = new PointLight3D();
> var phongShader :PhongShader = new PhongShader(light, 0xFFFFFF,
> 0x000000);
>
> test2:
> http://www.sentoplene.com/phongshader/test2/
> The lighting of the front element is more to my liking, only the
> shadows stay way too light when I turn the block. I like it as in
> test1 when the shadow will turn too black.
> code:
> var light :PointLight3D = new PointLight3D();
> var phongShader :PhongShader = new PhongShader(light, 0xFFFFFF,
> 0xbbbbbb);
>
> I know some photography, so I know when you enlarge your
> lightsource that the light gets softer. Is this possible? Or can I
> simulate that? That the light gets bigger, so the front element
> gets lighter in general, but when I turn the block, the shadows
> will go towards black?
>
> I hope I make myself clear... anyone?
>
> Sander
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org <mailto:Papervision3D at osflash.org>
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
>
>
> --
> http://www.renkster.de/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090501/97ae516a/attachment-0001.html>
More information about the Papervision3D
mailing list