Page 32 of 32
Re: Shaders’ Outpost
Posted: Sun May 28, 2023 5:49 pm
by Redspear
Griff wrote: ↑Sun May 28, 2023 5:09 pm
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
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.
Re: Shaders’ Outpost
Posted: Sun May 28, 2023 8:42 pm
by cbr
Bit of name calling...
Re: Shaders’ Outpost
Posted: Mon May 29, 2023 4:10 pm
by Redspear
cbr wrote: ↑Sun May 28, 2023 8:42 pm
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
Re: Shaders’ Outpost
Posted: Tue May 30, 2023 2:08 pm
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);
Re: Shaders’ Outpost
Posted: Tue May 30, 2023 9:50 pm
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!
Re: Shaders’ Outpost
Posted: Fri Jun 02, 2023 6:40 pm
by Redspear
Gave it a quick go. It works great and I like the blinking effect.
Griff, may all your scoops be platinum