roman_44 Posted March 19, 2016 Share Posted March 19, 2016 Hey Babylon citizens! Hope you all are doing pretty good I'm trying to use Babylon's createscreenshot function in order to get picture from scene at certain position of the camera. And my problem that when I'm using ColorCorrectionPostProcess my screenshot is just black. Without this line - OK. And when I'm also using ParticleSystem it is not shows up on my screenshot. Could it be any issue with that? Or it is just something wrong with my code? Cannot create any PlayGround example because my function uses color palette from file -> var postColorProcessHighContrast = new BABYLON.ColorCorrectionPostProcess('color_correction', 'effects/highcon.png', 1.0, camera, null, engine, true); Thank you for your help. Quote Link to comment Share on other sites More sharing options...
Wingnut Posted March 19, 2016 Share Posted March 19, 2016 Hi Roman... darned good to see you again! We hope you are doing well, too! Is your color palette in JS form? Can you use this nifty little jQuery script includer seen in this Pryme8 demo (...of his cool new add-on playground pulldown menu). *shrug* Maybe that will help you create a playground example of your issue. And, maybe not. Quote Link to comment Share on other sites More sharing options...
roman_44 Posted March 19, 2016 Author Share Posted March 19, 2016 My function gets picture - just png file in order to get some color correction. So it is not js. BTW is there any way to upload my file to playground, so I can use it in my function then and create my example? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 19, 2016 Share Posted March 19, 2016 you can save your picture to imgur for instance roman_44 1 Quote Link to comment Share on other sites More sharing options...
roman_44 Posted March 21, 2016 Author Share Posted March 21, 2016 On 3/19/2016 at 6:43 PM, Deltakosh said: you can save your picture to imgur for instance Hey Deltakosh - thanks one more time. I did not think about it, and I don't know why . But now I've got this issue! Appreciate your hint Take a look at it - http://www.babylonjs-playground.com/#1BGQCX#10 If you comment line 130 and click on one of the objects - screenshot will be fine. With this color correction line - it is black!!!! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 21, 2016 Share Posted March 21, 2016 Hum...I'm really sorry but this works for me even with line 130 uncommented. Someone else can test? Quote Link to comment Share on other sites More sharing options...
roman_44 Posted March 21, 2016 Author Share Posted March 21, 2016 Oh wow it seems to work for me right now.... super weird...... But it did not work yesterday... SUX... But on my app still the same issue, black screenshot. I will try to run my localhost server on windows machine today, maybe my mac has some issues. Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted March 22, 2016 Share Posted March 22, 2016 It works for me, with and without line 130. Quote Link to comment Share on other sites More sharing options...
roman_44 Posted March 24, 2016 Author Share Posted March 24, 2016 Hey folks, does someone know how to delete this postprocess from camera? I have this: var postProcessBW = new BABYLON.BlackAndWhitePostProcess('Black and White', 1.0, camera); And I need to stop this postprocess? How can I do it? Thanks Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 24, 2016 Share Posted March 24, 2016 Hey just call camera.detachPostProcess (https://github.com/BabylonJS/Babylon.js/blob/master/src/Cameras/babylon.camera.ts#L328) Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted March 25, 2016 Share Posted March 25, 2016 I noticed that using a custom postprocess deactivates the default AA. Is there a way to prevent that ? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 25, 2016 Share Posted March 25, 2016 nope this is a hard constraint of webgl (webgl2 will fix it) Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 25, 2016 Share Posted March 25, 2016 You can still add a fxaa postprocess to fix it Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted March 26, 2016 Share Posted March 26, 2016 Yep that's the way I'm currently doing it. But I find the AAF postprocess looks a bit different from default one, and I presume it takes more ressources. We'll wait for WebGL2 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 27, 2016 Share Posted March 27, 2016 Agree it is a bit different Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.