Page 1 of 2

Shiny Black Monks

Posted: Sun Jun 13, 2010 10:56 pm
by Zieman
Just installed 1.74 and found it very enjoyable.

One funny thing that happened though was that many shader utilising OXP stuff (especially Griff Constores in Your Ad Here OXP) suddenly became more colourful and got a couple extra kilowatts to their light generators.

Extreme example (specularity/emissions -related?) is Black Monk Gunship in Shady Blackmonks OXP (click the pic for better view):
Image

And this was right at the Witchspace exit point, the system's sun nowhere near...

Re: Shiny Black Monks

Posted: Sun Jun 13, 2010 11:09 pm
by DaddyHoggy
Zieman wrote:
Just installed 1.74 and found it very enjoyable.

One funny thing that happened though was that many shader utilising OXP stuff (especially Griff Constores in Your Ad Here OXP) suddenly became more colourful and got a couple extra kilowatts to their light generators.

Extreme example (specularity/emissions -related?) is Black Monk Gunship in Shady Blackmonks OXP (click the pic for better view):
Image

And this was right at the Witchspace exit point, the system's sun nowhere near...
I notice the gun sub-entity is unaffected, which might be a clue...

Posted: Mon Jun 14, 2010 8:30 am
by Griff
That appears to be some sort of .fragment shader related freak out in the oxp, i'll bet my hat it's my good friend gl_TexCoord[0] back to haunt me, let me just grab the oxp for a quick look through the shader and i'll get back to you

edit: hmm, well it's not gl_TexCoord[0] as that's also in the shaders for the ships wings and turret subentities and they're not glowing, so it might be something to do with the oxp using the old original method of listing textures in the shipdata.plist, it looks like it's getting it's wires crossed somewhere and using the wrong texture for the glowmap, it'll need a small rewrite of the shaders part in the shipdata.plist to sort, i'll have a bash at it now

Posted: Mon Jun 14, 2010 9:23 am
by Eric Walch
Griff wrote:
...it'll need a small rewrite of the shaders part in the shipdata.plist to sort, i'll have a bash at it now
It happened somewhere in the 1.74 development. Some old type shaders stopped working correctly.
I noticed this same change with the mining hopper of random hits. (Probably needs the same change)

But also the shader from freaky thargoids is no longer working as original. Instead of a radial pulsing colours, all colours now pulse simultaneously.
That shader is also used in some other thargoid containing oxp.s like thargon thread or second wave. With this shader it does not look wrong but is just not working as intended.

And I had an old version of griffs normal mapped coriolis station. That station misses the normal maps with 1.74. The shaders in the current version of griffs station works correct. Just look at your station and when it doesn't look as before you should upgrade.

Posted: Mon Jun 14, 2010 9:37 am
by another_commander
If the model is using shaders and there are references to tex0, tex1 etc., then the shipdata uniforms definition should be updated as indicated in the release notes:
The 1.74 release notes wrote:
Shaders no longer have implicit tex0, tex1 etc. uniforms. Easily fixed: uniforms = ( tex0 = { type = "texture"; value = 0; }, … );

Posted: Mon Jun 14, 2010 10:35 am
by Griff
Ok, i've updated this OXP, i've taken out the gl_TexCoord[0] thing, edited the shipdata.plist and the shaders to use properly named texture uniforms (no more tex0, tex1) etc and added in materials so that some effects are still available for no shader systems, for instance here's the monkbranch running on a pc with shaders set to off
Image
oo, nice and glowy, sorely tempted to do away with the shaders in this oxp altogether and just use materials, especially since the shaders still use that nasty light macro

i've updated the oxp, the link on the wiki is still correct but the oxp now requires at least version 1.74 of oolite (because of the new materials)

Posted: Mon Jun 14, 2010 1:50 pm
by JensAyton
Griff wrote:
i've updated the oxp, the link on the wiki is still correct but the oxp now requires at least version 1.74 of oolite (because of the new materials)
Um, no they don’t. :-) The emission maps will just be ignored in 1.73 and earlier. ’s called “graceful degradation”.

Posted: Mon Jun 14, 2010 2:02 pm
by Griff
oh, that's good to know, i wasn't sure if oolite would reject the plist or something when it saw the extract channel stuff in the materials settings, i'll set the requires.plist back to v1.71 for the oxp.

