[Papervision3D] Shading on a plane
Balázs Serényi
art at visualminds.hu
Sun Jun 22 11:32:14 PDT 2008
thanks guys, i already tried to recalculate the normals, the plane has
also a lot of segments so these are not the problems. The strange
thing although is , when i apply some vertex transformation on the
plane and recalculate the normals it gets nicely shaded except for
those faces, which stay in the original position. Those stay flat.
On Jun 22, 2008, at 15:38 , Piergiorgio Niero - Flashfuck.it wrote:
> Yep,
> i did it that way
> http://www.nabble.com/Shading-a-plane-primitive-SOLVED%21-D-p17851121.html
>
> but in my case i was trying to shade a plane "in motion"..i animated
> some vertices, i didn't yet figure out how to shade a plain plane
>
> Il giorno 22/giu/08, alle ore 14:44, J-roen ha scritto:
>
>> From what I remember a plane does not have face normals by default.
>> I remember reading somthing about it on the list.
>> Someone solved it by looping through all the faces and calling the
>> createNormal function.
>> Hope that helps.
>>
>> J-roen
>>
>> M. Kalthoff schreef:
>>> <div class="moz-text-flowed" style="font-family: -moz-fixed">maybe
>>> your plane is made just of one quad (->two triangles)? if
>>> i remember the gourard-/phong calculations correctly you may need
>>> some more triangles to see a something phongy.
>>> the more the prettier...
>>>
>>>
>>>
>>>
>>> Balázs Serényi schrieb:
>>>> Hi there,
>>>>
>>>> Could someone please explain what to do to make a plane with a
>>>> phong
>>>> material look "phong", I mean If I apply the same phong material
>>>> on a
>>>> cube
>>>> it's sides looks nice but on a plane it just gives a solid color.
>>>> Why is
>>>> that?
>>>>
>>>> Thanks!
>>>> Balazs
>>>>
>>>> p.s. PV3D rocks. Respect.
>>>>
>>>>
>>>> _______________________________________________
>>>> Papervision3D mailing list
>>>> Papervision3D at osflash.org
>>>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>>>
>>>
>>>
>>>
>>> </div>
>>
>>
>>
>> _______________________________________________
>> Papervision3D mailing list
>> Papervision3D at osflash.org
>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
More information about the Papervision3D
mailing list