Skip to content

Instanced objects are culled when using WaterFilter #2007

Closed
@foxcc2021

Description

@foxcc2021

It seems there is a bug in culling checks of instanced objects.

20230510202939
The tree model should not be culled.

20230510203009
The correct scene expected.

After some debugging, I found that, it seems the instanceCullingFunction used the wrong camera to cull checks in the InstancedGeometry。
Because the WaterFilter has a reflectionCam, the default camera will be replaced when waterFilter rendering.
20230510202701

20230510210756
I've solved my problem using this way,pass the render camera from the instanced node to the instanced geometry for culling checks.
Hope this can helps.

JME version:3.6.0-stable
System: win10

Metadata

Metadata

Assignees

Labels

bugSomething that is supposed to work, but doesn't. More severe than a "defect".

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions