Show and Tell (new ships/ ships in progress)

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

Moderators: winston, another_commander

User avatar
MiMoriarty
Competent
Competent
Posts: 39
Joined: Mon Nov 14, 2011 1:03 pm
Location: Madrid, España
Contact:

Re: Show and Tell (new ships/ ships in progress)

Post by MiMoriarty »

Go for it. I probably don't like them much, because I couldn't figure them out.
Then, we are in the same, er...... spaceship :lol:

Anyway, I have to learn it before 22 Dec or forget it until the end of the world, which as a matter of fact would be that precise date. :shock:
There is an art, it says, or rather, a knack to flying. The knack lies in learning how to throw yourself at the ground and miss. … Clearly, it is this second part, the missing, which presents the difficulties.
Blog http://mimoriarty.wordpress.com/
User avatar
mandoman
---- E L I T E ----
---- E L I T E ----
Posts: 1385
Joined: Thu Apr 28, 2011 3:17 pm

Re: Show and Tell (new ships/ ships in progress)

Post by mandoman »

MiMoriarty wrote:
Then, we are in the same, er...... spaceship :lol:

Anyway, I have to learn it before 22 Dec or forget it until the end of the world, which as a matter of fact would be that precise date. :shock:
*************ROTFLMAO********** :lol:
Mandotech Industries Wiki Page.

http://wiki.alioth.net/index.php/User:Mandoman
User avatar
CommonSenseOTB
---- E L I T E ----
---- E L I T E ----
Posts: 1397
Joined: Wed May 04, 2011 10:42 am
Location: Saskatchewan, Canada

Re: Show and Tell (new ships/ ships in progress)

Post by CommonSenseOTB »

MiMoriarty wrote:
Go Anyway, I have to learn it before 22 Dec or forget it until the end of the world, which as a matter of fact would be that precise date. :shock:
It's the end of the world as we know it, and I feel fine. :lol:

http://youtu.be/AzqiPvGrkTo
Take an idea from one person and twist or modify it in a different way as a return suggestion so another person can see a part of it that can apply to the oxp they are working on.


CommonSense 'Outside-the-Box' Design Studios Ltd.
WIKI+OXPs
User avatar
mandoman
---- E L I T E ----
---- E L I T E ----
Posts: 1385
Joined: Thu Apr 28, 2011 3:17 pm

Re: Show and Tell (new ships/ ships in progress)

Post by mandoman »

CommonSenseOTB wrote:
It's the end of the world as we know it, and I feel fine. :lol:
After that, it should be the end of the world as we know it. Those guys all need a cat-scan. :mrgreen:
Mandotech Industries Wiki Page.

http://wiki.alioth.net/index.php/User:Mandoman
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Show and Tell (new ships/ ships in progress)

Post by Smivs »

SandJ wrote:

(Funnily enough, I was considering seeing if I could put together a Foord Capri as a spaceship earlier this week.)
Smivs likes Capri's :D

Image

She turns 30 in April, and has been part of my life for the last 27 years.
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
RyanHoots
---- E L I T E ----
---- E L I T E ----
Posts: 958
Joined: Fri May 20, 2011 8:10 pm
Location: Nowhere
Contact:

Re: Show and Tell (new ships/ ships in progress)

Post by RyanHoots »

Killer Wolf wrote:
"Shaders are over-rated."

matter of opinion. my ships like sht w/out them.
I think your ships look amazing even without shaders. Of course, because my machine can't run them, I have no point of comparison.
Image
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Re: Show and Tell (new ships/ ships in progress)

Post by DaddyHoggy »

Smivs wrote:
SandJ wrote:

(Funnily enough, I was considering seeing if I could put together a Foord Capri as a spaceship earlier this week.)
Smivs likes Capri's :D

Image

She turns 30 in April, and has been part of my life for the last 27 years.
My brother in law is currently restoring an early Mk1 - beige interior, vinyl roof, sort of odd not quite metallic brown exterior - lots of chrome - dynamo instead of an alternator...
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Show and Tell (new ships/ ships in progress)

Post by Smivs »

The Mk 1 was a real beauty. I had a 2L GT-XLR for four years before getting the Black Beasty.

Before that I had an Austin Maxi !
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
CaptSolo
---- E L I T E ----
---- E L I T E ----
Posts: 909
Joined: Wed Feb 23, 2011 10:08 pm
Location: Preying Manta
Contact:

