Jump to content
Korean Random

Blender Tank Viewer


SkepticalFox

Recommended Posts

собрал что было в клиенте, всех вроде (shared_content_hd + shared_content_sandbox_hd) там и сегменты есть

attachicon.giftracks.rar

отдельно

attachicon.gifT-54_track.rar

работают

прими во внимание, если будешь сохранять в клиент, и файл будет иметь окончание  "_hd", скорее всего при отдалении будет пропадать отображение  :)))

Я про модель (меш) писал :) Текстуры без проблем вытянуть можно.

Link to comment
Short link
Share on other sites

Я же просил как-то отдельно траки))

Просить это одно, а вот предложить реализацию...

Я должен увидеть как оно будет смотреться.

 

P.S. добавил менюшку в меню Help Blender'а

post-16296-0-73445900-1450817367_thumb.png

Edited by ShadowHunterRUS
  • Upvote 1
Link to comment
Short link
Share on other sites

Так что прикажешь делать с сегментными траками?

Есть идеи?

должен быть алгоритм по их размещению. Грубо говоря путь по которому они клонируются.
Link to comment
Short link
Share on other sites

путь по которому они клонируются.

вот про него я и спросил)

 

В xml файле Т-54'ки:

...
<splineDesc>
  <segmentModelLeft>vehicles/russian/R40_T-54/track/segment.model</segmentModelLeft>
  <segmentModelRight>vehicles/russian/R40_T-54/track/segment.model</segmentModelRight>
  <left>vehicles/russian/R40_T-54/track/left.track</left><!-- Наверное здесь и есть нужный нам путь -->
  <right>vehicles/russian/R40_T-54/track/right.track</right>
  <segmentLength>0.13</segmentLength>
  <segmentOffset>0.126</segmentOffset>
  <lodDist>MEDIUM</lodDist>
  <atlas>
    <UTiles> 1 </UTiles>
    <VTiles> 1 </VTiles>
  </atlas>
</splineDesc>
...
Содержимое vehicles/russian/R40_T-54/track/left.track:

<left.visual>
  <xmlns>http://www.collada.org/2005/11/COLLADASchema</xmlns>
  <version>1.4.1</version>
  <library_visual_scenes>
    <visual_scene>
      <node>
        <name>left</name>
        <node>
          <name>Track_L0_loc1</name>
          <position>-1.33437 0.0817932 2.0223</position>
        </node>
        <node>
          <name>Track_L0_loc2</name>
          <position>-1.33437 0.0464703 1.57087</position>
        </node>
        <node>
          <name>Track_L1_loc3</name>
          <position>-1.33437 0.0472523 0.678675</position>
        </node>
        <node>
          <name>Track_L2_loc4</name>
          <position>-1.33437 0.0469994 -0.165148</position>
        </node>
        <node>
          <name>Track_L3_loc5</name>
          <position>-1.33437 0.0492685 -1.02866</position>
        </node>
        <node>
          <name>Track_L4_loc6</name>
          <position>-1.33437 0.0512478 -1.62436</position>
        </node>
        <node>
          <name>Track_L4_loc7</name>
          <position>-1.33437 0.0685004 -2.11768</position>
        </node>
        <node>
          <name>Track_VD_L1_loc8</name>
          <position>-1.33437 0.284047 -2.49948</position>
        </node>
        <node>
          <name>V_loc9</name>
          <position>-1.33437 0.484609 -2.76426</position>
        </node>
        <node>
          <name>V_loc10</name>
          <position>-1.33437 0.684646 -2.91554</position>
        </node>
        <node>
          <name>V_loc11</name>
          <position>	-1.33437 0.903628 -2.85397	</position>
        </node>
        <node>
          <name>	V_loc12	</name>
          <position>	-1.33437 1.01604 -2.64407	</position>
        </node>
        <node>
          <name>	Track_VT_L6_loc13	</name>
          <position>	-1.33437 1.01361 -1.80194	</position>
        </node>
        <node>
          <name>	Track_VT_L5_loc14	</name>
          <position>	-1.33437 1.01789 -1.02866	</position>
        </node>
        <node>
          <name>	Track_VT_L4_loc15	</name>
          <position>	-1.33437 1.02583 -0.634714	</position>
        </node>
        <node>
          <name>	Track_VT_L3_loc16	</name>
          <position>	-1.33437 1.03209 -0.165148	</position>
        </node>
        <node>
          <name>	Track_VT_L2_loc17	</name>
          <position>	-1.33437 1.04119 0.226447	</position>
        </node>
        <node>
          <name>	Track_VT_L1_loc18	</name>
          <position>	-1.33437 1.04585 0.678723	</position>
        </node>
        <node>
          <name>	Track_VT_L0_loc19	</name>
          <position>	-1.33437 1.07211 1.69084	</position>
        </node>
        <node>
          <name>	V_loc20	</name>
          <position>	-1.33437 1.10155 2.5569	</position>
        </node>
        <node>
          <name>	V_loc21	</name>
          <position>	-1.33437 1.0111 2.7492	</position>
        </node>
        <node>
          <name>	V_loc22	</name>
          <position>	-1.33437 0.811839 2.80759	</position>
        </node>
        <node>
          <name>	V_loc23	</name>
          <position>	-1.33437 0.630955 2.69337	</position>
        </node>
        <node>
          <name>	Track_VD_L0_loc24	</name>
          <position>	-1.33437 0.341099 2.38296	</position>
        </node>
      </node>
    </visual_scene>
  </library_visual_scenes>
</left.visual>

 

Я совсем запутался...

Edited by ShadowHunterRUS
  • Upvote 1
Link to comment
Short link
Share on other sites

вот про него я и спросил)

 

В xml файле Т-54'ки:

 

