mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
Full Template for ticket #1
This commit is contained in:
parent
74f265b3b3
commit
f439dc8dcd
2150 changed files with 286240 additions and 0 deletions
185
Templates/Full/game/art/shapes/cube/cube.dae
Normal file
185
Templates/Full/game/art/shapes/cube/cube.dae
Normal file
|
|
@ -0,0 +1,185 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1">
|
||||
<asset>
|
||||
<contributor>
|
||||
<author>Matt</author>
|
||||
<authoring_tool>3dsMax 10 - Feeling ColladaMax v3.05B.</authoring_tool>
|
||||
<comments>ColladaMax Export Options: ExportNormals=1;ExportEPolyAsTriangles=1;ExportXRefs=1;ExportSelected=0;ExportTangents=0;ExportAnimations=0;SampleAnim=1;ExportAnimClip=1;BakeMatrices=1;ExportRelativePaths=1;AnimStart=0;AnimEnd=3.33333;</comments>
|
||||
<source_data>cube.max</source_data>
|
||||
</contributor>
|
||||
<created>2009-09-09T07:28:49Z</created>
|
||||
<modified>2009-09-09T07:28:53Z</modified>
|
||||
<unit meter="1" name="meter"/>
|
||||
<up_axis>Z_UP</up_axis>
|
||||
</asset>
|
||||
<library_images>
|
||||
<image id="grid.dds" name="grid_dds">
|
||||
<init_from>./grid.dds</init_from>
|
||||
</image>
|
||||
</library_images>
|
||||
<library_materials>
|
||||
<material id="GridMaterial" name="GridMaterial">
|
||||
<instance_effect url="#GridMaterial-fx"/>
|
||||
</material>
|
||||
</library_materials>
|
||||
<library_effects>
|
||||
<effect id="GridMaterial-fx" name="GridMaterial">
|
||||
<profile_COMMON>
|
||||
<newparam sid="grid_dds-surface">
|
||||
<surface type="2D">
|
||||
<init_from>grid.dds</init_from>
|
||||
<format>A8R8G8B8</format>
|
||||
</surface>
|
||||
</newparam>
|
||||
<newparam sid="grid_dds-sampler">
|
||||
<sampler2D>
|
||||
<source>grid_dds-surface</source>
|
||||
<wrap_s>WRAP</wrap_s>
|
||||
<wrap_t>WRAP</wrap_t>
|
||||
<minfilter>NONE</minfilter>
|
||||
<magfilter>NONE</magfilter>
|
||||
<mipfilter>NONE</mipfilter>
|
||||
</sampler2D>
|
||||
</newparam>
|
||||
<technique sid="common">
|
||||
<blinn>
|
||||
<ambient>
|
||||
<color>0.588235 0.588235 0.588235 1</color>
|
||||
</ambient>
|
||||
<diffuse>
|
||||
<texture texture="grid_dds-sampler" texcoord="CHANNEL1">
|
||||
<extra>
|
||||
<technique profile="MAYA">
|
||||
<mirrorU>0</mirrorU>
|
||||
<mirrorV>0</mirrorV>
|
||||
<wrapU>1</wrapU>
|
||||
<wrapV>1</wrapV>
|
||||
<repeatU>1</repeatU>
|
||||
<repeatV>1</repeatV>
|
||||
<offsetU>0</offsetU>
|
||||
<offsetV>0</offsetV>
|
||||
<rotateUV>0</rotateUV>
|
||||
</technique>
|
||||
<technique profile="MAX3D">
|
||||
<amount>1</amount>
|
||||
</technique>
|
||||
</extra>
|
||||
</texture>
|
||||
</diffuse>
|
||||
<specular>
|
||||
<color>0.9 0.9 0.9 1</color>
|
||||
</specular>
|
||||
<shininess>
|
||||
<float>0.415939</float>
|
||||
</shininess>
|
||||
<reflective>
|
||||
<color>0 0 0 1</color>
|
||||
</reflective>
|
||||
<reflectivity>
|
||||
<float>1</float>
|
||||
</reflectivity>
|
||||
<transparent opaque="A_ONE">
|
||||
<color>1 1 1 1</color>
|
||||
</transparent>
|
||||
<transparency>
|
||||
<float>1</float>
|
||||
</transparency>
|
||||
</blinn>
|
||||
<extra>
|
||||
<technique profile="FCOLLADA">
|
||||
<spec_level>
|
||||
<float>0</float>
|
||||
</spec_level>
|
||||
<emission_level>
|
||||
<float>0</float>
|
||||
</emission_level>
|
||||
</technique>
|
||||
</extra>
|
||||
</technique>
|
||||
</profile_COMMON>
|
||||
<extra>
|
||||
<technique profile="MAX3D">
|
||||
<faceted>0</faceted>
|
||||
<double_sided>0</double_sided>
|
||||
<wireframe>0</wireframe>
|
||||
<face_map>0</face_map>
|
||||
</technique>
|
||||
</extra>
|
||||
</effect>
|
||||
</library_effects>
|
||||
<library_geometries>
|
||||
<geometry id="cube-mesh" name="cube">
|
||||
<mesh>
|
||||
<source id="cube-mesh-positions">
|
||||
<float_array id="cube-mesh-positions-array" count="24">-0.5 -0.5 0 0.5 -0.5 0 -0.5 0.5 0 0.5 0.5 0 -0.5 -0.5 1 0.5 -0.5 1 -0.5 0.5 1 0.5 0.5 1</float_array>
|
||||
<technique_common>
|
||||
<accessor source="#cube-mesh-positions-array" count="8" stride="3">
|
||||
<param name="X" type="float"/>
|
||||
<param name="Y" type="float"/>
|
||||
<param name="Z" type="float"/>
|
||||
</accessor>
|
||||
</technique_common>
|
||||
</source>
|
||||
<source id="cube-mesh-normals">
|
||||
<float_array id="cube-mesh-normals-array" count="72">0 0 -1 0 0 -1 0 0 -1 0 0 -1 0 0 1 0 0 1 0 0 1 0 0 1 0 -1 0 0 -1 0 0 -1 0 0 -1 0 1 0 0 1 0 0 1 0 0 1 0 0 0 1 0 0 1 0 0 1 0 0 1 0 -1 0 0 -1 0 0 -1 0 0 -1 0 0</float_array>
|
||||
<technique_common>
|
||||
<accessor source="#cube-mesh-normals-array" count="24" stride="3">
|
||||
<param name="X" type="float"/>
|
||||
<param name="Y" type="float"/>
|
||||
<param name="Z" type="float"/>
|
||||
</accessor>
|
||||
</technique_common>
|
||||
</source>
|
||||
<source id="cube-mesh-map-channel1">
|
||||
<float_array id="cube-mesh-map-channel1-array" count="36">0 0 0 1 0 0 0 1 0 1 1 0 0 0 0 1 0 0 0 1 0 1 1 0 0 0 0 1 0 0 0 1 0 1 1 0</float_array>
|
||||
<technique_common>
|
||||
<accessor source="#cube-mesh-map-channel1-array" count="12" stride="3">
|
||||
<param name="S" type="float"/>
|
||||
<param name="T" type="float"/>
|
||||
<param name="P" type="float"/>
|
||||
</accessor>
|
||||
</technique_common>
|
||||
</source>
|
||||
<vertices id="cube-mesh-vertices">
|
||||
<input semantic="POSITION" source="#cube-mesh-positions"/>
|
||||
</vertices>
|
||||
<triangles material="GridMaterial" count="12">
|
||||
<input semantic="VERTEX" source="#cube-mesh-vertices" offset="0"/>
|
||||
<input semantic="NORMAL" source="#cube-mesh-normals" offset="1"/>
|
||||
<input semantic="TEXCOORD" source="#cube-mesh-map-channel1" offset="2" set="1"/>
|
||||
<p>0 0 9 2 1 11 3 2 10 3 2 10 1 3 8 0 0 9 4 4 8 5 5 9 7 6 11 7 6 11 6 7 10 4 4 8 0 8 4 1 9 5 5 10 7 5 10 7 4 11 6 0 8 4 1 12 0 3 13 1 7 14 3 7 14 3 5 15 2 1 12 0 3 16 4 2 17 5 6 18 7 6 18 7 7 19 6 3 16 4 2 20 0 0 21 1 4 22 3 4 22 3 6 23 2 2 20 0</p>
|
||||
</triangles>
|
||||
</mesh>
|
||||
</geometry>
|
||||
</library_geometries>
|
||||
<library_visual_scenes>
|
||||
<visual_scene id="cube.max" name="cube_max">
|
||||
<node id="cube-node" name="cube" type="NODE">
|
||||
<matrix>1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1</matrix>
|
||||
<instance_geometry url="#cube-mesh">
|
||||
<bind_material>
|
||||
<technique_common>
|
||||
<instance_material symbol="GridMaterial" target="#GridMaterial">
|
||||
<bind_vertex_input semantic="CHANNEL1" input_semantic="TEXCOORD" input_set="1"/>
|
||||
</instance_material>
|
||||
</technique_common>
|
||||
</bind_material>
|
||||
</instance_geometry>
|
||||
</node>
|
||||
<extra>
|
||||
<technique profile="FCOLLADA">
|
||||
<start_time>0</start_time>
|
||||
<end_time>3.33333</end_time>
|
||||
</technique>
|
||||
</extra>
|
||||
<extra>
|
||||
<technique profile="MAX3D">
|
||||
<frame_rate>30</frame_rate>
|
||||
</technique>
|
||||
</extra>
|
||||
</visual_scene>
|
||||
</library_visual_scenes>
|
||||
<scene>
|
||||
<instance_visual_scene url="#cube.max"/>
|
||||
</scene>
|
||||
</COLLADA>
|
||||
BIN
Templates/Full/game/art/shapes/cube/grid.dds
Normal file
BIN
Templates/Full/game/art/shapes/cube/grid.dds
Normal file
Binary file not shown.
44
Templates/Full/game/art/shapes/cube/materials.cs
Normal file
44
Templates/Full/game/art/shapes/cube/materials.cs
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
// Copyright (c) 2012 GarageGames, LLC
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to
|
||||
// deal in the Software without restriction, including without limitation the
|
||||
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
// sell copies of the Software, and to permit persons to whom the Software is
|
||||
// furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in
|
||||
// all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
//--- cube.dae MATERIALS BEGIN ---
|
||||
singleton Material(cube_GridMaterial)
|
||||
{
|
||||
mapTo = "GridMaterial";
|
||||
|
||||
diffuseMap[0] = "grid";
|
||||
normalMap[0] = "";
|
||||
specularMap[0] = "";
|
||||
|
||||
diffuseColor[0] = "1 1 1 1";
|
||||
specular[0] = "0.9 0.9 0.9 1";
|
||||
specularPower[0] = 0.415939;
|
||||
pixelSpecular[0] = false;
|
||||
emissive[0] = false;
|
||||
|
||||
doubleSided = false;
|
||||
translucent = false;
|
||||
translucentBlendOp = "None";
|
||||
};
|
||||
|
||||
//--- cube.dae MATERIALS END ---
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue