Replacing Constores with Griff Trade outposts@Griff and Doc

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

Moderators: winston, another_commander

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

Post by Griff »

:oops: my ability to do sums is really, really poor :(
just for a bit of fun here's an adring shader featuring pacman & the ghosts
Image
hopefully it runs OK :) it's a 2 frame animated adring billboard for the trade outpost
http://www.box.net/shared/pj97snkjpo
Last edited by Griff on Sun Jan 11, 2009 4:25 pm, edited 1 time in total.
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

:lol: :lol:

As ever - nice one Griff!

Who cares if you can't do maths!
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
Pangloss
---- E L I T E ----
---- E L I T E ----
Posts: 303
Joined: Wed Dec 13, 2006 5:57 pm
Location: Scranton, PA (via Stevenage, Herts)

Post by Pangloss »

Griff wrote:
:oops: my ability to do sums is really, really poor :(
just for a bit of fun here's an adring shader featuring pacman & the ghosts
Image
hopefully it runs OK :) it's a 2 frame animated adring billboard for the trade outpost
http://www.box.net/shared/pj97snkjpo
Image

I did notice, by the way, that the shading of the station (and some of the shape) reminds me of the ships in the new Star Wars films...

Image

...which is an excellent nod to a great sci-fi saga!
"All is for the best in this best of all possible worlds..."
Dr.Pangloss, Voltaire's 'Candide'.

Image
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

Post by Griff »

:D @ the round of applause!
Yeah, i do like that starwars style of spaceships where you can see pipes and grime and stuff all over everything. The shape for the trade outpost actually came from a new headlight bulb i had to get for my car when the old one blew, it cost £15! yes, £15 for a bulb which i assume puts it up there with the bulbs used in lighthouses in terms of cost, i couldn't believe it was so expensive so i immortalised it in an oxp.
User avatar
wackyman465
---- E L I T E ----
---- E L I T E ----
Posts: 831
Joined: Thu Nov 06, 2008 10:15 pm
Location: Currently hunting you down in an Imperial Courier

Post by wackyman465 »

At least you didn't have to replace the entire headlight assembly.... :D

The clapping guy is actually kind of scary...
I shot him back first. That is to say, I read his mind and fired before he would have fired on me. No, sir, he wasn't a fugitive.
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

wackyman465 wrote:
The clapping guy is actually kind of scary...
Especially when reading War of the Worlds on the radio...
User avatar
Ark
---- E L I T E ----
---- E L I T E ----
Posts: 664
Joined: Sun Dec 09, 2007 8:22 am
Location: Athens Greece

Post by Ark »

Pangloss wrote:
OK, I finished the ads. It was like hard work. 8)

Don't know how you want them, Griff, so I did one set with a transparent background and one with a black background.

Image

Image
Well back to the ropic!!!
Now deferent constores have deferent color, ads, adrings and defenters and they look fantastic.
What we still want is deferent glow_ads and roofbilboards (drinking spaceman)

@pangloss & Griff
Question 1: Is the above glowad ready? Does griff has to do something more in that specific glowad :? .
Question 2: For the roff billboard i can see that there is also a model so i assume that in order to replace it we must also have a deferent model in every set. Am i right Griff?

@DaddyHoggy: The Tescoo defender finally does not look so bad in the game but if you want to improve it i have no objection :wink:

Time permiting we will see if we are going to change the adrings with the pixeled ones - very nice work Griff :D (i still have to see how i will intergrade Ahrumans shady billboards to the oxp :wink: )
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:

Post by Commander McLane »

Thargoid wrote:
wackyman465 wrote:
The clapping guy is actually kind of scary...
Especially when reading War of the Worlds on the radio...
I actually find that particular plot-line of 'Citizen Kane' scary enough without cross-referencing to other works of Orson Welles. Going to that absolute embarrassment for a woman who is so obviously not a singer...
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

Post by Griff »