Re: Show and Tell (new ships/ ships in progress)

Post by CaptSolo »

MiMoriarty wrote:
Go for it. I probably don't like them much, because I couldn't figure them out.
Then, we are in the same, er...... spaceship :lol:

Anyway, I have to learn it before 22 Dec or forget it until the end of the world, which as a matter of fact would be that precise date. :shock:
The important bit about shaders are:
1) Declaring the textures in the order wanted by the fragment shader
2) Creating the effects map with the correct RGB values

Study Griff's rocket shader example and his other OXP textures and you'll get the hang of it.
User avatar
mandoman
---- E L I T E ----
---- E L I T E ----
Posts: 1385
Joined: Thu Apr 28, 2011 3:17 pm

Re: Show and Tell (new ships/ ships in progress)

Post by mandoman »

CaptSolo wrote:
The important bit about shaders are:
1) Declaring the textures in the order wanted by the fragment shader
2) Creating the effects map with the correct RGB values

Study Griff's rocket shader example and his other OXP textures and you'll get the hang of it.
Okay...........what? :wink:
Mandotech Industries Wiki Page.

http://wiki.alioth.net/index.php/User:Mandoman
User avatar
mandoman
---- E L I T E ----
---- E L I T E ----
Posts: 1385
Joined: Thu Apr 28, 2011 3:17 pm

Re: Show and Tell (new ships/ ships in progress)

Post by mandoman »

See Mandotech Ind. Topic.
Last edited by mandoman on Mon Feb 20, 2012 5:25 am, edited 1 time in total.
Mandotech Industries Wiki Page.

http://wiki.alioth.net/index.php/User:Mandoman
User avatar
MiMoriarty
Competent
Competent
Posts: 39
Joined: Mon Nov 14, 2011 1:03 pm
Location: Madrid, España
Contact:

Re: Show and Tell (new ships/ ships in progress)

Post by MiMoriarty »

CaptSolo wrote:
The important bit about shaders are:
1) Declaring the textures in the order wanted by the fragment shader
2) Creating the effects map with the correct RGB values

Study Griff's rocket shader example and his other OXP textures and you'll get the hang of it.


Okay...........what?
:lol:

I've had a hard time with Griff examples and still i can't figure how to make them work. I have also tried to use a griff's Python shipdata.plist with my own models faking the textures and it still didn't work. I'm bewildered.

Maybe it has something to do with the 3D model itself. Should it be normal mapped for the shaders to work?... I don't understand the fragment vertex code because I'm not programer and this's my real problem.
There is an art, it says, or rather, a knack to flying. The knack lies in learning how to throw yourself at the ground and miss. … Clearly, it is this second part, the missing, which presents the difficulties.
Blog http://mimoriarty.wordpress.com/
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: Show and Tell (new ships/ ships in progress)

Post by Griff »

The Rocket shader example is really out of date now, the main reason it won't work is that doesn't automatically take care of assigning your textures uniform names in the shader, you need to specify them yourself in the shipdata.plist, eg:

Code: Select all

uniforms =
	{
	uColorMap = { type = texture; value = 0; };
	uNormalMap = { type = texture; value = 1; };
	uEffectsMap = { type = texture; value = 2; };
	uDecalMap = { type = texture; value = 3; };	
	}; 	
When the rocket shader example was written, oolite would automatically refer to textures as Tex0; Tex1; Tex2 etc and you didn't need to write anything out yourself
I can try and get the rocket shader example updated and working (although as seen in the post that DaddyHoggy linked to one page back) it uses 'Macros' to calculate lighting and Ahruman stongly advises us that we shouldn't do things this way anymore - all more recent shaders (eg the ones that support normal mapping) now calculate lighting using a 'Function'.
Also, nearly all the cool shader efects are available using Oolite's Materials ( http://wiki.alioth.net/index.php/Materials_in_Oolite) - no need for shaders, just a few lines in your shipdata.plist telling Oolite what textures to use for specularity, normal and glow maps etc