...
<splineDesc>
  <segmentModelLeft>vehicles/russian/R40_T-54/track/segment.model</segmentModelLeft>
  <segmentModelRight>vehicles/russian/R40_T-54/track/segment.model</segmentModelRight>
  <left>vehicles/russian/R40_T-54/track/left.track</left><!-- Наверное здесь и есть нужный нам путь -->
  <right>vehicles/russian/R40_T-54/track/right.track</right>
  <segmentLength>0.13</segmentLength>
  <segmentOffset>0.126</segmentOffset>
  <lodDist>MEDIUM</lodDist>
  <atlas>
    <UTiles> 1 </UTiles>
    <VTiles> 1 </VTiles>
  </atlas>
</splineDesc>
...
Содержимое vehicles/russian/R40_T-54/track/left.track:

<left.visual>
  <xmlns>	http://www.collada.org/2005/11/COLLADASchema	</xmlns>
  <version>	1.4.1	</version>
  <library_visual_scenes>
    <visual_scene>
      <node>
        <name>	left	</name>
        <node>
          <name>	Track_L0_loc1	</name>
          <position>	-1.33437 0.0817932 2.0223	</position>
        </node>
        <node>
          <name>	Track_L0_loc2	</name>
          <position>	-1.33437 0.0464703 1.57087	</position>
        </node>
        <node>
          <name>	Track_L1_loc3	</name>
          <position>	-1.33437 0.0472523 0.678675	</position>
        </node>
        <node>
          <name>	Track_L2_loc4	</name>
          <position>	-1.33437 0.0469994 -0.165148	</position>
        </node>
        <node>
          <name>	Track_L3_loc5	</name>
          <position>	-1.33437 0.0492685 -1.02866	</position>
        </node>
        <node>
          <name>	Track_L4_loc6	</name>
          <position>	-1.33437 0.0512478 -1.62436	</position>
        </node>
        <node>
          <name>	Track_L4_loc7	</name>
          <position>	-1.33437 0.0685004 -2.11768	</position>
        </node>
        <node>
          <name>	Track_VD_L1_loc8	</name>
          <position>	-1.33437 0.284047 -2.49948	</position>
        </node>
        <node>
          <name>	V_loc9	</name>
          <position>	-1.33437 0.484609 -2.76426	</position>
        </node>
        <node>
          <name>	V_loc10	</name>
          <position>	-1.33437 0.684646 -2.91554	</position>
        </node>
        <node>
          <name>	V_loc11	</name>
          <position>	-1.33437 0.903628 -2.85397	</position>
        </node>
        <node>
          <name>	V_loc12	</name>
          <position>	-1.33437 1.01604 -2.64407	</position>
        </node>
        <node>
          <name>	Track_VT_L6_loc13	</name>
          <position>	-1.33437 1.01361 -1.80194	</position>
        </node>
        <node>
          <name>	Track_VT_L5_loc14	</name>
          <position>	-1.33437 1.01789 -1.02866	</position>
        </node>
        <node>
          <name>	Track_VT_L4_loc15	</name>
          <position>	-1.33437 1.02583 -0.634714	</position>
        </node>
        <node>
          <name>	Track_VT_L3_loc16	</name>
          <position>	-1.33437 1.03209 -0.165148	</position>
        </node>
        <node>
          <name>	Track_VT_L2_loc17	</name>
          <position>	-1.33437 1.04119 0.226447	</position>
        </node>
        <node>
          <name>	Track_VT_L1_loc18	</name>
          <position>	-1.33437 1.04585 0.678723	</position>
        </node>
        <node>
          <name>	Track_VT_L0_loc19	</name>
          <position>	-1.33437 1.07211 1.69084	</position>
        </node>
        <node>
          <name>	V_loc20	</name>
          <position>	-1.33437 1.10155 2.5569	</position>
        </node>
        <node>
          <name>	V_loc21	</name>
          <position>	-1.33437 1.0111 2.7492	</position>
        </node>
        <node>
          <name>	V_loc22	</name>
          <position>	-1.33437 0.811839 2.80759	</position>
        </node>
        <node>
          <name>	V_loc23	</name>
          <position>	-1.33437 0.630955 2.69337	</position>
        </node>
        <node>
          <name>	Track_VD_L0_loc24	</name>
          <position>	-1.33437 0.341099 2.38296	</position>
        </node>
      </node>
    </visual_scene>
  </library_visual_scenes>
</left.visual> 
<segmentLength>0.13</segmentLength>

<segmentOffset>0.126</segmentOffset> длина и шаг размещения траков. Под спойлером похоже на координаты :) у тебя все было.

Link to comment
Short link
Share on other sites

координаты есть, а угла поворота нет...

а почему имя сегментов меняется? Как вариант, это координаты опорных точек кривой. К ним уже привязаны траки, которые лежат на этой кривой. В таком случае, угол =касательная к кривой.

Как то так. Надеюсь понятно о чем речь. С телефона не очень удобно писать :)

Edited by AcuteNC
Link to comment
Short link
Share on other sites

Циклом прошелся по координатам и поставил в них Cube.

Вот что получилось:

screen50.png

супер. Это кривая, а по не уже ставятся траки. Так как координат 24, а траков явно больше. Для этого и указаны длина и шаг.

Я собирался тоже самое делать. Только руками))) Для примера. Даже сохранил модельку 62а, т.к у него на корпусе образец трака есть %)

Edited by AcuteNC
Link to comment
Short link
Share on other sites

Это кривая, а по не уже ставятся траки. Так как координат 24, а траков явно больше. Для этого и указаны длина и шаг.

http://jewelcourses.com/ru/lessons/scatter_along_curve Edited by ShadowHunterRUS
Link to comment
Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...