jMonkeyEngine / jMonkeyEngine/jmonkeyengine

FilterPostProcessor throws an exception with depth filters: FrameBuffer already initialized.

Open
#939 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Contribution welcome
Dominant language
Java
Stars
4.3k
Forks
1.2k
Avg merge
4d 7h
Merged PRs (30d)
14

Description

All the information can be found on this forum post.

Whenever the FPP is initialized + contains a non-depth-texture-required filter and a depth-texture-required filter is added, it throws:

java.lang.UnsupportedOperationException: FrameBuffer already initialized.
	at com.jme3.texture.FrameBuffer.setDepthTexture(FrameBuffer.java:473)
	at com.jme3.post.FilterPostProcessor.initFilter(FilterPostProcessor.java:183)
	at com.jme3.post.FilterPostProcessor.addFilter(FilterPostProcessor.java:116)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with FilterPostProcessor.addFilter and initFilter, then inspect FrameBuffer.setDepthTexture at the stack-trace locations. Reproduce the failure by initializing the FPP with a non-depth-texture-required filter before adding a depth-texture-required filter. Done means this sequence no longer throws the FrameBuffer already initialized exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
computer-graphics, game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.