MiMoriarty, mandoman etc - if you're struggling with shaders and Materials won't do what you need just post a query in the 'Shaders Outpost' thread and somebody'll be able to help, i can pick apart the shaders in my shipset fairly well since i've been gawping at them for about 2 years so ships based on those we should be able to get working and soon enough you'll be writing out your own shader code!
User avatar
MiMoriarty
Competent
Competent
Posts: 39
Joined: Mon Nov 14, 2011 1:03 pm
Location: Madrid, España
Contact:

Re: Show and Tell (new ships/ ships in progress)

Post by MiMoriarty »

if you're struggling with shaders and Materials won't do what you need just post a query in the 'Shaders Outpost' thread and somebody'll be able to help
Done :!:
There is an art, it says, or rather, a knack to flying. The knack lies in learning how to throw yourself at the ground and miss. … Clearly, it is this second part, the missing, which presents the difficulties.
Blog http://mimoriarty.wordpress.com/
User avatar
CaptSolo
---- E L I T E ----
---- E L I T E ----
Posts: 909
Joined: Wed Feb 23, 2011 10:08 pm
Location: Preying Manta
Contact:

Re: Show and Tell (new ships/ ships in progress)

Post by CaptSolo »

MiMoriarty wrote:
CaptSolo wrote:
The important bit about shaders are:
1) Declaring the textures in the order wanted by the fragment shader
2) Creating the effects map with the correct RGB values

Study Griff's rocket shader example and his other OXP textures and you'll get the hang of it.


Okay...........what?
:lol:

I've had a hard time with Griff examples and still i can't figure how to make them work. I have also tried to use a griff's Python shipdata.plist with my own models faking the textures and it still didn't work. I'm bewildered.

Maybe it has something to do with the 3D model itself. Should it be normal mapped for the shaders to work?... I don't understand the fragment vertex code because I'm not programer and this's my real problem.
1) It has nothing to do with the 3D model
2) You don't need to bother with Griff's shader code and don't need to be a programmer.
3) It all hinges on how you make the effects map to get the glows from engine use, laser use and heated metal effect

As I understand it, the fragment shader reads the color channels from the effects texture to create glowing effects. The parts that are red are for the engines and produce a cyan glow, those that are green for the laser and produce a orange to red glow, and those that are blue for parts of your ship that glow because they are heated by the exhaust. Looking at Griff's Rocket Shader example in Shaders Outpost you can see parts of the fins glowing red because of contact with the exhaust plume.

The big question now is, "How in hell do I do that"? I can tell you briefly how I did it but Griff (and others) may have a better technique. All of my more recent models had engine nozzles, parts that stuck out the back from the engines, and laser cannons that protruded from the front and back. There's a funny story here about the lasers but will get to that later.
1) Open your diffuse texture in GIMP or whatever you use and save it to your Textures folder with a new filename (e.g. myship_effects.png)
2) Select the parts you want glowing effects, The engines, nozzles, and laser cannons if you have them. I use whatever selection tool is required but the important part is to set the selection mode to "ADD".
3) Once all parts selected, INVERSE the selection. This is important.
4) Set your foreground color to black (#000000).
5) Use the paint bucket tool or fill tool, set it to fill the entire selection, and fill to black.
Hard part done. Now all that remains are the parts you want glowing effects for. That is why we selected them and then inversed the selection so that only those parts remained. Now all you have to do is what GIMP calls, "Colorize".
1) Select the engines, similar to step 2 above. I like to use the Free Select tool and draw around the engines.
2) To eliminate the black I use what GIMP calls Fuzzy Select (or magic wand), set the threshold to zero and mode to subtract. Click on a black area to reduce the selection to just the engines.
3) Choose the colorize tool or whatever it's called in your graphics program. In GIMP it is under the colors menu.
4) Set the Hue to zero (red) and Saturation to maximum (100%). It is advisable to decrease the Lightness value but that depends on it's original values. Click OK to finish.
Repeat these steps for the laser and engine nozzles except for colorizing use these values:
Green: Hue=120
Blue: Hue=240
Like I said you may need to darken each area somewhat and save the finished texture. And if you want the shader files that I have used successfully just drop me a PM.

Griff likes to use a green gradient for his lasers and this is a good spot to tell you my story. I always wondered why Griff used subentities for his lasers and then one day I discovered why. I took my ship out for a test run and fired the forward laser. Yup, it works, as the laser went from grey to orange and finally red. Then I happened to be looking at the external view and noticed my aft laser was glowing as well but I had never fired it. :lol:
Post Reply