Page 2 of 5

Re: Released - the Cobra Mark III-XT

Posted: Sat Jul 23, 2011 7:43 pm
by CaptSolo
Updated ship OXP ready for testing. Download from link below. Readme file included for information and instructions. Please read! Thanks.

Link

Re: Released - the Cobra Mark III-XT

Posted: Fri Aug 05, 2011 7:19 pm
by CaptSolo
After much mucking about with normal maps and custom shaders I am finally finished with it. You can reade about it here

The niormal maps worked fine but not the custom shaders. So I took a different approach thanks to the work of those who are much better at this than I am. I employed in addition to the diffuse map a greyscale emission map (colour modulated) and an RGB illumination map, both which add some life to the otherwise dull grey hull colour. Download from link above or here.

Re: Released - the Cobra Mark III-XT

Posted: Sat Nov 12, 2011 7:11 pm
by CaptSolo
New Version with tweaked model and new skin job. Shaders from Griff for the effects you can see below. Released within the next day or two. Hey, can't compete with Griff, SimonB or Smivs, but modeling is fun and my stint at shipmaking is nearly over.

Image

Re: Released - the Cobra Mark III-XT

Posted: Sat Nov 12, 2011 7:19 pm
by DaddyHoggy
nice!

Re: Released - the Cobra Mark III-XT

Posted: Sat Nov 12, 2011 8:27 pm
by Captain Beatnik
Very stylish! Good work Captain Solo!

Re: Released - the Cobra Mark III-XT

Posted: Sat Nov 12, 2011 9:02 pm
by CommonSenseOTB
CaptSolo wrote:
...but modeling is fun and my stint at shipmaking is nearly over.
But you have real skill and your ships improve with every release. Let the fun continue. :D

Re: Released - the Cobra Mark III-XT

Posted: Sat Nov 12, 2011 11:27 pm
by Svengali
Yes. It's a real improvement. Good work!

Re: Released - the Cobra Mark III-XT

Posted: Sat Nov 19, 2011 10:25 pm
by CaptSolo
Thanks for the comments. New version is now available for download from my Box.net OXP page:
http://www.box.com/s/qgt0x0mbend20eb2i8rb

Background information for this OXP here:
http://wiki.alioth.net/index.php/Cobra_Mark_III-XT

Took longer than I stated earlier. I decided to add a custom ship role inspired by El Viejo's Green Gecko. Players who install this OXP may encounter this ship (5% chance) at the WP beacon. More information on the Wiki page regarding these "Black Knaves of Xecees".

This ship is an excellent upgrade from the standard Cobra 3, but then I am naturally biased and also because I have been commanding one for quite some time now.

Re: Released - the Cobra Mark III-XT

Posted: Sun Nov 20, 2011 12:01 am
by Cody
Tasty ship, the Black Knave variant... fights real hard. Nicely done, Solo!

Re: Released - the Cobra Mark III-XT

Posted: Mon Nov 21, 2011 6:51 pm
by Smivs
Hi Solo,
the link above is to your box account, not the download for the OXP. :wink:

Re: Released - the Cobra Mark III-XT

Posted: Mon Nov 21, 2011 7:59 pm
by Fatleaf
I have had a CTD when I tried it with the shaders off. Here is the log bit,


19:40:56.477 [rendering.opengl.shader.support]: Shaders are supported.
19:40:56.815 [shader.compile.failure]: ***** ERROR: GLSL fragment shader compilation failed for cobra3xt.fragment:
>>>>> GLSL log:
ERROR: 1:127: 'redGlow' : no matching overloaded function found - implicit conversion not allowed
ERROR: 1:129: 'cyanGlow' : no matching overloaded function found - implicit conversion not allowed
ERROR: 1:132: 'WeaponGlow' : no matching overloaded function found - implicit conversion not allowed
ERROR: 1:137: 'TemperatureGlow' : no matching overloaded function found - implicit conversion not allowed


19:40:56.815 [shader.load.failed]: ***** ERROR: Could not build shader cobra3xt.vertex/cobra3xt.fragment.
19:40:57.366 [rendering.opengl.shader.mode]: Shader mode set to SHADERS_OFF.

Hope it helps.
ImageHGTP

Re: Released - the Cobra Mark III-XT

Posted: Mon Nov 21, 2011 8:32 pm
by CaptSolo
URL changed to point to this OXP. Thanks Smivs.

Leafy, I tested shader effects on my wifes machine without problems so I am at a loss. I'll do so again and see if I can reproduce your results.

edit:
Was just browsing the fragment shader and the thought occurred perhaps diffuse texture is missing the alpha channel. Checking....

Re: Released - the Cobra Mark III-XT

Posted: Thu Nov 24, 2011 9:04 pm
by Griff
I haven't tested this, but I think you might be able to fix the shader error by putting

Code: Select all

#ifndef OO_REDUCED_COMPLEXITY
on line 125
and an

Code: Select all

#endif
on line 138 so the last few lines of the shader look like this (lines 113-140):

Code: Select all

#ifdef OO_LIGHT_0_FIX
   LIGHT(0, normalize(vLight0Vector));
#endif
   LIGHT(1, normalize(vLight1Vector)); // change the 0 to 1 when exporting back to oolite
   diffuse += gl_FrontMaterial.ambient * gl_LightSource[0].ambient;

// Calculate the lighting
   vec4 color = diffuse * colorMap;
// Add the specular highlights   
   color += specular * specIntensity;
// Add in the glowmap hullights
   color += lightMap;
#ifndef OO_REDUCED_COMPLEXITY    
// Add in the red heated metal glow around the exhaust. 
   color += redGlow(effectMap.b * Pulse(min(engine_power, 1.0), 1.0)); 
// Add in the cyan glow around the exhaust. 
   color += cyanGlow(effectMap.r * Pulse(min(engine_power, 1.0), 1.0)) * 2.0;
 
//Add in the laser firing gun barrel flash effect    
  color += WeaponGlow(effectMap.g * Pulse(min(laser_heat_level, 1.0), 1.0));

// Add the all over hull temperature glow. Full Shader mode only
   float hullHeat = max(hull_heat_level - 0.5, 0.0) * 2.0; 
   hullHeat = Pulse(hullHeat * hullHeat, 0.1); 
   color += TemperatureGlow(hullHeat); 
#endif   
   gl_FragColor = color;
}

Re: Released - the Cobra Mark III-XT

Posted: Sat Nov 26, 2011 3:01 am
by CaptSolo
I have been away the past week. Will implement your code additions Griff and test it. Many Thanks.

Re: Released - the Cobra Mark III-XT

Posted: Sat Nov 26, 2011 6:19 pm
by CaptSolo
I have implemented Griff's additions to the fragment shader and it tested okay with no errors in the log.

I have also corrected omissions and redundancies in shipdata.plist brought to light by Fatleaf. New download link:
http://www.box.com/s/0hp2o6i2pfnkupyd44ky

The link on the Wiki page has been changed as well. My apologies to anyone who downloaded the buggy version of this OXP. Do not hesitate to notify me of any other problems.