Author Topic: Placeable walkmesh obscuring?  (Read 363 times)

Legacy_Tiberius_Morguhn

  • Sr. Member
  • ****
  • Posts: 396
  • Karma: +0/-0
Placeable walkmesh obscuring?
« on: March 20, 2014, 01:52:23 am »


               

I know that when dealing with tileset walkmeshes, the material type can be set to change how the walkmesh behaves - with one of the biggest factors being obscuring (material id 2) versus nonwalk (material id 7).  Below is an .pwk from a placeable.  What parameter within the pwk sets it to a particular material type?  I don't think it's the 'bitmap' directive as I have looked at several tileset .wok files and those have only a single 'bitmap' directive, but will have several different terrain types (obscuring, grass, water, and dirt for instance).  Is it the wirecolor of the mesh?  The reason I ask is that many folks have been wanting placeables to be reworked with the correct type of walkmesh (true form versus a flat plane, and the right material type).  I want to work on that for projects I have done.  I just don't know how to start on the material type if it even applies to placeable walkmeshes.  Thanks in advance.



# Exported from NWmax 0.8 b46 at 3/12/2014 4:13:01 AM
# pwk file
#
#NWmax PWKMESH  ASCII
node trimesh plc_a01x_wg
  parent plc_a01x_pwk
  position 0.0 0.0 0.0
  orientation 1.0 0.0 0.0 0.0
  wirecolor 0.521569 0.431373 0.0313726
  multimaterial 20
    Dirt
    Obscuring
    Grass
    Stone
    Wood
    Water
    Nonwalk
    Transparent
    Carpet
    Metal
    Puddles
    Swamp
    Mud
    Leaves
    Lava
    BottomlessPit
    DeepWater
    Door
    Snow
    Sand
  ambient 0.0 0.0 0.0
  diffuse 0.705882 0.0 1.0
  specular 0.0 0.0 0.0
  shininess 10.0
  bitmap Nonwalk
  verts 4
    -1.48273 -0.715481 0.0
    0.655877 -1.22788 0.0
    -1.07001 0.733615 0.0
    1.20518 1.18667 0.0
  faces 2
    2 0 3  1  0 0 0  7
    1 3 0  1  0 0 0  7
endnode
node dummy A01_pwk_use01
  parent plc_a01x_pwk
  position 0.0 0.0 0.0
  orientation 1.0 0.0 0.0 0.0
  wirecolor 0.721569 0.894118 0.6
endnode



               
               

               
            

Legacy_Michael DarkAngel

  • Hero Member
  • *****
  • Posts: 627
  • Karma: +0/-0
Placeable walkmesh obscuring?
« Reply #1 on: March 20, 2014, 02:02:41 am »


               



  faces 2
    2 0 3  1  0 0 0  7
    1 3 0  1  0 0 0  7




 


The last digit of each faces line is the walk material type.  Change these from 7 to 2 for obscuring.  However, a flat plane will obscure nothing, unless it is blocking line of sight (the placeable is in an upright orientation as opposed to flat on the ground).


 


NWMax automatically defaults all door and placeable walkmeshes (dwk and pwk) to walk material 7 (Nonwalk), regardless of any changes you make.  With the latest release of NWMax Plus I have allowed walk material 2 (Obscuring) to be a valid choice as well.


 


icon_zdevil.gif


MDA 


               
               

               
            

Legacy_Tiberius_Morguhn

  • Sr. Member
  • ****
  • Posts: 396
  • Karma: +0/-0
Placeable walkmesh obscuring?
« Reply #2 on: March 20, 2014, 03:37:49 am »


               


The last digit of each faces line is the walk material type.  Change these from 7 to 2 for obscuring.  However, a flat plane will obscure nothing, unless it is blocking line of sight (the placeable is in an upright orientation as opposed to flat on the ground).


 


NWMax automatically defaults all door and placeable walkmeshes (dwk and pwk) to walk material 7 (Nonwalk), regardless of any changes you make.  With the latest release of NWMax Plus I have allowed walk material 2 (Obscuring) to be a valid choice as well.


 


icon_zdevil.gif


MDA 




 


Awesome - thank you!   Even though the example mesh was a plane, I hope to have time to fix that for many of the placeables I've made and get my z-axis groove on.  Knowing how to change this will help a lot.  Thanks again '<img'>