[Papervision3D] PhongMaterial - only ambient and specular shading? No diffuse?

Danny danny.mcgillick at gmail.com
Thu Apr 16 21:31:33 PDT 2009


Hallo folks. I was using a PhongShader on an object, and found I was able to
get say a nice yellow base colour that took a white specular from the light,
and ran through a coloured diffuse shade down to my ambient colour. I was
using a flat yellow movie clip as the Material for the PhongShader.
Unfortunately they're incredibly heavy on processing.
I switched to PhongMaterial which leaves me with a nice frame rate, however
I find that on any area of my model not covered by specular higlight, I have
the flat ambient colour. It's as though theirs no diffuse shading, or the
specular is actually diffuse and there's no specular.

Basically I want to achieve a convincing yellow surface with a range of
yellow diffuse shading on it plus a shiney white hilight. With this Material
I've only been able to get a flat yellow car with a white specular, or a
nicely shaded yellow car that has no white specular, which leaves it looking
a bit like yellow aluminium with no coating.

Does anyone know how I can achieve my goals with the PhongMaterial?

My code:

light = new PointLight3D(true);

_carMat = new PhongMaterial(light, 0xFFFFFF, 0x212424, 10);

carDAE.replaceMaterialByName(_carMat,"BodyPaint");


Thanks,
Danny.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090417/8c7f03c0/attachment.html>


More information about the Papervision3D mailing list