Jump to content
Sign in to follow this  
jojimbo_No_1

Hidden selections

Recommended Posts

i need to know,

i have 12 differing playermodels,all with differing gear,

i have successfully combined into just one p3d.

using the gear as hidden selections.

in o2,the model is big,normal ofp under 2000

new combined over 2000

although the p3d is larger,face wise,will it lag the game more,

as if hidden,surely the graphics will only render the under 2000?

Share this post


Link to post
Share on other sites

With HT T&L, hidden selections are ignored completely. Without it all vertices in those selections are transformed and lit, but faces are ignored and not rendered.

Share this post


Link to post
Share on other sites

thank you sooo much Suma,for the quick reply

its going to be much easier to create unit gear placement,rank promos,badges,headgear all tied up

with hidden selections,and not have lots of large files everywhere.

Share this post


Link to post
Share on other sites
Guest BratZ

Your saying its ok to hide selection in O2? For instance the pilots view...instead of deleting half the model,its ok to just hide it?

Share this post


Link to post
Share on other sites

It really depends on what you consider to be OK.

Hidden faces are still loaded in the memory and with SW T&L there is some significant ammount of processing connected with them. Moreover, I think that deleting them is the same work as hiding them - therefore in final version of your model I would rather delete them.

Share this post


Link to post
Share on other sites

yes,with tests i found that with the geforce2

HW&TL,absolutely no problems,12 men condensed into one.p3d (maybe a bit ambitious)

well....sort of,just the important bits that were different.

i had loads(well the 12 soldiers)same p3d,all there runnung about,nice and smoothe...BUT,with Direct3D,it heaved,you knew something was there hidden,eating up the processor.

Share this post


Link to post
Share on other sites

O Suma I got one quastion.

Is it possible to have hidden selections on a weapon?

I tryed it and for what i did now.

No Luck.... so thats why I asking it now.

Is it possible?

Greetings

Marcel

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (Marss911 @ Jan. 03 2003,13:41)</td></tr><tr><td id="QUOTE">Is it possible to have hidden selections on a weapon?<span id='postcolor'>

I am afraid the answer is no.

Share this post


Link to post
Share on other sites

Sorry to bring the topic back up, but...Would it be possible for faces that are 'Shift-H'ed' or 'Hidden' in O2 NOT to show up in OFP? I mean on a chopper...I need a part of the model to be invisible.

[EDIT] Never mind, I found out that by naming the model part, and then putting 'hiddenSelections[]={"selection1"};' in the config.cpp, It'll work. smile.gif

Share this post


Link to post
Share on other sites
Guest BratZ

I also need a selection "invisible"...that works Scorpio? I can make it appear

Share this post


Link to post
Share on other sites

What unit type are you using Scorpio?

I am trying to hide a selection names 'cheek_plate' on my tank and its just not having it.

cheek_plate is defined in every resolution LOD (0.5, 1, 3, 5) and in the 3 view resolutions.

I have tried

hiddenSelections[]={cheek_plate}; (as in 5tTruck {ammo})

and

hiddenSelections[]={"cheek_plate"}; (as in {"medic"} )

But nothing I do seems to make any difference.

Im beginning to think hidden selections are not available to the tank class.

Share this post


Link to post
Share on other sites
Guest BratZ

And how do you activate hiding or unhiding it?

Share this post


Link to post
Share on other sites

The man and the 5T truck are defined in config.

Forinstance every soldier carries the medic armband, but in all normal soldiers the hiddenselection is defined in the config.

..

hiddenSelections[]={"medic"};

..

medic is a selection name from mc_volskw2.p3d - the man model.

Now, the medic has the patch so when we look at the config there

ie,

class medic : normal man

{

hiddenSelections[]={};

};

ie there is no invisibility, the faces are rendered.

I don't know if you can trigger selections to appear and disappear at will, I want to have 2 models from the same p3d file with just cosmetic changes, similar to soldier and medic.

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (scousejedi @ Jan. 12 2003,22:58)</td></tr><tr><td id="QUOTE">I don't know if you can trigger selections to appear and disappear at will, I want to have 2 models from the same p3d file with just cosmetic changes, similar to soldier and medic.<span id='postcolor'>

Is this possible tor swich selections hidden-unhidden using action menu?

I have in mind similar mechanism like animation with event handler script but in place of rotation we will have hiding/unhiding selections.

It my work?

Share this post


Link to post
Share on other sites

The hidden selections can be activated in O2 using Ctrl+H to hide, and Ctrl+I then Ctrl+Shift+H to Unhide.

It seemed I was too opitimistic. it didnt work.

Share this post


Link to post
Share on other sites

In the 1.90 config (I don't know about 1.46) there is a line

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class Man: Default

    {

    sections[]={"head injury",body injury", .... ,"medic"};

    sectionsInherit="Head";

    };

<span id='postcolor'>

there are similar definitions for vehicles. I am going to define the cheek plate on my tank 'pruh' and see what that does.

I have tried defining an element here but I might have erased the existing elements. Ill play with this some more.

Calling 'cheek_plate' 'pruh' which is defined in main config works. What pruh is I don't know other than the fact it means something to do with the word bar.

I redefined my cheekplate and then

..

hiddenSelections[]={"pruh"};

..

works a treat.

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgModels

{

class Default{};

class Vehicle: Default{};

class Tank: Vehicle{};

class Panther: Tank

{

sections[]={"cheek_plate"};

};

};

//bit deleted for clarity

class cfgVehicles

{

class All {};

class AllVehicles: All {};

class Land: AllVehicles {};

class LandVehicle: Land {};

class Tank: LandVehicle {};

class T72:Tank {};

class Panther: T72

{

model="\panther\panther";

displayName="Panther";

hiddenSelections[]={"cheek_plate"};

};

};

<span id='postcolor'>

The secret is placing sections[] in cfgModels.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×