Re: Depth-Of-Field / Ambient Occlussion
Posted: Sun Dec 28, 2014 7:59 pm
I got it. It´s the old damn Parse3DScripts(). I hate it, nearly 50% of startissues are related to this.
There´s a difference between:
and
First code runs without Problems (Full code), second one generates an Ogre-error. This should be marked in the Documentation: "Don´t call Parse3DScripts() before you opened a Screen."
EDIT:
If anyone wants to see some Compositorpictures, just download this:
https://www.dropbox.com/s/xsxivnryj4km0 ... s.zip?dl=0
There´s a difference between:
Code: Select all
If OpenWindow(0, 0, 0, DesktopW, DesktopH, "Bloom : PRESS W to toggle the effect.")
If OpenWindowedScreen(WindowID(0), 0, 0, DesktopW, DesktopH, 0, 0, 0)
Add3DArchive("Programs", #PB_3DArchive_FileSystem)
Add3DArchive("Scripts", #PB_3DArchive_FileSystem)
Add3DArchive("Textures", #PB_3DArchive_FileSystem)
Parse3DScripts()Code: Select all
Parse3DScripts()
If OpenWindow(0, 0, 0, DesktopW, DesktopH, "Bloom : PRESS W to toggle the effect.")
If OpenWindowedScreen(WindowID(0), 0, 0, DesktopW, DesktopH, 0, 0, 0)
Add3DArchive("Programs", #PB_3DArchive_FileSystem)
Add3DArchive("Scripts", #PB_3DArchive_FileSystem)
Add3DArchive("Textures", #PB_3DArchive_FileSystem)
EDIT:
If anyone wants to see some Compositorpictures, just download this:
https://www.dropbox.com/s/xsxivnryj4km0 ... s.zip?dl=0