any screenshot?CaptKev wrote:You're right Griff, I'm not sure if I ever made it available for download. Here's the link http://download.marlinsoftware.co.uk/Oo ... ations.zipGriff wrote:I was thinking, hasn't captkev made a shiny dodo station? i remember a few screenshots being posted, it looked loverly, it had a aztec symbol on one of the sides i think?
Shaders’ Outpost
Moderators: winston, another_commander
Here's the one from the screenshots thread (doesn't look very good compared to stations with normal-maps)aceshigh wrote:any screenshot?CaptKev wrote:You're right Griff, I'm not sure if I ever made it available for download. Here's the link http://download.marlinsoftware.co.uk/Oo ... ations.zipGriff wrote:I was thinking, hasn't captkev made a shiny dodo station? i remember a few screenshots being posted, it looked loverly, it had a aztec symbol on one of the sides i think?
Download Fighter HUD, Stingray and System Redux from the EliteWiki
- DaddyHoggy
- Intergalactic Spam Assassin
- Posts: 8515
- Joined: Tue Dec 05, 2006 9:43 pm
- Location: Newbury, UK
- Contact:
Looks pretty cool to me!
Is it normal-mappable? Give it some xtra pizazz for post-1.73 release?
Is it normal-mappable? Give it some xtra pizazz for post-1.73 release?
Oolite Life is now revealed hereSelezen wrote:Apparently I was having a DaddyHoggy moment.
- Griff
- Oolite 2 Art Director
- Posts: 2481
- Joined: Fri Jul 14, 2006 12:29 pm
- Location: Probably hugging his Air Fryer
That would look ace normal-mapped, you just need to make a greyscale texture, with white areas being 'bumps' on the surface of the model and dark areas being 'dips' on the surface and bung it through the photoshop or the gimp normalmap generating plugins (which are free to download & use!), you'll end up with one of those odd looking lilac normal maps ready for use.
Ahruman has written all the necessary shaders for us, and i've copied & pasted his code into a bumpmapped coriolis oxp i few pages back in this thread (i think) so you could just start with that oxp and swap out the textures & models for your dodo
As an example of the greyscale image used as a source for the normalmap generating plugin, here's a screen shot from a bump-maped viper oxp i made:
You could probably get a good greyscale image for the plugin by desaturating your colour map and running a few image filters on it, just to simplify it a bit because if the original image is too noisy the bump map ends up quite crinkly and the ship will look like it's made of rough paper or something
Ahruman has written all the necessary shaders for us, and i've copied & pasted his code into a bumpmapped coriolis oxp i few pages back in this thread (i think) so you could just start with that oxp and swap out the textures & models for your dodo
As an example of the greyscale image used as a source for the normalmap generating plugin, here's a screen shot from a bump-maped viper oxp i made:
You could probably get a good greyscale image for the plugin by desaturating your colour map and running a few image filters on it, just to simplify it a bit because if the original image is too noisy the bump map ends up quite crinkly and the ship will look like it's made of rough paper or something
Last edited by Griff on Wed Mar 18, 2009 4:00 pm, edited 1 time in total.
- pagroove
- ---- E L I T E ----
- Posts: 3035
- Joined: Wed Feb 21, 2007 11:52 pm
- Location: On a famous planet
@ Griff,
We should update the P.A. Groove Stations OXP with normal mapped stations
We should update the P.A. Groove Stations OXP with normal mapped stations
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
https://bb.oolite.space/viewtopic.php?f=4&t=13709
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
https://bb.oolite.space/viewtopic.php?f=4&t=13709
- DaddyHoggy
- Intergalactic Spam Assassin
- Posts: 8515
- Joined: Tue Dec 05, 2006 9:43 pm
- Location: Newbury, UK
- Contact:
Getting there indeed - but yes, a bit crinkly still. Very much looking forward to the finished article.
Oolite Life is now revealed hereSelezen wrote:Apparently I was having a DaddyHoggy moment.
- Griff
- Oolite 2 Art Director
- Posts: 2481
- Joined: Fri Jul 14, 2006 12:29 pm
- Location: Probably hugging his Air Fryer
Looking really good Captkev!
The lampcolor line (line 12 in the shader):
will just change what colour the 'window' lights on the hull are, i think the brownish tinge is coming from this line (line 50 in the shader):
you could remove the colorMap * 5.0 bit from it so it reads like this
That will stop the specular highlight colour being tinted by the colour of the texturemap and only be coloured by the light from the system sun.
you might want to tweak these lines too (lines 9 & 10 in the shader):
the kSpecExponent value controls the size of the highlight and kSpecular controls the highlight strengthm try a smaller number for kSpecular (maybe 0.3) and a bigger value for kSpecExponent (maybe 4.0)
edit: oh, i didn't notice that new screenshot - it looks like you've got it sorted! really lovely stuff!
The lampcolor line (line 12 in the shader):
Code: Select all
vec4 LampColor = vec4(1.0, 0.9219, 0.6436, 1.0);
Code: Select all
color += colorMap * 5.0 * specular * kSpecular;
Code: Select all
color += specular * kSpecular;
you might want to tweak these lines too (lines 9 & 10 in the shader):
Code: Select all
const float kSpecExponent = 2.0;
const float kSpecular = 0.8;
edit: oh, i didn't notice that new screenshot - it looks like you've got it sorted! really lovely stuff!
Thanks again Griff.Griff wrote:Looking really good Captkev!
The lampcolor line (line 12 in the shader):will just change what colour the 'window' lights on the hull are, i think the brownish tinge is coming from this line (line 50 in the shader):Code: Select all
vec4 LampColor = vec4(1.0, 0.9219, 0.6436, 1.0);
you could remove the colorMap * 5.0 bit from it so it reads like thisCode: Select all
color += colorMap * 5.0 * specular * kSpecular;
That will stop the specular highlight colour being tinted by the colour of the texturemap and only be coloured by the light from the system sun.Code: Select all
color += specular * kSpecular;
you might want to tweak these lines too (lines 9 & 10 in the shader):the kSpecExponent value controls the size of the highlight and kSpecular controls the highlight strengthm try a smaller number for kSpecular (maybe 0.3) and a bigger value for kSpecExponent (maybe 4.0)Code: Select all
const float kSpecExponent = 2.0; const float kSpecular = 0.8;
edit: oh, i didn't notice that new screenshot - it looks like you've got it sorted! really lovely stuff!
I've managed to get it looking a little bit better by only multiplying the ColorMap by 3 times and reducing the redness in the texture a wee bit.
Download Fighter HUD, Stingray and System Redux from the EliteWiki
- DaddyHoggy
- Intergalactic Spam Assassin
- Posts: 8515
- Joined: Tue Dec 05, 2006 9:43 pm
- Location: Newbury, UK
- Contact:
Looking very good indeed - Oh - can't wait for v1.73 and all these normal textured wonders!
Oolite Life is now revealed hereSelezen wrote:Apparently I was having a DaddyHoggy moment.
WoW! what time blood tears and toil can bring :)
Hi to all, its been a year or more since i last spent sleepness nights programming n ship building here, so hi to all the names i remember, and its really good to see so many names new to me My son plays oolite (at least i introduced him to something positve lol) and apart from wanting me to update the customsounds oxp he wants me to make him his own ship, looking at Griffs work has been amazing, the specular mapping and use of shaders is just brilliant, normal textures were easy, but i'd never got to grips with alpha channels n things, this is the bit where im kneeling and whimpering in a "im not worthy but please teach me" kinda way would anyone be able to take it upon themselves to write a tutorial (if we need an idiot to stand up for the need for an idiots guide, im the one waving his hand in the air) that explains how to create the different channels of the texture, and how the shaders work. Ive read pretty much every post since i was last about (hence the pile of ironing and jobs todo list growing) and cant find anywehere which explains these things. Most probably not the best place to put this begging letter, but hoping someone can help fulfill a kids ambition (and then i'll let my son know )
The improvements have been fantastic, and its really good to see so many people keeping this so very much alive!!
The improvements have been fantastic, and its really good to see so many people keeping this so very much alive!!