Griff's normalmapped ship remakes

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

Moderators: winston, another_commander

User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: Griff's normalmapped ship remakes

Post by Commander McLane »

Commander McLane wrote:
Griff wrote:
happily it looks like the mistake is just in the 'addition' version of the oxp,
I've got the replacement version and it's in there, too. I even remember that I noticed it when working on the shipdata. But I first thought it was perhaps a deliberate change and then forgot to report it.
El Viejo wrote:
Where exactly, please? I can't find the damn line!
Oops! Apparently I did correct it after all. It was wrong in the original shipdata, but is correct in my overhauled shipdata. So obviously I must have corrected it.

Sorry for misremembering. (And the entry in question is griff_normalmapped_viper_interceptor_engines_gun.)
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Griff's normalmapped ship remakes

Post by Cody »

Commander McLane wrote:
Oops! Apparently I did correct it after all. It was wrong in the original shipdata, but is correct in my overhauled shipdata. So obviously I must have corrected it.
Cool... I thought I was missing something (my brain).
Commander McLane wrote:
Sorry for misremembering. (And the entry in question is griff_normalmapped_viper_interceptor_engines_gun.)
Which in my shipdata.plist reads: "griff_normalmapped_viper_interceptor_engines_gun 0 0 0 1 0 0 0".
Further up in the plist I have: "forward_weapon_type" = "WEAPON_NONE";
Is that all correct?
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: Griff's normalmapped ship remakes

Post by Commander McLane »

El Viejo wrote:
Commander McLane wrote:
(And the entry in question is griff_normalmapped_viper_interceptor_engines_gun.)
Which in my shipdata.plist reads: "griff_normalmapped_viper_interceptor_engines_gun 0 0 0 1 0 0 0".
Further up in the plist I have: "forward_weapon_type" = "WEAPON_NONE";
Is that all correct?
Nope. What you're looking at is the subentities-key of the viper-interceptor entry. This points to the name of the entry which is to be used as a subentity (griff_normalmapped_viper_interceptor_engines_gun) together with the coordinates where this entry has to be put (0 0 0) and the orientation it has to be given (1 0 0 0). In order to find this entry you have to go up much further in the shipdata (at least if they're ordered alphabetically) and find the entry that looks like

Code: Select all

    "griff_normalmapped_viper_interceptor_engines_gun" =     {
        "ai_type" = "nullAI.plist";
        "forward_weapon_type" = "WEAPON_MILITARY_LASER";
        "laser_color" = magentaColor;
        materials =         {
            "griff_viper_interceptor_diffuse_map.png" =             {
                "diffuse_map" = "griff_viper_interceptor_diffuse_map.png";
                shininess = 9;
                "specular_color" =                 (
                    "0.6",
                    "0.5",
                    "0.5"
                );
            };
        };
        "max_energy" = 100;
        model = "griff_viper_interceptor_engine_guns.dat";
        name = "GalCop Viper";
        roles = "griff_normalmapped_viper_interceptor_subent";
        shaders =         {
            "griff_viper_interceptor_diffuse_map.png" =             {
                "fragment_shader" = "griff_viper_gunsengines.fragment";
                textures =                 (
                    "griff_viper_interceptor_diffuse_map.png",
                    "griff_viper_interceptor_normal_map.png",
                    "griff_viper_effects.png"
                );
                uniforms =                 {
                    "engine_power" = speedFactor;
                    "hull_heat_level" = hullHeatLevel;
                    "laser_heat_level" =                     {
                        bindToSubentity = 1;
                        binding = laserHeatLevel;
                    };
                    "nearly_dead" = throwingSparks;
                    uColorMap =                     {
                        type = texture;
                        value = 0;
                    };
                    uEffectsMap =                     {
                        type = texture;
                        value = 2;
                    };
                    uNormalMap =                     {
                        type = texture;
                        value = 1;
                    };
                    uTime = universalTime;
                };
                "vertex_shader" = "griff_normalmap_ships.vertex";
            };
        };
        smooth = 0;
        "weapon_position_forward" = "0.0 -0.15 35. 034";
    };
User avatar
Griff
Oolite 2 Art Director
Oolite 2 Art Director
Posts: 2479
Joined: Fri Jul 14, 2006 12:29 pm
Location: Probably hugging his Air Fryer

Re: Griff's normalmapped ship remakes

