Shaders’ Outpost

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

User avatar
Redspear
---- E L I T E ----
---- E L I T E ----
Posts: 2685
Joined: Thu Jun 20, 2013 10:22 pm
Location: On the moon Thought, orbiting the planet Ignorance.

Re: Shaders’ Outpost

Post by Redspear »

Griff wrote: Sun May 28, 2023 5:09 pm
re-upped the oxp
Thanks so much Griff. If you hadn't taken this on then I'd have gotten there eventually but it wouldn't have been anywhere near as good... Like a kid at Christmas :D

Griff wrote: Sun May 28, 2023 5:09 pm
Edit: forgot to mention - it's possible to change the wireframe glow colour if the ship suddenly goes hostile, the shader isn't doing that at the moment but it could be added in if you fancy the idea?
Oh yes please. Even with my 'rainbow' approach I ended up leaving the out red as being too much/confusing but that would be an excellent use of it.
User avatar
cbr
---- E L I T E ----
---- E L I T E ----
Posts: 1422
Joined: Thu Aug 27, 2015 4:24 pm

Re: Shaders’ Outpost

Post by cbr »

Image

Bit of name calling...
User avatar
Redspear
---- E L I T E ----
---- E L I T E ----
Posts: 2685
Joined: Thu Jun 20, 2013 10:22 pm
Location: On the moon Thought, orbiting the planet Ignorance.

Re: Shaders’ Outpost

Post by Redspear »

cbr wrote: Sun May 28, 2023 8:42 pm
Bit of name calling...
Looks really good.

At one stage I imagined the wireframe as an alternative to the targeting box but in some scenarios multiple ships just appear as shadows... black shadows .. in space... with beam lasers :lol:
User avatar
Griff
Oolite 2 Art Director
Oolite 2 Art Director
Posts: 2483
Joined: Fri Jul 14, 2006 12:29 pm
Location: Probably hugging his Air Fryer

Re: Shaders’ Outpost

Post by Griff »

re-upped a new version of the ox with a second version where the glow colour switches to red if the entity turns hostile
this needed a new shader uniform added in shipdata-overrides.plist and some changes in the fragment shader,the rest of the ocp is the same as before
fixed one of the rockhermit wireframe texture files, i thnk it was the dock one, the shipdata plist had a typo in the filename meaning oolite couldn't find the file
to remove the blinking effect from the red glow when hostile, edit line 145 in the fragment shader

change from..
WireGlowTemp = vec4(1.0, 0.1, 0.0, 1.0) * max(mod(uTime, 1.0), 0.5);

change to..
WireGlowTemp = vec4(1.0, 0.1, 0.0, 1.0);
User avatar
Redspear
---- E L I T E ----
---- E L I T E ----
Posts: 2685
Joined: Thu Jun 20, 2013 10:22 pm
Location: On the moon Thought, orbiting the planet Ignorance.

Re: Shaders’ Outpost

Post by Redspear »

Griff wrote: Tue May 30, 2023 2:08 pm
blinking effect from the red glow when hostile
All sounds great Griff! I'll give it a try, thanks! :D
User avatar
Redspear
---- E L I T E ----
---- E L I T E ----
Posts: 2685
Joined: Thu Jun 20, 2013 10:22 pm
Location: On the moon Thought, orbiting the planet Ignorance.

Re: Shaders’ Outpost

Post by Redspear »

Gave it a quick go. It works great and I like the blinking effect.

Griff, may all your scoops be platinum :)
Post Reply