Griff's normalmapped ship remakes
Moderators: winston, another_commander
- Cody
- 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
Answer me this someone please: have I been getting hit by two lasers, with twice the damage?
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!
And any survivors, their debts I will certainly pay. There's always a way!
- Commander McLane
- ---- 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
Yes. It's the same as with any intentional-multi-laser NPC. And the chance of being hit with both lasers (rather than one laser hitting and the other one missing) is of course much bigger as with a ship whose lasers are wide apart (like the Imperial Courier).El Viejo wrote:Answer me this someone please: have I been getting hit by two lasers, with twice the damage?
- Cody
- 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
Thanks McLane... I thought that the Gecko was hitting me rather hard... now I know why.
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!
And any survivors, their debts I will certainly pay. There's always a way!
- Griff
- Oolite 2 Art Director
- Posts: 2483
- Joined: Fri Jul 14, 2006 12:29 pm
- Location: Probably hugging his Air Fryer
Re: Griff's normalmapped ship remakes
Good find on the typo in the shipdata.plist El Viejo, i'll get that fixed in the next update
Fitting the lasers onto the ships as subentites is just so that they can have their own set of textures seperate from the textures used on the main hull of the ship
Fitting the lasers onto the ships as subentites is just so that they can have their own set of textures seperate from the textures used on the main hull of the ship
Wiki homepage for my OXP: http://wiki.alioth.net/index.php/Griff_Industries
- JensAyton
- Grand Admiral Emeritus
- Posts: 6657
- Joined: Sat Apr 02, 2005 2:43 pm
- Location: Sweden
- Contact:
Re: Griff's normalmapped ship remakes
This, in short, makes no sense.Griff wrote:Fitting the lasers onto the ships as subentites is just so that they can have their own set of textures seperate from the textures used on the main hull of the ship
Firstly, a given mesh can have up to eight materials. (The limit used to be seven, but as far as I’m aware multiple textures per mesh have always been supported; the Coriolis model in version 0.1 from 2004 uses several.)
Secondly, the laser itself isn’t textured, so it could still be attached to the base ship even with a subentity being used.
E-mail: [email protected]
- Griff
- Oolite 2 Art Director
- Posts: 2483
- Joined: Fri Jul 14, 2006 12:29 pm
- Location: Probably hugging his Air Fryer
Re: Griff's normalmapped ship remakes
i'm not sure i follow, are we talking about the 'beam of light' thing drawn by the game, or the model subentity it emits from? i could have sworn i couldn't get more than 4 textures loaded into a shader which meant that effects maps for the guns and stuff worked best on a seperate subentity with it's own shader, plus no point having them in a texture big enough to cover the main hull if they're just going to be used on some small sticking out bits, better to just have smaller resolution subentity textues
Wiki homepage for my OXP: http://wiki.alioth.net/index.php/Griff_Industries
- JensAyton
- Grand Admiral Emeritus
- Posts: 6657
- Joined: Sat Apr 02, 2005 2:43 pm
- Location: Sweden
- Contact:
Re: Griff's normalmapped ship remakes
You can have up to eight materials per ship. Each material has its own shaders and its own set of textures.Griff wrote:I could have sworn i couldn't get more than 4 textures loaded into a shader
E-mail: [email protected]
- Griff
- Oolite 2 Art Director
- Posts: 2483
- Joined: Fri Jul 14, 2006 12:29 pm
- Location: Probably hugging his Air Fryer
Re: Griff's normalmapped ship remakes
ah, i didn't know that. It's still only one material per 'polygon' though is it? we couldn't have say, diffuse & normal mapping in one material, then the specularity & glow maps in another material and add both materials to the same polygon?
edit: oo, and a third 'dirt' material that we can mix in with script magic
edit: oo, and a third 'dirt' material that we can mix in with script magic
Wiki homepage for my OXP: http://wiki.alioth.net/index.php/Griff_Industries
- Cody
- 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
Polygons, materials, textures... aarrgh!
<scratches head, and returns to pondering fighting Geckos with twin mil lasers... hmm>
<scratches head, and returns to pondering fighting Geckos with twin mil lasers... hmm>
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!
And any survivors, their debts I will certainly pay. There's always a way!
- JensAyton
- Grand Admiral Emeritus
- Posts: 6657
- Joined: Sat Apr 02, 2005 2:43 pm
- Location: Sweden
- Contact:
Re: Griff's normalmapped ship remakes
Yes.Griff wrote:ah, i didn't know that. It's still only one material per 'polygon' though is it?
No. That’s what custom shaders are for. :-)Griff wrote:we couldn't have say, diffuse & normal mapping in one material, then the specularity & glow maps in another material and add both materials to the same polygon?
(This has a reasonably close relationship to how rendering works at the hardware level. Allowing multiple materials per polygon would either require Oolite to rewrite the shaders, or to render each polygon more than once.)
E-mail: [email protected]
- Griff
- Oolite 2 Art Director
- Posts: 2483
- Joined: Fri Jul 14, 2006 12:29 pm
- Location: Probably hugging his Air Fryer
Re: Griff's normalmapped ship remakes
@Gimi - here's your decal mapped onto the pod, it's an excellent design but i think a bit too finely detailed at the moment, maybe the text and graphics need to be a bit bigger & bolder? You can take the text and graphics right to the edge of the 128x256 'canvas' it'll fit snugly onto the pod
Wiki homepage for my OXP: http://wiki.alioth.net/index.php/Griff_Industries
Re: Griff's normalmapped ship remakes
Thank you Griff. This was useful. I have messed up transparency on the original, so I'll have to redo the whole thing. (Not a bad thing, as I'm learning Gimp very fast at the moment). This will also mean changes to two other designs I'm working on.Griff wrote:@Gimi - here's your decal mapped onto the pod, it's an excellent design but i think a bit too fine at the moment, maybe the text and graphics need to be a bit bigger & bolder? You can take the text and graphics right to the edge of the 128x256 'canvas' it'll fit snugly onto the pod
I think the Hazard triangles came out very well though.
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
(Gold Medal Award, Zzap!64 May 1985).
- Smivs
- Retired Assassin
- Posts: 8408
- Joined: Tue Feb 09, 2010 11:31 am
- Location: Lost in space
- Contact:
Re: Griff's normalmapped ship remakes
Just a quick request for anyone using TG2 for Griff's....could you take a look at my post here in the TG2 thread as I have some weird laser things going on.
Commander Smivs, the friendliest Gourd this side of Riedquat.
- Griff
- Oolite 2 Art Director
- Posts: 2483
- Joined: Fri Jul 14, 2006 12:29 pm
- Location: Probably hugging his Air Fryer
Re: Griff's normalmapped ship remakes
Added a small companion oxp to the box net folder - "griff_shipset_player_flyable_NPC_ships_v1.0.zip"
edit: updated to v1.02 - changed the shader binding 'throwingSparks' to the proper 'damage' shader binding - ship lights now dim as energy levels drain
"An OXP for Oolite 1.75 and higher, adds player flyable versions of previously NPC only ships - Gecko, Krait, Mamba & Sidewinder"
Needs oolite 1.75 to work properly (makes use of the new 'hyperspace_motor' shipdata.plist key to ban these ships from being able to witchjump)
Ship pricing and equipment availability for the 4 new ships in this OXP hasn't had a lot of thought so if anyone has any ideas please let me know
edit: updated to v1.02 - changed the shader binding 'throwingSparks' to the proper 'damage' shader binding - ship lights now dim as energy levels drain
"An OXP for Oolite 1.75 and higher, adds player flyable versions of previously NPC only ships - Gecko, Krait, Mamba & Sidewinder"
Needs oolite 1.75 to work properly (makes use of the new 'hyperspace_motor' shipdata.plist key to ban these ships from being able to witchjump)
Ship pricing and equipment availability for the 4 new ships in this OXP hasn't had a lot of thought so if anyone has any ideas please let me know
Last edited by Griff on Sun Mar 20, 2011 10:22 pm, edited 1 time in total.
Wiki homepage for my OXP: http://wiki.alioth.net/index.php/Griff_Industries
Re: Griff's normalmapped ship remakes
*cough* so those aren't able to jump into witchspace? What use are they then?Griff wrote:Added a small companion oxp to the box net folder - "griff_shipset_player_flyable_NPC_ships_v1.0.zip"
"An OXP for Oolite 1.75 and higher, adds player flyable versions of previously NPC only ships - Gecko, Krait, Mamba & Sidewinder"
Needs oolite 1.75 to work properly (makes use of the new 'hyperspace_motor' shipdata.plist key to ban these ships from being able to witchjump)
Ship pricing and equipment availability for the 4 new ships in this OXP hasn't had a lot of thought so if anyone has any ideas please let me know