Post by Griff »

@EV, it's line 7715 in the addition oxp, don't worry about the "weapon_none" line - this is because the gun and the engines on the viper are actually a seperate subentity to the main hull of the ship

edit: Ninja'd
Last edited by Griff on Thu Apr 19, 2012 11:34 am, edited 1 time in total.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Griff's normalmapped ship remakes

Post by Cody »

<chuckles> I looked high and low for that entry... thanks, McLane.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Griff's normalmapped ship remakes

Post by Cody »

Griff wrote:
don't worry about the "weapon_none" line
I wasn't... from the pounding a couple of them gave me last night, I knew they had guns!
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Griff's normalmapped ship remakes

Post by Smivs »

El Viejo wrote:
... from the pounding a couple of them gave me last night, I knew they had guns!
<Smivs chuckles>
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Griff's normalmapped ship remakes

Post by Cody »

On the subject of Vipers in general... they really should have escape pods, with a special reward maybe.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
maik
Wiki Wizard
Wiki Wizard
Posts: 2026
Joined: Wed Mar 10, 2010 12:30 pm
Location: Ljubljana, Slovenia (mainly industrial, feudal, TL12)

Re: Griff's normalmapped ship remakes

Post by maik »

I'm just triaging through the posts to get the OXP List up to date--are the files now updated with this bug fix?
User avatar
Griff
Oolite 2 Art Director
Oolite 2 Art Director
Posts: 2479
Joined: Fri Jul 14, 2006 12:29 pm
Location: Probably hugging his Air Fryer

Re: Griff's normalmapped ship remakes

Post by Griff »

yes, it was just the 'addition' oxp that needed the update, it's now v1.01
User avatar
maik
Wiki Wizard
Wiki Wizard
Posts: 2026
Joined: Wed Mar 10, 2010 12:30 pm
Location: Ljubljana, Slovenia (mainly industrial, feudal, TL12)

Re: Griff's normalmapped ship remakes

Post by maik »

Great, thanks Griff.
NorthenderPNE
Deadly
Deadly
Posts: 132
Joined: Tue Jul 25, 2006 2:32 pm

Re: Griff's normalmapped ship remakes

Post by NorthenderPNE »

Hi Griff, i'm using the latest trunk 1.77.0.4891 and i'm getting this invisible texture issue. When i transfer the save over to version 1.76 and exit the same station the textures are present and correct. :?

Image
User avatar
Griff
Oolite 2 Art Director
Oolite 2 Art Director
Posts: 2479
Joined: Fri Jul 14, 2006 12:29 pm
Location: Probably hugging his Air Fryer

Re: Griff's normalmapped ship remakes

Post by Griff »

hmm, that missing texture is quite a large one - 2048x2048 pixels, i wonder if it's something to do with the work-in-progress shader sythesiser code that's part of the new features in trunk - there's a half size textures version of that station available in my folder in box that might work better, I'll have to grab a download of trunk from the nightlies, there's lots of exciting stuff going on in it as seen in various threads here on the forum
NorthenderPNE
Deadly
Deadly
Posts: 132
Joined: Tue Jul 25, 2006 2:32 pm

Re: Griff's normalmapped ship remakes

Post by NorthenderPNE »

there's a half size textures version of that station available in my folder in box that might work better
I probably should've been a little more descriptive Griff. I was using the half size tex, i've since downloaded the full size and it works a charm, so i'll stick with that. I'll leave that little issue with the half size with you. It's the least i can do.

I can't play oolite without your textures Griff, they're all a beauty to behold, a bit like yourself no doubt! :wink:
User avatar
Griff
Oolite 2 Art Director
Oolite 2 Art Director
Posts: 2479
Joined: Fri Jul 14, 2006 12:29 pm
Location: Probably hugging his Air Fryer

Re: Griff's normalmapped ship remakes

Post by Griff »

NorthenderPNE wrote:
...I can't play oolite without your textures Griff, they're all a beauty to behold, a bit like yourself no doubt! :wink:
Alas, i have a face like a sun baked trumble :(
Well, the odd half size texture thing might be something to do with them being re-scaled and saved in xnview, prehaps it did that interlace thing that some of the guys were chatting about the other day (something to do with interlacing and libpng), i'll grab a copy of the nightly build of trunk, put on my Miss Marple outfit and do some investigating
Post Reply