From adfd582b98531e747abe1e5755768e8cc681bdf6 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Tue, 18 Dec 2012 21:13:12 +0000 Subject: [PATCH] tutorial: HUGE COGS. --- tutorial/05_easymesh.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tutorial/05_easymesh.cpp b/tutorial/05_easymesh.cpp index de6fcb56..83ccba88 100644 --- a/tutorial/05_easymesh.cpp +++ b/tutorial/05_easymesh.cpp @@ -43,6 +43,10 @@ public: EasyMeshTutorial() { m_angle = 0; + + m_mesh.Compile("sc#ffb scb#ffb acg 12 10 30 30 5 5 0.1 0"); + +#if 0 m_mesh.Compile("sc#8d3 [ato40 10 40 rx20 ry130 tx30]"); m_mesh.OpenBrace(); @@ -51,6 +55,7 @@ public: m_mesh.RadialJitter(0.2f); m_mesh.Compile("ty-50 tx-40"); m_mesh.CloseBrace(); +#endif #if 0 //m_mesh.Compile("sc#94e scb#649 [asph3 7 7 7 tx-6 tz-9]"); @@ -129,7 +134,7 @@ public: { WorldEntity::TickGame(seconds); - m_angle += seconds * 45.0f; + m_angle += seconds * 80.0f; mat4 anim = mat4::rotate(m_angle, vec3(0, 1, 0)); mat4 model = mat4::translate(vec3(0, 0, 0)); @@ -150,6 +155,9 @@ public: Video::SetClearColor(vec4(0.0f, 0.0f, 0.0f, 1.0f)); m_mesh.Render(m_matrix); + m_mesh.Render(mat4::translate(vec3(-65, 0, -65) * lol::sqrt(0.5)) * mat4::rotate(-m_angle, vec3(0, 1, 0))); + m_mesh.Render(mat4::translate(vec3(0, 0, 65)) * mat4::rotate(-m_angle, vec3(0, 1, 0))); + m_mesh.Render(mat4::translate(vec3(-65, 0, 65)) * mat4::rotate(m_angle, vec3(0, 1, 0))); } private: