Skinner’s Den

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

Moderators: winston, another_commander

User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 13619
Joined: Sat Jul 04, 2009 9:31 pm
Location: Corke's Drift
Contact:

Re: Skinner’s Den

Post by Cody » Fri Oct 02, 2015 12:42 am

Those are Griff's Pythons from his shadered shipset - not the core set (I don't think the engine layout varies in the core set, but I could be wrong).

Fritz
---- E L I T E ----
---- E L I T E ----
Posts: 591
Joined: Sun Jul 12, 2015 2:30 pm
Location: Bavaria, Germany
Contact:

Re: Skinner’s Den

Post by Fritz » Fri Oct 02, 2015 12:56 am

You're wrong! :) I never had an older version of Oolite installed, so I can be quite sure about this. It normally doesn't matter of course, and I probably wouldn't have noticed, but you'll stumble over it if you're making new texture variants or "like_ships".
"You wouldn't kill me just for a few credits, would you?" – "No, I'll do it just for the fun!"

User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 13619
Joined: Sat Jul 04, 2009 9:31 pm
Location: Corke's Drift
Contact:

Re: Skinner’s Den

Post by Cody » Fri Oct 02, 2015 1:02 am

<nods> Having just checked, there are indeed two Python models in the current .dat list.

another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 5394
Joined: Wed Feb 28, 2007 7:54 am

Re: Skinner’s Den

Post by another_commander » Fri Oct 02, 2015 2:38 pm

Smivs wrote:[snip] These were originally made as an OXP for those wanting Griff's ships but who didn't have Shaders. So the default ships do not use Shaders.
This is not entirely correct. The default core shipset, although designed for low end machines which may not have shader capability, does use shaders if you set the detail level to Shaders Enabled or higher. The shader used in this case is the default oolite-default-shader.fragment, which adds very subtle lighting fx to whatever it gets applied to. You can see the effects much clearer if you edit oolite-default-shader.fragment and intensify the specular lighting for example, by multiplying the calculated specular intensity at line 163 by something like 3 or 4.

User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Disunited Kingdom
Contact:

Re: Skinner’s Den

Post by Smivs » Fri Oct 02, 2015 3:28 pm

I sit corrected (I'm too lazy to stand!). :)
Commander Smivs, the friendliest Gourd this side of Riedquat.

Fritz
---- E L I T E ----
---- E L I T E ----
Posts: 591
Joined: Sun Jul 12, 2015 2:30 pm
Location: Bavaria, Germany
Contact:

Re: Skinner’s Den

Post by Fritz » Thu Oct 29, 2015 5:50 pm

A little mystery...

The Anaconda model has a "Guns" sub-section. The texture for the guns is included in the main texture file, oolite_anaconda_diffuse.png, but in shipdata.plist the diffuse_map for the guns refers to oolite_anaconda_subents.png, the file that contains the engine parts. This seems like a simple typing error, but the strange thing is that it works fine, even if I change the textures (I can change the colour of the guns by changing oolite_anaconda_diffuse.png, so this file is definitely being used).

Why does this work? Is it intentional?
"You wouldn't kill me just for a few credits, would you?" – "No, I'll do it just for the fun!"

User avatar
CaptSolo
---- E L I T E ----
---- E L I T E ----
Posts: 888
Joined: Wed Feb 23, 2011 10:08 pm
Location: With Simona Barr, commander of the Nocturnal Maru.
Contact:

Re: Skinner’s Den

Post by CaptSolo » Fri Oct 30, 2015 12:20 am

Prior to Oolite 1.79 many of Griff's ships were rendered using more than one .dat file. The Anaconda had three: One for the main hull of the ship, one for the laser cannon, and one for the engines. This was done purely to expand the shader capabilities. It's really quite amazing. He created one model and often one texture after UV unwrapping it, then went back to the model and snipped parts away, thus creating the models for the gun and engine subentities. One texture file would often serve two models, which is the case with the Anaconda. At least this is my grasp of his technique. I could be wrong.

Fritz
---- E L I T E ----
---- E L I T E ----
Posts: 591
Joined: Sun Jul 12, 2015 2:30 pm
Location: Bavaria, Germany
Contact:

Re: Skinner’s Den

Post by Fritz » Sun Nov 01, 2015 12:28 pm

Hm, that would mean that the "Guns" entry in shipdata.plist is obsolete meanwhile. I removed it, but then I found that one little part - the central "Gun" - actually uses the subents texture. I had wondered already what this part of the texture is for, but I didn't notice because the colouring looked right even after my changes.

Half of the work involved in making new paint jobs is finding out which part of the texture belongs to which part of the ship!
"You wouldn't kill me just for a few credits, would you?" – "No, I'll do it just for the fun!"

Fritz
---- E L I T E ----
---- E L I T E ----
Posts: 591
Joined: Sun Jul 12, 2015 2:30 pm
Location: Bavaria, Germany
Contact:

Re: Skinner’s Den

Post by Fritz » Sat Nov 07, 2015 12:00 am

Is there any good reason why ship.commsMessage() does string expansion and player.commsMessage() doesn't? If you have eventually found out what the problem is, it's easy to fix using expandDescription(), but it seems kind of inconsistent...
"You wouldn't kill me just for a few credits, would you?" – "No, I'll do it just for the fun!"

Post Reply