upload
This commit is contained in:
47
test/data/world/models/box_mtx/meshes/Box.DAE
Normal file
47
test/data/world/models/box_mtx/meshes/Box.DAE
Normal file
@@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1">
|
||||
<!-- CUNG hop 2.0 x 1.0 x 0.5 m, nhung bay ba tang:
|
||||
1. duoi file viet HOA (.DAE) -- so duoi phan biet hoa thuong se roi
|
||||
vao bo doc OBJ va hong im lang
|
||||
2. <unit meter="0.01"> NOI DOI: dinh ve bang MILIMET
|
||||
3. ti le that nam trong <matrix> (0.1), khong phai trong <scale>
|
||||
0.1 * 0.01 = 0.001 => milimet. -->
|
||||
<asset>
|
||||
<unit meter="0.01" name="centimeter"/>
|
||||
<up_axis>Z_UP</up_axis>
|
||||
</asset>
|
||||
<library_geometries>
|
||||
<geometry id="G" name="G">
|
||||
<mesh>
|
||||
<source id="G-pos">
|
||||
<float_array id="G-pos-array" count="24">
|
||||
-1000 -500 0 1000 -500 0 1000 500 0 -1000 500 0
|
||||
-1000 -500 500 1000 -500 500 1000 500 500 -1000 500 500
|
||||
</float_array>
|
||||
<technique_common>
|
||||
<accessor source="#G-pos-array" count="8" stride="3">
|
||||
<param name="X" type="float"/>
|
||||
<param name="Y" type="float"/>
|
||||
<param name="Z" type="float"/>
|
||||
</accessor>
|
||||
</technique_common>
|
||||
</source>
|
||||
<vertices id="G-vtx"><input semantic="POSITION" source="#G-pos"/></vertices>
|
||||
<polylist count="8" material="M">
|
||||
<input semantic="VERTEX" source="#G-vtx" offset="0"/>
|
||||
<vcount>3 3 3 3 3 3 3 3</vcount>
|
||||
<p>0 1 2 0 2 3 4 5 6 4 6 7 0 1 5 0 5 4 2 3 7 2 7 6</p>
|
||||
</polylist>
|
||||
</mesh>
|
||||
</geometry>
|
||||
</library_geometries>
|
||||
<library_visual_scenes>
|
||||
<visual_scene id="S" name="S">
|
||||
<node name="N" id="N">
|
||||
<matrix sid="matrix">0.1 0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0 1</matrix>
|
||||
<instance_geometry url="#G"/>
|
||||
</node>
|
||||
</visual_scene>
|
||||
</library_visual_scenes>
|
||||
<scene><instance_visual_scene url="#S"/></scene>
|
||||
</COLLADA>
|
||||
9
test/data/world/models/box_mtx/model.sdf
Normal file
9
test/data/world/models/box_mtx/model.sdf
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<sdf version="1.6"><model name="box_mtx"><static>true</static><link name="l">
|
||||
<visual name="visual"><geometry><mesh>
|
||||
<uri>model://box_mtx/meshes/Box.DAE</uri>
|
||||
</mesh></geometry></visual>
|
||||
<collision name="collision"><geometry><mesh>
|
||||
<uri>model://box_mtx/meshes/Box.DAE</uri>
|
||||
</mesh></geometry></collision>
|
||||
</link></model></sdf>
|
||||
Reference in New Issue
Block a user