POV-Ray : Newsgroups : povray.binaries.images : Mesh2 object Server Time
5 Nov 2024 05:21:26 EST (-0500)
  Mesh2 object (Message 1 to 1 of 1)  
From: CB
Subject: Mesh2 object
Date: 28 Aug 2009 21:35:00
Message: <web.4a98856f1f6530ff4cb223060@news.povray.org>
Have been writing a program to automatically create mesh2 (or blender obj
format) objects of vases/bowls (a lesson in humility). This is a basic test
render of one of the generated meshes. The glass sphere in the middle was added
in the pov file for interest. About 26,000 vertices and 52,000 triangles. I can
make the mesh available if anyone wants to play with it. Textures below are
mostly straight pov glass textures.

Chuck


#include "Colors.inc"
#include "bowl-h3-t.1-400-5-1.inc"

global_settings { max_trace_level 13 }

#declare Testing = false;

background {Black}

camera {
   location <4, 10, -11>
   look_at <0, 2.5, 0>
   }

#if(Testing)
   #declare LightMultiplier = 1.0;
#else
   #declare LightMultiplier = 5.0;
#end

light_source
   {
   <100 , 25, -40> rgb<1,1,1> * LightMultiplier
   }

light_source
   {
   <-150 , 50, -20> rgb<1,1,1> * LightMultiplier
   }


#declare I_Glass =
interior {
   ior 1.5
   }

#declare Glass1Finish =
finish {
   ambient 0.1
   diffuse 0.1
   reflection .25
   specular 1
   roughness 0.001
   }

#declare TestFinish =
finish {
   ambient 0.05
   diffuse 0.05
   reflection .35
   specular 1
   roughness 0.0005
   }

#declare Glass2Finish =
finish {
   ambient 0.1
   diffuse 0.1
   reflection .35
   specular 1
   roughness 0.001
   }

#if(Testing)

   #declare RubyGlassTexture   = pigment{rgb<1.0, 0.0, 0.0>}
   #declare YellowGlassTexture = pigment{rgb<1.0, 1.0, 0.0>}
   #declare VioletGlassTexture = pigment{rgb<1.0, 0.0, 1.0>}
   #declare GlassTexture       = pigment{rgb<1.0, 1.0, 1.0>}

#else
   #declare RubyGlassTexture =
   texture {
      finish { Glass1Finish }
      pigment { color rgbf <0.9, 0.1, 0.2, 0.8> }
      }

   #declare YellowGlassTexture =
   texture {
      finish { Glass1Finish }
      pigment { color rgbf <0.8, 0.8, 0.2, 0.8> }
      }

   #declare VioletGlassTexture =
   texture {
      finish { Glass1Finish }
      pigment { color rgbf <0.9, 0.0, 0.8, 0.8> }
      }

   #declare OldGlassTexture =
   texture {
      finish { Glass2Finish }
      pigment { color rgbf <0.8, 0.9, 0.85, 0.9> }
      }

   #declare GlassTexture =
   texture {
      finish { Glass2Finish }
      pigment { color rgbf <0.97, 0.99, 0.98, 0.94> }
      }

   #declare TestTexture =
   texture {
      finish { TestFinish }
      pigment { color rgbf <0.97, 0.99, 0.98, 0.95> }
      }
#end


object{Vase351   rotate <0, 30, 0> interior {I_Glass} texture {GlassTexture}}
sphere {<  0.0, 1.6,   0.0> 1.5 interior {I_Glass} texture {RubyGlassTexture}}


Post a reply to this message


Attachments:
Download 'mesh351.jpg' (26 KB)

Preview of image 'mesh351.jpg'
mesh351.jpg


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.