Ahruman, i've been using the example you gave in the progress thread as a template for these new materials setings, eg, here's what i've been adding to this oxp

Code: Select all

	materials = 
		{ 
			"griff_blackmonks_station_hull_diffuse.png" = 
			{ 
				diffuse_map = "griff_blackmonks_station_hull_diffuse.png"; 
				specular_map = { name = "griff_blackmonks_station_hull_diffuse.png"; extract_channel = "a"; }; 
				specular_color = ( 0.5630, 0.4389, 0.2180  );  // Applies when specular map is not used (no shaders) 
				shininess = 5; 
				emission_map  = "griff_blackmonks_station_hull_glow.png"; 
			}; 
		};
should i or shouldn't i have the the specular map specified, i'm confused as to whether i need to include it or not in the materials definitions

Code: Select all

specular_map = { name = "griff_blackmonks_station_hull_diffuse.png"; extract_channel = "a"; };
since the shader in the oxp is handling specular mapping for simple & full shader mode and it doesn't seem to have any effect when shaders are off, i should remove it shouldn't i? It's only going to be used if there were no shaders defined isn't it?

Posted: Mon Jun 14, 2010 2:13 pm
by JensAyton
Griff wrote:
since the shader in the oxp is handling specular mapping for simple & full shader mode and it doesn't seem to have any effect when shaders are off, i should remove it shouldn't i? It's only going to be used if there were no shaders defined isn't it?
Correct! Have some more pie.

Posted: Tue Jun 22, 2010 2:37 pm
by Fatleaf
Are you sure it just wasn't a ship from the "Bank Of The Pink nuns!"

Re: Shiny Black Monks

Posted: Sun Oct 31, 2010 2:46 am
by Switeck
DaddyHoggy wrote:
I notice the gun sub-entity is unaffected, which might be a clue...
BlackMonks.oxp\Models\gun.dat calls for guntex.PNG
...but that doesn't exist in BlackMonks.oxp\Textures
Instead there is a guntext.png

Re: Shiny Black Monks

Posted: Sun Oct 31, 2010 8:20 pm
by Commander McLane
Switeck wrote:
DaddyHoggy wrote:
I notice the gun sub-entity is unaffected, which might be a clue...
BlackMonks.oxp\Models\gun.dat calls for guntex.PNG
...but that doesn't exist in BlackMonks.oxp\Textures
Instead there is a guntext.png
So it's your choice which one to rename. :wink:

