Griff's normalmapped ship remakes
Moderators: winston, another_commander
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Installed trunk v3046, added OXPs and save game, opened Oolite in default window, viewed demo shots, hit spacebar, went to F2, player options, altered volume, selected ‘play in fullscreen mode’, hit enter… screen froze, flashed around a bit, froze again, stayed black. Big jump in CPU usage. Crashed it with Alt F4.
Re-installed trunk… no problems now, I can’t recreate the problem, with or without OXPs.
Tried several times, no problems. False alarm… sorry.
edit: different Latest.log errors in trunk here, no decals, little paint.
Re-installed trunk… no problems now, I can’t recreate the problem, with or without OXPs.
Tried several times, no problems. False alarm… sorry.
edit: different Latest.log errors in trunk here, no decals, little paint.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
And any survivors, their debts I will certainly pay. There's always a way!
- Griff
- Oolite 2 Art Director
- Posts: 2483
- Joined: Fri Jul 14, 2006 12:29 pm
- Location: Probably hugging his Air Fryer
oops, there an error in the orbital shuttle config.plist, line 244
it's missing the full filename for the shader, that line should be
i'm not sure what all these errors are
maybe they'll go away by fixing the orbital shuttle plist?
i think a fix for the sidewinder errors in the 2nd log is to open the 4 fragment shaders in the oxp, and change line
to
the fix for this error
is to open the griff_tharglet_organic.fragment shader, go to line 141 and change glowmap to glowMap
( the m should be an M )
Code: Select all
fragment_shader = "griff_orbital_shuttle_r_channel_decals_constant_light_flicker";
Code: Select all
fragment_shader = "griff_orbital_shuttle_r_channel_decals_constant_light_flicker.fragment";
Code: Select all
Fragment shader(s) failed to link, vertex shader(s) failed to link.
ERROR: error(#277) Symbol 'gl_TexCoord[0]' usage doesn't match between two stages
ERROR: error(#277) Symbol 'gl_TexCoord[0]' usage doesn't match between two stages
i think a fix for the sidewinder errors in the 2nd log is to open the 4 fragment shaders in the oxp, and change line
Code: Select all
vec4 colorMap = texture2D(uColorMap, vTexCoord);
Code: Select all
vec3 colorMap = texture2D(uColorMap, vTexCoord).rgb;
Code: Select all
shader.compile.fragment.failure]: ***** GLSL fragment shader compilation failed for griff_tharglet_organic.fragment:
( the m should be an M )
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Applied fixes to 1.73.4… less error messages of this type…
… but still a few there, and oddly none of the usual…
The ships look real good, though.
Applied fixes to trunk v3046… no error messages at all apart from two of these…
… but the decals don’t appear to show and there is very little paintwork… the ships aren’t ‘tinny’ like before, there is texture but little colour. Also no flashing lights on cargo pod and escape capsule.
I’m a bit brain-dead now, so I’m going to leave trunk alone and take 1.73.4 out for a spin… for fun, not to test.
The Viper looks particularly tatsy… I don’t normally take on GalCops finest, but…
Code: Select all
Fragment shader(s) failed to link, vertex shader(s) failed to link.
ERROR: error(#277) Symbol 'gl_TexCoord[0]' usage doesn't match between two stages
ERROR: error(#277) Symbol 'gl_TexCoord[0]' usage doesn't match between two stages
Code: Select all
[shader.uniform.unpermittedMethod]: Did not bind uniform "alertlevel" to property -[ShipEntity alertCondition] - unpermitted method.
Applied fixes to trunk v3046… no error messages at all apart from two of these…
Code: Select all
[shader.uniform.unpermittedMethod]: Did not bind uniform "alertlevel" to property -[<OOWeakReference> alertCondition] - unpermitted method.
I’m a bit brain-dead now, so I’m going to leave trunk alone and take 1.73.4 out for a spin… for fun, not to test.
The Viper looks particularly tatsy… I don’t normally take on GalCops finest, but…
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
And any survivors, their debts I will certainly pay. There's always a way!
- Griff
- Oolite 2 Art Director
- Posts: 2483
- Joined: Fri Jul 14, 2006 12:29 pm
- Location: Probably hugging his Air Fryer
ah, i think this
might be coming from the griff_ferdelance_normalmapped.oxp, i just spotted a stray 'gl_TexCoord[0].st' i line 113 of the griff_ferdelance_mainhull.fragment (and line 116 in griff_ferdelance_player_mainhull.fragment). I'm not near a pc with oolite or rendermonkey at the moment so i can't test, but a fix might be to change (gl_TexCoord[0].st) to vTexCoord, so the whole line looks like this:
i think that might work, but i'm not entierly sure, that line is supposed to be tiling a very small bumpy normal map across the surface of the ship, it's job in the shader is to fake those tiny metallic flakes you get in expensive 2 tone car paint.
Code: Select all
ERROR: error(#277) Symbol 'gl_TexCoord[0]' usage doesn't match between two stages
Code: Select all
vec4 microfleckTex = texture2D(uMicrofleckmap, vTexCoord * 30.0);
- Diziet Sma
- ---- E L I T E ----
- Posts: 6312
- Joined: Mon Apr 06, 2009 12:20 pm
- Location: Aboard the Pitviper S.E. "Blackwidow"
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Just had a good cruise with the re-tweaked shipset.
No more error messages, apart from the usual:
All is well... and I'm feeling particularly pleased with myself.
Why?... because I just picked-off an incoming hardhead missile with my laser... that's a first for me.
The Free Mexican Air Force is flying tonight.
Many thanks, Griff.
No more error messages, apart from the usual:
Code: Select all
[shader.uniform.unpermittedMethod]: Did not bind uniform "alertlevel" to property -[ShipEntity alertCondition] - unpermitted method.
Why?... because I just picked-off an incoming hardhead missile with my laser... that's a first for me.
The Free Mexican Air Force is flying tonight.
Many thanks, Griff.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
And any survivors, their debts I will certainly pay. There's always a way!
- Griff
- Oolite 2 Art Director
- Posts: 2483
- Joined: Fri Jul 14, 2006 12:29 pm
- Location: Probably hugging his Air Fryer
Thanks for all your help squashing the bugs El Viejo!
If anyone needs to update their individual download oxps the buggy ones were the 'cobra MK 1' & 'Fer-de-lance' oxps (which both still had a stray gl_texcoord reference in their fragment shaders mucking things up), the 'Sidewinder' oxp had a bug in it's shader (where it tried to multiply a vec4 by a vec3 with hilarious consequences), the 'Organic Thargoid' shader had a typo in it (which stopped the glow effects working) and one of the 'Orbital Shuttles' had a mis-typed fragment shader reference in it's shipdata.plist which probably stopped it ever appearing in game.
If anyone needs to update their individual download oxps the buggy ones were the 'cobra MK 1' & 'Fer-de-lance' oxps (which both still had a stray gl_texcoord reference in their fragment shaders mucking things up), the 'Sidewinder' oxp had a bug in it's shader (where it tried to multiply a vec4 by a vec3 with hilarious consequences), the 'Organic Thargoid' shader had a typo in it (which stopped the glow effects working) and one of the 'Orbital Shuttles' had a mis-typed fragment shader reference in it's shipdata.plist which probably stopped it ever appearing in game.
- JensAyton
- Grand Admiral Emeritus
- Posts: 6657
- Joined: Sat Apr 02, 2005 2:43 pm
- Location: Sweden
- Contact:
I don’t think I ever provided a sufficiently clear explanation of this error, so I guess I might as well do it now.El Viejo wrote:Code: Select all
[shader.uniform.unpermittedMethod]: Did not bind uniform "alertlevel" to property -[ShipEntity alertCondition] - unpermitted method.
- alertCondition is a property that can only be bound to shaders on the player ship, because it’s the only ship which has an alert condition.
- Ergo, attempting to use it on a non-player ship generates the error.
- “Player-only” ships can be spawned as non-player ships in a number of cases: the demo screen, the shipyard screen, and when the player ejects. Only the first is avoidable.
- Implement all player bindable methods in a sensible way for non-players. Obviously the problem here is time.
- Implement all player bindable methods to return fixed values for non-players. The downside is that it wouldn’t be obvious when a player-only binding is being used for a non-player ship by mistake.
- Add a “proxy player ship” class used for the above-mentioned cases.
I’ll also be removing some bindable properties from the whitelist. While you can bind to planet_number, I can’t conceive of a reason you’d want to. Some properties (which I don’t think have ever been used) will also be renamed.
E-mail: [email protected]
- Commander McLane
- ---- E L I T E ----
- Posts: 9520
- Joined: Thu Dec 14, 2006 9:08 am
- Location: a Hacker Outpost in a moderately remote area
- Contact:
So far Griff has employed another solution: In case of NPCs he hasn't used alertlevel at all, but isHostile = hasHostileTarget) instead.
- JensAyton
- Grand Admiral Emeritus
- Posts: 6657
- Joined: Sat Apr 02, 2005 2:43 pm
- Location: Sweden
- Contact:
As of r3053, the new proxy ship is used for the doppelganger created when using an escape pod. I went one better than I planned and copied all the bindable values to the new ship (although some should update and don’t , such as shield levels). The whitelist has also been revised.
Edit: …and in r3054, PlayerProxyEntity is now used in the demo screen (for non-carriers), the shipyard screen and the saved game browser.
Edit: …and in r3054, PlayerProxyEntity is now used in the demo screen (for non-carriers), the shipyard screen and the saved game browser.
E-mail: [email protected]
- Diziet Sma
- ---- E L I T E ----
- Posts: 6312
- Joined: Mon Apr 06, 2009 12:20 pm
- Location: Aboard the Pitviper S.E. "Blackwidow"
Some minor shader bugfixes for the latest all-in-one.oxp have now been uploaded to the Dizzy's site.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
- JazHaz
- ---- E L I T E ----
- Posts: 2991
- Joined: Tue Sep 22, 2009 11:07 am
- Location: Enfield, Middlesex
- Contact:
What is the current model for the Griff Shuttle?
Got a feeling that this image is out of date:
Got a feeling that this image is out of date:
JazHaz
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!Gimi wrote:Maybe you could start a Kickstarter Campaign to found your £4500 pledge.drew wrote:£4,500 though! <Faints>
Cheers,
Drew.
- Griff
- Oolite 2 Art Director
- Posts: 2483
- Joined: Fri Jul 14, 2006 12:29 pm
- Location: Probably hugging his Air Fryer
that texture and model do appear in the game, but there's also a more beaten up texture as well, it's basically that texture but with extra brown blobs on it, and some 'dents' in the normal map i don't think i took a screenshot, but i can certainly grab one from rendermonkey and upload it this evening.
actually thinking about it, you might mean the 'worm' remake, that did indeed get changed to another model that was originally a remake of the 'escape pod', it got switched to the 'worm' because the original 'griff worm' wasn't very good, i don't think there are any screen shots of this either, i'll upload one this evening
edit: updated the shuttle & worm photos on page 1
actually thinking about it, you might mean the 'worm' remake, that did indeed get changed to another model that was originally a remake of the 'escape pod', it got switched to the 'worm' because the original 'griff worm' wasn't very good, i don't think there are any screen shots of this either, i'll upload one this evening
edit: updated the shuttle & worm photos on page 1