Open GoogleCodeExporter opened 8 years ago
Sorry, by rechecking I saw there is the screenSpread variable which I added
newly to my derivation of LightScatteringFilter. It is defined like this:
protected Vector2f screenSpread = Vector2f.UNIT_XY;
/**
Defines the relative width and height of the viewport to apply the effect to.
1.0 is default and means take the whole width or height.
Make it less if you want just a portion of the width or height around the light position to apply the effect to.
Or set it higher if you want to have the effect already when the light position still is outside the viewport.
*/
public void setScreenSpread( Vector2f screenSpread ) { this.screenSpread = screenSpread; }
public Vector2f getScreenSpread() { return screenSpread; }
It is my try to allow the effect just in more reduced or enlarged angle of the
camera around the light source.
Original comment by romankom...@gmail.com
on 11 Jan 2014 at 7:33
Btw copied from jME's about box
Product Version: jMonkeyEngine SDK 3.0
Java: 1.7.0_11; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_11-b21
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (jmonkeyplatform)
Original comment by romankom...@gmail.com
on 11 Jan 2014 at 7:46
Ah yes and this declaration was still missing.
protected Vector3f screenLightPos11 = new Vector3f(); // coord ranges: -1 -> 1, center = 0
Sorry for the mess. It's my first contribution.
Original comment by romankom...@gmail.com
on 11 Jan 2014 at 7:47
Btw. TestLightScattering from the jME3 samples shows this effect too, but it is
almost not recognizable because the skybox is an even blue.
From the sun you have to rotate the camera slowly diagonally towards top right.
The cloud disappearing towards the lower left corner of the viewport shows a
bit of color flickering.
With a dark skybox with star noise on it and a sun sphere, the bug effect
becomes extreme flashing to bright bluish and pinkish colors.
Original comment by romankom...@gmail.com
on 11 Jan 2014 at 7:53
Original issue reported on code.google.com by
romankom...@gmail.com
on 11 Jan 2014 at 7:15