kapa76 / jmonkeyengine

Automatically exported from code.google.com/p/jmonkeyengine
0 stars 0 forks source link

Down sampling in post-process filter changes viewport size #599

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Ran into this issue with BloomFilter, not tested with other filters.

When setting down sampling for the filter with the setDownSamplingFactor(), the 
size of the viewport gets changes. With a value of 2, only one quarter of the 
actual window size gets rendered to (width and height / 2).

To reproduce:
* Create new "BasicGame" project.
* below "rootNode.attachChild(geom):", add:

FilterPostProcessor processor = new FilterPostProcessor(assetManager);
viewPort.addProcessor(processor);
BloomFilter bloom = new BloomFilter();
bloom.setDownSamplingFactor(2);
processor.addFilter(bloom);

* start the project with default settings
* The cube will be visible in the bottom left of the screen, instead of the 
center.

As far as I can tell this was introduced in r10750 
https://code.google.com/p/jmonkeyengine/source/detail?r=10750

Original issue reported on code.google.com by the.eisb...@gmail.com on 2 Sep 2013 at 7:08

GoogleCodeExporter commented 9 years ago
this has been fixed in last SVN and retro fixed in JME 3.0.1

Original comment by remy.bou...@gmail.com on 21 Nov 2013 at 9:34