static void Main(string[] args) { #region a { new Parser().Parse(@"world { object : sphere : 'name' { position = (0); radius = (0.5); } freeobject : sphere : 'name' { } object : mesh : 'duck' { vertices { } material : reflective { } } }"); } #endregion #region b RmlParser rml = new RmlParser(File.ReadAllText(@"C:\Users\Belal\Downloads\bunny.txt")); #endregion World world = rml.Compile(); //Console.WriteLine(((PointLight)world.Lights[0]).RadianceScale); //world.RenderScene(); //OBJReader obj = new OBJReader(File.ReadAllText(@"C:\Users\Belal\Downloads\bunny.obj.txt")); //File.WriteAllText(@"C:\Users\Belal\Downloads\bunny.txt", obj.ToRml()); //build1(1); //world2.RenderScene(); //float[] sol = new float[4]; //int i = MathHelper.SolveQuartic(new float[] { 3, 6, -123, -126, 1080 }, sol); Vector3 v = Vector3.Zero; v.X = 4; v.Y = 5; v.Z = 1; Console.WriteLine(v); v = new Vector3(4); Console.WriteLine(v); Console.ReadKey(); }
public Session() { Parser = new RmlParser(); }