Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: ShadowWolf_IH on March 19, 2013, 05:14:42 pm

Title: Welllllll crap.
Post by: ShadowWolf_IH on March 19, 2013, 05:14:42 pm
I've been fighting with this for a week.

ok my heirarchy is set as follows:

detail0
>>fix (surrounds the submodel "pilot")
>>glass
>>pilot

with the glass offset, fix looks fine.....

(http://casofwar.hard-light.net/images/help.png)

but with the glass in place....fix is gone.  help.  Oh yeah,, it looks fine in pcs2.

(http://casofwar.hard-light.net/images/helpme.png)
Title: Re: Welllllll crap.
Post by: MatthTheGeek on March 19, 2013, 05:19:26 pm
What about ingame ? I am not exactly sure what you see in FRED is what you get ingame.
Title: Re: Welllllll crap.
Post by: Shivan Hunter on March 19, 2013, 05:56:23 pm
A random guess from an uninformed n∅∅b:

The problem is that "pilot" is rendering and "fix" is not, when both are occluded by the glass? I'd try moving "fix" below "glass", so your hierarchy is:

detail0
>> glass
>> fix
>> pilot

My reasoning is that the one submodel that renders correctly comes after "glass" in the hierarchy. I remember FS has some odd issues with transparent stuff and this may be one of them.

[edit] I'm pretty sure the ingame render code is at least very similar (if not identical) to the FRED render code, but I'd check just in case.
Title: Re: Welllllll crap.
Post by: ShadowWolf_IH on March 19, 2013, 06:10:04 pm
no change in game.  Still looks like crap.

however......I saw this after the post:

A random guess from an uninformed n∅∅b:

The problem is that "pilot" is rendering and "fix" is not, when both are occluded by the glass? I'd try moving "fix" below "glass", so your hierarchy is:

detail0
>> glass
>> fix
>> pilot

My reasoning is that the one submodel that renders correctly comes after "glass" in the hierarchy. I remember FS has some odd issues with transparent stuff and this may be one of them.

[edit] I'm pretty sure the ingame render code is at least very similar (if not identical) to the FRED render code, but I'd check just in case.

the only way I could do it was to make fix a submodel of pilot.

detail0
>>glass
>>pilot
>>>>fix

works fine in fred now.  Game as well.  Good call and thanx for the help.
Title: Re: Welllllll crap.
Post by: mjn.mixael on March 19, 2013, 08:11:22 pm
You know.. if you'd been keeping up with me over IRC, you would have never had this issue! A -trans texture is made exactly for this case.
Title: Re: Welllllll crap.
Post by: ShadowWolf_IH on March 20, 2013, 03:14:36 am
point taken.  but i did ask in irc a few days ago.  you just weren't there at the time.
Title: Re: Welllllll crap.
Post by: Eiswolf on March 22, 2013, 01:02:44 am
Oh... I know what the Problem is.

You name the Cockpitglas in Blender Hirachi Cockpit-Glas what you see stand in Herachie after Glas and what you don´t see stand in Herachie before Glas.

Set the Name of Cockpitglas in Hirachie Cockpit-Aglas so they stand at First in Herachie and you will see perfectly your Cockpit.
I have the same Problem :) and so was my Solution.
All what you will see must stand after the Transparent Geometry in Blender Hirachie
Title: Re: Welllllll crap.
Post by: Droid803 on March 22, 2013, 01:38:39 am
Errr...what.

Glass-trans, problem solved.
Title: Re: Welllllll crap.
Post by: The E on March 22, 2013, 02:20:52 am
Oh... I know what the Problem is.

You name the Cockpitglas in Blender Hirachi Cockpit-Glas what you see stand in Herachie after Glas and what you don´t see stand in Herachie before Glas.

Set the Name of Cockpitglas in Hirachie Cockpit-Aglas so they stand at First in Herachie and you will see perfectly your Cockpit.
I have the same Problem :) and so was my Solution.
All what you will see must stand after the Transparent Geometry in Blender Hirachie

That's the old and faaaar too complicated way of doing things. The engine has been tweaked in recent versions (I think going back to 3.6.14) so that submodels with textures that have a name ending in -trans are automatically shuffled around in the render queue so that transparency works correctly.
Title: Re: Welllllll crap.
Post by: Eiswolf on March 22, 2013, 03:34:46 am
Ah okay. Never a day goes by without one learns new things