Randomfraff Posted April 7, 2014 Share Posted April 7, 2014 Hi all, Total newb asking a totally newbie question . Sorry if this has been asked, I did have a hunt on the forums and couldn't find anything. When I try and add post effects to my level (via root in the scene tab of the editor), the effect appears in my perspective viewport but when I run the game my post effects are not applied. Does anyone know how I can get the post effects to work in game? Thanks guys, got LE on Friday and I've been having a blast with it! Quote Link to comment Share on other sites More sharing options...
tjheldna Posted April 7, 2014 Share Posted April 7, 2014 Those are only for viewing inside the editor, you need to do call the cameras AddPostEffect("Shaders/Posteffects/greyscale.shader") function inside your code. Hope this helps! Quote Link to comment Share on other sites More sharing options...
YouGroove Posted April 7, 2014 Share Posted April 7, 2014 Before we could add some post effects just by combining them without coding and we have them when running the game ? It could be great to have post effects stored in the map file assome "default post effects" of the map without any coding, faster to test and fine tune effect, better workflow. For example i need bloom on my game, i just choose it on post effects, and it will be stored on the map and activated each time i load and run the map without coding it. (You don't need it on the map : remove it in the editor or cancel it by code if it must change during game) Quote Stop toying and make games Link to comment Share on other sites More sharing options...
tjheldna Posted April 7, 2014 Share Posted April 7, 2014 Wouldn't you want control of that kind of thing on a more global level in code? It would be much easier managing one line of code, as opposed to having to make sure that all your levels have the shader set, order, etc. You could create an ini file with all your settings that you read/write to. Quote Link to comment Share on other sites More sharing options...
Guppy Posted April 7, 2014 Share Posted April 7, 2014 Not to mention that some post processors may depend on game events (getting shot, gassed, driving really fast, etc ) 1 Quote System: Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k Link to comment Share on other sites More sharing options...
YouGroove Posted April 7, 2014 Share Posted April 7, 2014 I meaned general game post effect like Bloom or HDR. And each map can have it's own post effect, anyway, we can test post effect in editor this is already a good thing. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Randomfraff Posted April 7, 2014 Author Share Posted April 7, 2014 Yes!! Thanks! I spent hours trying to figure this out yesterday, I had in fact tried calling the function from inside my code before but I didn't specify the file path properly, the joys of coding eh? P.S. I checked out the beta video for Mage's Alchemy, looks really good! I have a niece that this type of game would be perfect for! Quote Link to comment Share on other sites More sharing options...
tjheldna Posted April 7, 2014 Share Posted April 7, 2014 I think that function is not documented, which reminds me to log a new report on that. Also thanks for the support, that's always nice to hear. This project is really pushing my limits in every aspect, feels like I have been working on it for ages. 1 Quote Link to comment Share on other sites More sharing options...
YouGroove Posted April 8, 2014 Share Posted April 8, 2014 Does someone know where is BLoom ? And will it be some DOF in the future ? Quote Stop toying and make games Link to comment Share on other sites More sharing options...
SlipperyBrick Posted April 18, 2014 Share Posted April 18, 2014 Yeah I've had problems adding post effects. Even when putting the camera line of code in my FPS player script it doesn't seem to show in the game. I get no errors when running though so it must be working, I just can't see a difference. I've tried this with bloom and some others, it's most prob me doing something wrong though lol. 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.