The problem of ReflectionView

View: New views
2 Messages — Rating Filter:   Alert me  

The problem of ReflectionView

by sjkgxf7191 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I want to show some objects' reflections and the other objects's reflections will not be seen.
How to achieve this effect with ReflectionView? Thanks.

Re: The problem of ReflectionView

by Jeff Winder :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

To filter out an object from reflection, use the viewport.viewportObjectFilter:

viewportReflection.viewportObjectFilter = new ViewportObjectFilter(ViewportObjectFilterMode.EXCLUSIVE);
viewportReflection.viewportObjectFilter.addObject(objectWithoutReflection);

Jeff.

sjkgxf7191 wrote:
I want to show some objects' reflections and the other objects's reflections will not be seen.
How to achieve this effect with ReflectionView? Thanks.