[Papervision3D] how do you get them Shadows?
Ralph Hauwert
r.hauwert at gmail.com
Thu Dec 6 17:59:52 PST 2007
You're better off setting the object to invisible before the render. Or you
can use a filter for the viewport.
viewport.viewportObjectFilter = new ViewportObjectFilter(
ViewportObjectFilterMode.EXCLUSICE);
viewport.viewportObjectFilter.addObject(groundPlane);
Ralph.
On Dec 7, 2007 2:42 AM, Mr.doob <info at mrdoob.com> wrote:
>
> Before taking the "snapshot" from the top camera, it changes the material
> of
> the floor to a white colorMaterial :)
>
>
>
> Roy Wiggins wrote:
> >
> > How does it avoid infinite recursion? I ask without looking at the
> source,
> > but I'm curious. Do you make sure the viewport doesn't see the shadow on
> > the
> > floor?
> >
> > On Dec 6, 2007 3:21 PM, Mr.doob <info at mrdoob.com> wrote:
> >
> >>
> >> Yep, what the guys said, camera on the top, render, process, apply to
> the
> >> floor, and final render :)
> >>
> >> Explained here + sources of the clock:
> >> http://mrdoob.com/blog.php?postid=461
> >>
> >> Enjoy!
> >>
> >>
> >>
> >> Andy Zupko wrote:
> >> >
> >> > That is how its done. Basically he uses 2 cameras, 2 viewports, and
> >> uses
> >> > the BitmapViewportMaterial for to the plane benieth the object.
> >> >
> >> >> Ricardo could explain it, but I think it was using
> >> BitmapViewportMaterial
> >> >> with BitmapViewport3D and using a 2nd camera that came from the top
> >> >>
> >> >> But that's a guess :)
> >> >>
> >> >> On Dec 6, 2007 7:04 AM, Pedro Furtado < pedro.furtado at gmail.com>
> >> wrote:
> >> >>
> >> >>> Oh, sorry, i meant the shadows on a floor. Like if you have a cube
> >> above
> >> >>> a
> >> >>> plane :)
> >> >>>
> >> >>>
> >> >>>
> >> >>> On 12/6/07, John Grden <neoriley at gmail.com > wrote:
> >> >>> >
> >> >>> > http://www.rockonflash.com/blog/?p=92
> >> >>> >
> >> >>> > On Dec 6, 2007 4:33 AM, Pedro Furtado <pedro.furtado at gmail.com >
> >> >>> wrote:
> >> >>> >
> >> >>> > > As the title says, how do i get them shadows on?
> >> >>> > >
> >> >>> > > --
> >> >>> > > Pedro Furtado
> >> >>> > > http://www.dreaminginflash.com
> >> >>> > > _______________________________________________
> >> >>> > > Papervision3D mailing list
> >> >>> > > Papervision3D at osflash.org
> >> >>> > > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >> >>> > >
> >> >>> > >
> >> >>> >
> >> >>> >
> >> >>> > --
> >> >>> > [ JPG ]
> >> >>> > _______________________________________________
> >> >>> > Papervision3D mailing list
> >> >>> > Papervision3D at osflash.org
> >> >>> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >> >>> >
> >> >>> >
> >> >>>
> >> >>>
> >> >>> --
> >> >>> Pedro Furtado
> >> >>> http://www.dreaminginflash.com
> >> >>>
> >> >>> _______________________________________________
> >> >>> Papervision3D mailing list
> >> >>> Papervision3D at osflash.org
> >> >>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >> >>>
> >> >>>
> >> >>
> >> >>
> >> >> --
> >> >> [ JPG ]
> >> >> _______________________________________________
> >> >> 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
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/how-do-you-get-them-Shadows--tf4955289.html#a14203512
> >>
> >> Sent from the Papervision3D mailing list archive at Nabble.com.
> >>
> >>
> >> _______________________________________________
> >> 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
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/how-do-you-get-them-Shadows--tf4955289.html#a14205189
> Sent from the Papervision3D mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
--
Ralph Hauwert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20071207/d7c967d8/attachment-0001.html
More information about the Papervision3D
mailing list