Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Bobboau on December 20, 2004, 06:45:07 pm

Title: for those of you wanting to make cockpits
Post by: Bobboau on December 20, 2004, 06:45:07 pm
this is the higherarchy I use, note that the interior geometry of the cockpit is in a seperate subobject, but the glass is simply glued to the main hull geometry resulting in it becomeing part of the main hull. also, important the glass must use a diferent texture than the rest of the hull, yes I said it has to use another texture, yes this will make it slower than it otherwise would be, no there is currently no way around this, it's a sacrafice you will have to make to get this effect.  after you convert go in PCS and make damned sure that the glass texture shows up _after_ the main hull texture(s)

the reasons why all this works is this, the render order of subobjects in FS is subobjects (and then child objects of these subobjects) in the order they are listed in the POF that are first childeren of the main hull one texture at a time, in the order they are listed in the pof, then the main hull one texture at a time in the order they are listed in the POF

now if you get the texture order right, then realy you could get away with havein the cockpit shareing a texture with the hull (wich would be ubber good), but the glass and main hull geometry must be seperate.


now if you wanted something that had fewer requierrments, like say a window on a capship, something were you would never ever have to worry avout seeing other parts of the outside of the ship through the glass, all you have to do is make sure that you gave the texture an alpha chanel and make all the interior geometry is in a seperate subobject.
Title: for those of you wanting to make cockpits
Post by: Bobboau on December 20, 2004, 06:53:25 pm
oh, and the glass is single sided on my herc cockpit, it's up to you on weather you want double sided or not.
Title: for those of you wanting to make cockpits
Post by: Taristin on December 20, 2004, 09:03:27 pm
Why must the glass be a seperate texture? Why can it not be mapped normally, and have the cocpit section of the texture have an alpha chanel to make it transparent?
Title: for those of you wanting to make cockpits
Post by: Swamp_Thing on December 20, 2004, 09:13:19 pm
Someone should stickify this thread. Now i know how to make those darn cockpits!! Thanks!!
Title: for those of you wanting to make cockpits
Post by: Bobboau on December 20, 2004, 10:11:54 pm
becase, the glass has to be rendered after everything else, the only way to do that is to have it in a seperate texture.
Title: for those of you wanting to make cockpits
Post by: Taristin on December 20, 2004, 10:31:49 pm
Then, perhaps this is why it failed for me...
Title: for those of you wanting to make cockpits
Post by: aldo_14 on December 21, 2004, 03:40:58 am
.
Title: for those of you wanting to make cockpits
Post by: Grimloq on December 21, 2004, 12:12:34 pm
if its rendered at the same time (ie same texture) i think then you cant see the rest of the ship through it... only other submodels.

am i close?
Title: for those of you wanting to make cockpits
Post by: Roanoke on December 21, 2004, 01:26:53 pm
hmm, I fancy having a go at this.
Title: for those of you wanting to make cockpits
Post by: stithe2000 on December 28, 2004, 05:33:41 pm
This opens a new can of worms! Thanx, this is going to be fun!!!
Title: for those of you wanting to make cockpits
Post by: Lightspeed on December 29, 2004, 09:43:47 am
STICKYFY!

Also, would someone rearrange Nico's perseus so that the glass is rendered properly?
Title: for those of you wanting to make cockpits
Post by: Grimloq on December 29, 2004, 03:37:11 pm
yeah... the perseus is the coolest ship. it needs to be fixored! :D