Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Tempest on January 29, 2007, 12:11:36 pm

Title: Primary Weapon models in briefing rotational view invisible
Post by: Tempest on January 29, 2007, 12:11:36 pm
Okay, I put some new primary weapon models into the game, and specified them to show up with the $tech model flag. They don't always show up however, and I know the geometry is fine. They actually appear in the left hand corner where you click and drag them into your slots, but not in the rotating view. They're maybe 1000 polygons and they converted fine with PCS. Occasionally some of them might show up but I can't figure out why. Does anyone know what the issues are with primary weapon models showing up in the rotating preview in the briefing room?

I can sometimes see them render for a few frames then they dissapear completley.
Oh, and also, the secondary weapons all show up without a problem.
Title: Re: Primary Weapon models in briefing rotational view invisible
Post by: Dysko on January 29, 2007, 01:18:31 pm
The rotating view is an ANI specified in the "$Anim:" line. It has nothing to do with the model (or at least, I suppose so :nervous:).
Title: Re: Primary Weapon models in briefing rotational view invisible
Post by: Bobboau on January 29, 2007, 02:02:08 pm
in the loadout?
Title: Re: Primary Weapon models in briefing rotational view invisible
Post by: Tempest on January 29, 2007, 02:25:33 pm
The primary weapons can have a model and you can rotate it. It works with some models, but not with most of them. Just like ships can rotate via 3d models rather than anis. Yes, i'm referring to the loadout menu. I can't attach a screenshot, sorry but I can describe the problem as much as you need. I'm using a flag from the wiki...

$Tech Model:
Defines model used in wing loadout screen and in Tech Room for the weapon. As of the moment - not totally functional
Syntax: Filename.pof

And yes, I realize it's not totally functional. I was just wondering if maybe it was time to make it work. After all, how different could the rendering code be from the missiles (which again, work fine).
Title: Re: Primary Weapon models in briefing rotational view invisible
Post by: Trivial Psychic on January 29, 2007, 08:52:36 pm
If it were a ship model we were talking about, I'd say the problem was in the $Closeup_pos: being too close to the model's center.  Could the code base its position off the radius of the pof?  If the radius was set too small for some reason, it could affect this.