tipforeveryone Posted January 4, 2018 Share Posted January 4, 2018 I added "irisadjustment.lua" into the postprocess list, but I found no difference when play game. What did i miss ? Quote Link to comment Share on other sites More sharing options...
Josh Posted January 4, 2018 Share Posted January 4, 2018 How is your camera being created? Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
tipforeveryone Posted January 5, 2018 Author Share Posted January 5, 2018 camera = Camera:Create() camera:AddPostEffect("Shaders/PostEffects/irisadjusment.lua") I used code above for my custom FPSControl (built it from scratch), there is no difference but it works with Default FPSPlayer.pfb Quote Link to comment Share on other sites More sharing options...
tipforeveryone Posted January 6, 2018 Author Share Posted January 6, 2018 How can I make it work for my custom player control, I love this effect Quote Link to comment Share on other sites More sharing options...
Josh Posted January 6, 2018 Share Posted January 6, 2018 The above code should work correctly. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
tipforeveryone Posted January 6, 2018 Author Share Posted January 6, 2018 I don't think so. I have a small test with map 07-AI and Events I put irisadjusment.lua into Map Root Post Effects list, then Editor Viewport camera was applied irisadjusment.lua, it is ok for sure. Delete original FPSPlayer prefab and replace with a single camera, check "Use Post effect" in Camera Tab, start the game, it worked too Remove irisadjustment.lua from Map Root Post Effects list and create a new .lua file to attach to the camera function Script:Start() self.entity:AddPostEffect("Shaders/PostEffects/irisadjusment.lua") end and it does not work anymore. It seems only work if shader file is put into Post Effect list. This is weird. Quote Link to comment Share on other sites More sharing options...
macklebee Posted January 6, 2018 Share Posted January 6, 2018 1 hour ago, tipforeveryone said: I don't think so. I have a small test with map 07-AI and Events I put irisadjusment.lua into Map Root Post Effects list, then Editor Viewport camera was applied irisadjusment.lua, it is ok for sure. Delete original FPSPlayer prefab and replace with a single camera, check "Use Post effect" in Camera Tab, start the game, it worked too Remove irisadjustment.lua from Map Root Post Effects list and create a new .lua file to attach to the camera function Script:Start() self.entity:AddPostEffect("Shaders/PostEffects/irisadjusment.lua") end and it does not work anymore. It seems only work if shader file is put into Post Effect list. This is weird. You need to look at your output text in the script editor when you run the game - it tells you that the 'irisadjusment.lua' was not loaded. It did not load because that file doesn't exist. The file name is 'irisadjusTment.lua'. 1 Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
tipforeveryone Posted January 6, 2018 Author Share Posted January 6, 2018 OHHHHHHHHH MY BAD !! Wow, how clumsy I am. Thank you! 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.