• ASCII-3D-Renderer
  • import
    Insert a wavefront .obj file or choose one of the following:
    example 1
    colored cube
    Sketchup
    Sketchucation
    H2O molecule (120 triangles)
    ethanol molecule (408 triangles)
    Tour Eiffel
    Arc de Triomphe
    Statue of Liberty
    Frauenkirche in Dresden

  • display size
    x
  • frame rate
    frames per second:
  • lighting
    colored
    old lighting algorithm
    new lighting algorithm
    direction of light source:
  • about

    It may work best if you stand a long way from your monitor and half close your eyes.
      move the mouse = rotate
      move the mouse while holding mouse button = pan
      mouse wheel = zoom

    limitations of the obj-importer:

    • only v and triangulated f elements
    • geometry must be triangulated
    • no negative reference
    • additional option:
      add a color after the vertex reference of a face
    • recommended:
      obj_export_1.1.rb by Jim Foltz
      and triangulateFaces.rb by TIG

    I only added the obj-importer, the navigation tools and a better lighting algorithm. Many thanks go to Ben Ryves who made the ASCII 3D engine, Aaron Severn for his QBasic 3D documentation and Tom Ootjers for his GameDev article on line drawing.

    Try also http://www.slimeland.com/raytrace

  • back to my blog
v 80 0 0 v 0 30 -20 v 0 -30 -20 v 0 30 20 v 0 30 10 v 0 -30 10 v 0 -30 20 v 10 0 40 v 10 -70 0 v 10 70 0 v -50 -70 0 v -50 70 0 v -30 0 0 v -30 0 20 f 1 2 3 #404040 f 1 4 5 #008000 f 1 6 7 #008000 f 1 8 4 #2080FF f 1 7 8 #1080FF f 1 9 6 #2F2F2F f 1 5 10 #2F2F2F f 1 3 9 #000000 f 1 10 2 #000000 f 9 11 6 #2F2F2F f 9 3 11 #404040 f 10 5 12 #2F2F2F f 10 12 2 #404040 f 11 3 6 #404040 f 12 5 2 #404040 f 2 13 3 #404040 f 3 13 14 #404040 f 2 14 13 #333333 f 14 6 3 #8F8F8F f 14 2 5 #8F8F8F f 8 14 4 #0080FF f 8 7 14 #0080F0 f 14 7 6 #008000 f 14 5 4 #008000