Ejemplo n.º 1
0
        public void test3() //generovanie ray
        {
            Console.WriteLine("Enter the pixel position on X - axis (0-640) and Y - axis (0-480)");
            string x = Console.ReadLine();
            string y = Console.ReadLine();

            RayTracer rayTracer = new RayTracer();

            rayTracer.CreateRay(Convert.ToDouble(x), Convert.ToDouble(y));
        }
Ejemplo n.º 2
0
        public void test4()                         //vykreslenie gule
        {
            RayTracer raytracer = new RayTracer(1); //zadavanie rozmeru platna

            Vector first  = new Vector(0.1, 0.4, -0.4);
            Vector second = new Vector(0.3, 0.2, -0.59);

            List <Sphere> sphere = new List <Sphere>();

            sphere.Add(new Sphere(first, 0.1));
            sphere.Add(new Sphere(second, 0.2));
            //Tu zadajte dalsie objekty
            //sphere.Add(new Sphere( , , , ));
            //sphere.Add(new Sphere( , , , ));
            raytracer.Render(sphere);
        }