This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Charlie Somerville

By: a guest on Apr 5th, 2009  |  syntax: C#  |  size: 0.47 KB  |  views: 50  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Drawing;
  6. using System.Drawing.Imaging;
  7.  
  8. namespace _3DRender
  9. {
  10.     class Program
  11.     {
  12.         static void Main(string[] args)
  13.         {
  14.             World w = new World(1);
  15.             w.camera.fov_x = 70;
  16.             w.camera.fov_y = 70;
  17.  
  18.             Bitmap rendered = w.Render(71, 71);
  19.             rendered.Save("output.bmp",ImageFormat.Bmp);
  20.         }
  21.     }
  22. }
clone this paste RAW Paste Data