By the way, neither name is acceptable under the guidelines for unique file naming™. All filenames (and entity names) should be preceded by a unique identifier (preferable OXP name or scripter's name, or an abbreviation thereof). If LittleBear ever releases a new version of BlackMonks.oxp, that would be one ot the things to consider.

Re: Shiny Black Monks

Posted: Sun Oct 31, 2010 9:51 pm
by Eric Walch
Commander McLane wrote:
By the way, neither name is acceptable under the guidelines for unique file naming™. All filenames (and entity names) should be preceded by a unique identifier (preferable OXP name or scripter's name, or an abbreviation thereof). If LittleBear ever releases a new version of BlackMonks.oxp, that would be one ot the things to consider.
That name is still quite unique compared to "engines.png" and "cannon.png" that were part of the old black monks. There you almost have a guarantee for naming conflicts with other oxp's.

However, I have version 1.12 of the shady Black monks. That version no longer contains "guntex.PNG", so its already corrected. Just a pity that the wiki gives no clue about a version info. Its only the upload date that makes me think that its the same version as I have.

Re: Shiny Black Monks

Posted: Mon Nov 01, 2010 12:42 am
by Mauiby de Fug
Switeck wrote:
DaddyHoggy wrote:
I notice the gun sub-entity is unaffected, which might be a clue...
BlackMonks.oxp\Models\gun.dat calls for guntex.PNG
...but that doesn't exist in BlackMonks.oxp\Textures
Instead there is a guntext.png
Eric Walch wrote:
However, I have version 1.12 of the shady Black monks. That version no longer contains "guntex.PNG", so its already corrected. Just a pity that the wiki gives no clue about a version info. Its only the upload date that makes me think that its the same version as I have.
BlackMonks.oxp refers to the non-shady version, which is version 1.1 (the one on the wiki), and this problem hadn't been corrected. It also had various .png and .PNG case-sensitivity errors, many of which are documented in the forums, but have not been fixed in an uploaded version.

Shady_blackmonks.oxp is the one at version 1.12, in which I think these things had been sorted out. However, my computer couldn't handle the shaders, as I recall, or else there were other problems and I hadn't had quite so much experience in understanding oxps then. So I didn't spend too much time rooting around inside it.

I eventually took these out of my AddOns folder, as one didn't work with my comp, and the other required too much fixing for me to be bothered (I was only just getting started in discovering this fantastic game!), and I didn't use the Black Monks anyway - they were only in my game for ambiance. At some point I may have a bash at sorting them out, but I can't be bothered at the moment! There are too many other exciting oxps around!

Re: Shiny Black Monks

Posted: Sat Apr 02, 2011 5:02 am
by Switeck
There still some shader-related freakouts with Shady Black Monks and Oolite v1.75.2 trunk?
I'm getting this on it:

12:51:51.937 [shader.link.failure]: ***** ERROR: GLSL shader program linking failed for griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment:
>>>>> GLSL log:
Fragment shader uses varying v_pos but vertex shader does not write to it.
Fragment shader uses varying v_normal but vertex shader does not write to it.

12:51:51.953 [shader.load.fullModeFailed]: ----- WARNING: Could not build shader griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment in full complexity mode, trying simple mode.
12:51:51.953 [shader.link.failure]: ***** ERROR: GLSL shader program linking failed for griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment:
>>>>> GLSL log:
Fragment shader uses varying v_pos but vertex shader does not write to it.
Fragment shader uses varying v_normal but vertex shader does not write to it.

12:51:51.953 [shader.load.failed]: ***** ERROR: Could not build shader griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment.
12:51:51.968 [script.javaScript.willLoad]: About to load JavaScript Resources/Scripts/oolite-default-ship-script.js
12:51:51.968 [script.javaScript.load.success]: Loaded JavaScript: oolite-default-ship-script 1.75.2 -- Standard script for ships.
12:51:51.968 [shader.link.failure]: ***** ERROR: GLSL shader program linking failed for griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment:
>>>>> GLSL log:
Fragment shader uses varying v_pos but vertex shader does not write to it.
Fragment shader uses varying v_normal but vertex shader does not write to it.

12:51:51.968 [shader.load.fullModeFailed]: ----- WARNING: Could not build shader griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment in full complexity mode, trying simple mode.
12:51:51.984 [shader.link.failure]: ***** ERROR: GLSL shader program linking failed for griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment:
>>>>> GLSL log:
Fragment shader uses varying v_pos but vertex shader does not write to it.
Fragment shader uses varying v_normal but vertex shader does not write to it.

12:51:51.984 [shader.load.failed]: ***** ERROR: Could not build shader griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment.
12:51:51.984 [script.javaScript.willLoad]: About to load JavaScript Resources/Scripts/oolite-default-ship-script.js
12:51:51.984 [script.javaScript.load.success]: Loaded JavaScript: oolite-default-ship-script 1.75.2 -- Standard script for ships.
12:51:51.984 [shader.link.failure]: ***** ERROR: GLSL shader program linking failed for griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment:
>>>>> GLSL log:
Fragment shader uses varying v_pos but vertex shader does not write to it.
Fragment shader uses varying v_normal but vertex shader does not write to it.

12:51:51.984 [shader.load.fullModeFailed]: ----- WARNING: Could not build shader griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment in full complexity mode, trying simple mode.
12:51:52.000 [shader.link.failure]: ***** ERROR: GLSL shader program linking failed for griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment:
>>>>> GLSL log:
Fragment shader uses varying v_pos but vertex shader does not write to it.
Fragment shader uses varying v_normal but vertex shader does not write to it.

12:51:52.000 [shader.load.failed]: ***** ERROR: Could not build shader griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment.
12:51:52.000 [script.javaScript.willLoad]: About to load JavaScript Resources/Scripts/oolite-default-ship-script.js
12:51:52.000 [script.javaScript.load.success]: Loaded JavaScript: oolite-default-ship-script 1.75.2 -- Standard script for ships.
12:51:52.000 [shader.link.failure]: ***** ERROR: GLSL shader program linking failed for griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment:
>>>>> GLSL log:
Fragment shader uses varying v_pos but vertex shader does not write to it.
Fragment shader uses varying v_normal but vertex shader does not write to it.

12:51:52.000 [shader.load.fullModeFailed]: ----- WARNING: Could not build shader griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment in full complexity mode, trying simple mode.
12:51:52.015 [shader.link.failure]: ***** ERROR: GLSL shader program linking failed for griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment:
>>>>> GLSL log:
Fragment shader uses varying v_pos but vertex shader does not write to it.
Fragment shader uses varying v_normal but vertex shader does not write to it.

12:51:52.015 [shader.load.failed]: ***** ERROR: Could not build shader griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment.
12:51:52.015 [script.javaScript.willLoad]: About to load JavaScript Resources/Scripts/oolite-default-ship-script.js
12:51:52.015 [script.javaScript.load.success]: Loaded JavaScript: oolite-default-ship-script 1.75.2 -- Standard script for ships.
12:51:52.015 [shader.link.failure]: ***** ERROR: GLSL shader program linking failed for griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment:
>>>>> GLSL log:
Fragment shader uses varying v_pos but vertex shader does not write to it.
Fragment shader uses varying v_normal but vertex shader does not write to it.

12:51:52.015 [shader.load.fullModeFailed]: ----- WARNING: Could not build shader griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment in full complexity mode, trying simple mode.
12:51:52.031 [shader.link.failure]: ***** ERROR: GLSL shader program linking failed for griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment:
>>>>> GLSL log:
Fragment shader uses varying v_pos but vertex shader does not write to it.
Fragment shader uses varying v_normal but vertex shader does not write to it.

12:51:52.031 [shader.load.failed]: ***** ERROR: Could not build shader griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment.
12:51:52.031 [script.javaScript.willLoad]: About to load JavaScript Resources/Scripts/oolite-default-ship-script.js
12:51:52.031 [script.javaScript.load.success]: Loaded JavaScript: oolite-default-ship-script 1.75.2 -- Standard script for ships.
12:51:52.031 [shader.link.failure]: ***** ERROR: GLSL shader program linking failed for griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment:
>>>>> GLSL log:
Fragment shader uses varying v_pos but vertex shader does not write to it.
Fragment shader uses varying v_normal but vertex shader does not write to it.

12:51:52.031 [shader.load.fullModeFailed]: ----- WARNING: Could not build shader griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment in full complexity mode, trying simple mode.
12:51:52.046 [shader.link.failure]: ***** ERROR: GLSL shader program linking failed for griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment:
>>>>> GLSL log:
Fragment shader uses varying v_pos but vertex shader does not write to it.
Fragment shader uses varying v_normal but vertex shader does not write to it.

12:51:52.046 [shader.load.failed]: ***** ERROR: Could not build shader griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment.
12:51:52.046 [script.javaScript.willLoad]: About to load JavaScript Resources/Scripts/oolite-default-ship-script.js
12:51:52.046 [script.javaScript.load.success]: Loaded JavaScript: oolite-default-ship-script 1.75.2 -- Standard script for ships.
12:51:52.046 [shader.link.failure]: ***** ERROR: GLSL shader program linking failed for griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment:
>>>>> GLSL log:
Fragment shader uses varying v_pos but vertex shader does not write to it.
Fragment shader uses varying v_normal but vertex shader does not write to it.

12:51:52.046 [shader.load.fullModeFailed]: ----- WARNING: Could not build shader griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment in full complexity mode, trying simple mode.
12:51:52.062 [shader.link.failure]: ***** ERROR: GLSL shader program linking failed for griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment:
>>>>> GLSL log:
Fragment shader uses varying v_pos but vertex shader does not write to it.
Fragment shader uses varying v_normal but vertex shader does not write to it.

12:51:52.062 [shader.load.failed]: ***** ERROR: Could not build shader griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment.

12:51:52.062 [shader.link.failure]: ***** ERROR: GLSL shader program linking failed for griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment:
>>>>> GLSL log:
Fragment shader uses varying v_pos but vertex shader does not write to it.
Fragment shader uses varying v_normal but vertex shader does not write to it.

12:51:52.062 [shader.load.fullModeFailed]: ----- WARNING: Could not build shader griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment in full complexity mode, trying simple mode.
12:51:52.078 [shader.link.failure]: ***** ERROR: GLSL shader program linking failed for griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment:
>>>>> GLSL log:
Fragment shader uses varying v_pos but vertex shader does not write to it.
Fragment shader uses varying v_normal but vertex shader does not write to it.

12:51:52.078 [shader.load.failed]: ***** ERROR: Could not build shader griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment.
12:51:52.078 [script.javaScript.willLoad]: About to load JavaScript Resources/Scripts/oolite-default-ship-script.js
12:51:52.078 [script.javaScript.load.success]: Loaded JavaScript: oolite-default-ship-script 1.75.2 -- Standard script for ships.
12:51:52.078 [shader.link.failure]: ***** ERROR: GLSL shader program linking failed for griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment:
>>>>> GLSL log:
Fragment shader uses varying v_pos but vertex shader does not write to it.
Fragment shader uses varying v_normal but vertex shader does not write to it.

12:51:52.078 [shader.load.fullModeFailed]: ----- WARNING: Could not build shader griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment in full complexity mode, trying simple mode.
12:51:52.093 [shader.link.failure]: ***** ERROR: GLSL shader program linking failed for griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment:
>>>>> GLSL log:
Fragment shader uses varying v_pos but vertex shader does not write to it.
Fragment shader uses varying v_normal but vertex shader does not write to it.

12:51:52.093 [shader.load.failed]: ***** ERROR: Could not build shader griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment.

12:51:52.093 [shader.link.failure]: ***** ERROR: GLSL shader program linking failed for griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment:
>>>>> GLSL log:
Fragment shader uses varying v_pos but vertex shader does not write to it.
Fragment shader uses varying v_normal but vertex shader does not write to it.

12:51:52.093 [shader.load.fullModeFailed]: ----- WARNING: Could not build shader griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment in full complexity mode, trying simple mode.
12:51:52.093 [shader.link.failure]: ***** ERROR: GLSL shader program linking failed for griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment:
>>>>> GLSL log:
Fragment shader uses varying v_pos but vertex shader does not write to it.
Fragment shader uses varying v_normal but vertex shader does not write to it.

12:51:52.109 [shader.load.failed]: ***** ERROR: Could not build shader griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment.
12:51:52.109 [script.javaScript.willLoad]: About to load JavaScript Resources/Scripts/oolite-default-ship-script.js
12:51:52.109 [script.javaScript.load.success]: Loaded JavaScript: oolite-default-ship-script 1.75.2 -- Standard script for ships.
12:51:52.109 [shader.link.failure]: ***** ERROR: GLSL shader program linking failed for griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment:
>>>>> GLSL log:
Fragment shader uses varying v_pos but vertex shader does not write to it.
Fragment shader uses varying v_normal but vertex shader does not write to it.

12:51:52.109 [shader.load.fullModeFailed]: ----- WARNING: Could not build shader griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment in full complexity mode, trying simple mode.
12:51:52.109 [shader.link.failure]: ***** ERROR: GLSL shader program linking failed for griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment:
>>>>> GLSL log:
Fragment shader uses varying v_pos but vertex shader does not write to it.
Fragment shader uses varying v_normal but vertex shader does not write to it.

12:51:52.109 [shader.load.failed]: ***** ERROR: Could not build shader griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment.

12:51:52.125 [shader.link.failure]: ***** ERROR: GLSL shader program linking failed for griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment:
>>>>> GLSL log:
Fragment shader uses varying v_pos but vertex shader does not write to it.
Fragment shader uses varying v_normal but vertex shader does not write to it.

12:51:52.125 [shader.load.fullModeFailed]: ----- WARNING: Could not build shader griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment in full complexity mode, trying simple mode.
12:51:52.125 [shader.link.failure]: ***** ERROR: GLSL shader program linking failed for griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment:
>>>>> GLSL log:
Fragment shader uses varying v_pos but vertex shader does not write to it.
Fragment shader uses varying v_normal but vertex shader does not write to it.

12:51:52.125 [shader.load.failed]: ***** ERROR: Could not build shader griff_blackmonk_station_dockingbay.vertex/griff_all_blackmonk_turrets.fragment.