those glow_ads look fantastic, i'll test this when i get home this evening but i think they might need a greyscale image in the alpha channel to control the glow amount or they might work anyway since the alpha channel gets filled with white by default so all the ads will glow at maximum - anyway i'll check this out and if the ad needs an alpha channel i'll sort it out and upload it to this thread.
edit: argh, no you're right - you will need different models - the no shader enabled version of the texture needs to match the texture file referenced in the .dat, or any commanders playing without shaders will only get the no shader drinking spaceman image (griff_no_shader_drinking_spaceman.png).
to fix this, make copies of the griff_station_roof_billboard.dat, open them in a text editor and do a search & replace on them. replace the text griff_no_shader_drinking_spaceman.png with whatever the file name for the new 'no shader' artwork is. see the example i give below (after the strike through text)



There shouldn't be any need for a different model for the roof billboard (the drinking spaceman one), it's just 4 polygons that make a double sided square, and works the same as the other animated billboards, as Ahruman points out below, use materials to specify then new texture to use on the billboard when shaders are off

eg, if i had an 8 frame dancing robot animation i wanted to use made up of 2 texture files (griff_dancing_robot_noshader.png & griff_dancing_robot.png), i'd use a shipdata.plist entry like this one:

Code: Select all

	"griff_station_roof_billboard_robo-disco" = 
	{
	ai_type = "nullAI.plist";
	model = "griff_station_roof_billboard.dat"; 
	roles = "griff_station_subent";
        
	materials = 
        { 
            // Swap out texture when shaders are off 
			"griff_no_shader_drinking_spaceman.png" = { diffuse_map = "griff_dancing_robot_noshader.png"; }; 
	    }; 
	
	shaders = 
   	    { 
        	"griff_no_shader_drinking_spaceman.png" = 
			{ 
            vertex_shader = "griff_station_animated.vertex"; 
            fragment_shader = "griff_station_animated_billboard.fragment"; 
            
            textures = ("griff_dancing_robot.png"); 
            uniforms = 
				{ 
				FrameCount = { type = "float"; value = 8.0; };
				TimePerFrame = { type = "float"; value = 3.7; };				
                uTime = "timeElapsedSinceSpawn"; 
				}; 
			}; 
		};	
	};
edit: sorry, there were a load of mistakes in the example, fixed them now though!
Last edited by Griff on Mon Jan 12, 2009 10:40 am, edited 5 times in total.
User avatar
Ark
---- E L I T E ----
---- E L I T E ----
Posts: 664
Joined: Sun Dec 09, 2007 8:22 am
Location: Athens Greece

Post by Ark »

A dancing robot monster!!! interesting :D
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Griff wrote:
edit: argh, no you're right - you will need different models - the no shader enabled version of the texture needs to match the texture file referenced in the .dat, or any commanders playing without shaders will only get the no shader drinking spaceman image (griff_no_shader_drinking_spaceman.png).
Eh? No it doesn’t.

Code: Select all

materials =
{
    // Swap out texture when shaders are off
    "griff_no_shader_drinking_spaceman.png" = { diffuse_map = "some_other_texture.png"; };
};
shaders =
{
    // Whatever…
};
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

Post by Griff »

oops, i totally forgot about materials! i've got to be the heaviest user of the strikethrough text button on these boards :)
edited my post above to include the materials settings in the example
User avatar
Ark
---- E L I T E ----
---- E L I T E ----
Posts: 664
Joined: Sun Dec 09, 2007 8:22 am
Location: Athens Greece

Post by Ark »

Yes this is better. Why should we have replicas of the same model with just deferent png entries inside them? and also far more flexible.
If only I had a 8 frame dancing robot monster :cry:
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

Post by Griff »

i'm working on one, same look as the drinking spaceman. 50's style boxy robot, hopefully i can pose it with a few of John Travoltas dance moves from Saturday Night Fever!
User avatar
Ark
---- E L I T E ----
---- E L I T E ----
Posts: 664
Joined: Sun Dec 09, 2007 8:22 am
Location: Athens Greece

Post by Ark »

Griff wrote:
i'm working on one, same look as the drinking spaceman. 50's style boxy robot, hopefully i can pose it with a few of John Travoltas dance moves from Saturday Night Fever!
Oh my god!!!!!
my eyes !! my eyes !!!! I am blind
Post Reply