Jump to content

Bloom Post fx causes my script to give errors


karmacomposer
 Share

Recommended Posts

If I add the following to my code:

 

 

fw.renderer.SetBloom(1)

 

Then I get a unhandled exception error: Failed to compile fragment shader object

 

The following does work fine (note the Bloom is commented out):

 

 

fw.renderer.SetAntialias(1)
'fw.renderer.SetBloom(1)
fw.renderer.SetGodRays(1)
fw.renderer.SetHDR(1)
fw.renderer.SetSSAO(1)
fw.renderer.SetWireFrame(0)

fw.renderer.SetFarDOF(1)
fw.renderer.SetFarDOFStrength(1)
fw.renderer.SetFarDOFRange(25, 100)
fw.renderer.SetSaturation(0.1)
fw.renderer.SetBrightness(0.5)
fw.renderer.SetContrast(1.5)

fw.renderer.SetDistanceFog(1)
fw.renderer.SetDistanceFogRange(0,10)
fw.renderer.SetDistanceFogColor(Vec4(1,1,1,1))
fw.renderer.SetDistanceFogAngle(0,45)

fw.renderer.SetWater(1)
fw.renderer.SetWaterHeight(-1.25)
fw.renderer.SetWaterColor(Vec4(0.75,0.75,0.75,1.0))
fw.renderer.SetReflectionElements(ENTITY_MESH+ENTITY_TERRAIN)
fw.renderer.SetWaterAmplitude(32.0)
fw.renderer.SetWaterWaveSpeed(2.0)
fw.renderer.SetWaterSoftness(1.0)

 

I updated Leadwerks using the LESDK utility and it updated many files including the shader.pak

 

I had downloaded a few of the user-created shaders (like lensflares and vignettes) and tried to combine that with the existing shader.pak and it did not work - so I replaced the edited one with the original shader.pak file that I had backed up. Ever since then I get this error. Even using the download utility did not fix it and I get these errors.

 

I do want to use Bloom.

 

This is being done in BlitzMax. Everything compiles just fine otherwise. I am using the 3rd person to FPS script that was graciously made available in the asset download area. I just made some additions.

 

What am I doing wrong or why is this happening?

 

Mike

MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 980 GTX with 16gb vram / SSD drives

MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1060 GTX with 8gb vram / SSD drives

Alienware Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1070 Ti with 16gb vram / SSD drives

My Patreon page: https://www.patreon.com/michaelfelkercomposer

My music for sale: https://www.tgcstore.net/category/513?format=all&perpage=30&textures=undefined&price=all&order=default&artists[]=87213

Custom synths and sounds - http://www.supersynths.com

Link to comment
Share on other sites

Works just fine here, so my suggestion is to use the LESDK utility to make a clean LE folder. So my guess is that you apparently still have an older modified shader pak somewhere...

 

OK. Will do.

 

Mike

MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 980 GTX with 16gb vram / SSD drives

MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1060 GTX with 8gb vram / SSD drives

Alienware Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1070 Ti with 16gb vram / SSD drives

My Patreon page: https://www.patreon.com/michaelfelkercomposer

My music for sale: https://www.tgcstore.net/category/513?format=all&perpage=30&textures=undefined&price=all&order=default&artists[]=87213

Custom synths and sounds - http://www.supersynths.com

Link to comment
Share on other sites

That worked well and I will try the easier code.

 

Thank you for your help.

 

Mike

MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 980 GTX with 16gb vram / SSD drives

MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1060 GTX with 8gb vram / SSD drives

Alienware Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1070 Ti with 16gb vram / SSD drives

My Patreon page: https://www.patreon.com/michaelfelkercomposer

My music for sale: https://www.tgcstore.net/category/513?format=all&perpage=30&textures=undefined&price=all&order=default&artists[]=87213

Custom synths and sounds - http://www.supersynths.com

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...