【问题标题】:Hyperboloid with POV-RayPOV-Ray 双曲面
【发布时间】:2013-08-11 14:58:37
【问题描述】:

我想画出与德国维基百科页面完全相同的双曲面(只是没有轴):

http://de.wikipedia.org/wiki/Hyperboloid

例如,我知道如何绘制一张由两张纸组成的双曲面:

#include "colors.inc"           

background {White}
camera { orthographic
  location <0, 35, -200>
  up  <0.0, 25.0, 0.0>
  right <33, 0.0, 0.0>
  look_at <0, 0, 0>
}

light_source { <-10, 20, -25> color White }       

light_source { <100, 50, -200> color White}


intersection {
  quadric {
    <1, -1, 1> <0, 0, 0><0, 0, 0>(1)    

    texture {  

      pigment { color rgb<0,0,1>}
    } 

  }      

  object { box {<-15, -5, -5>, <15, 5, 5> texture{ pigment { Clear } }  } }
  bounded_by { box {<-15, -15, -5>, <15, 15, 5> } }


  no_shadow
}

但我希望它看起来像 wiki 页面上的那样。谁能帮我解决这个问题?

【问题讨论】:

    标签: povray


    【解决方案1】:

    你的意思是这样的吗?

    // render with +UA
    #include "colors.inc"           
    
    //background {White}
    camera { orthographic
      location <0, 10, -30>
      look_at <0, 0, 0>
    }
    
    light_source { <-10, 20, -25> color White }       
    
    //light_source { <100, 50, -200> color White}
    
    
    #declare my_hyperboloid=intersection {
      quadric {
        <1, -1, 1> <0, 0, 0><0, 0, 0>(12)    
      }      
      object { box {<-20, -10, -10>, <20, 10, 10> texture{ pigment { Clear } }  } }
      bounded_by { box {<-20, -20, -10>, <20, 20, 10> } }
      no_shadow
    }
    
    object{my_hyperboloid scale <1,0.8,1> texture{pigment{color rgbt<0.44, 0.87, 0.87,0.1>}}}
    

    我建议您向 POV-Ray 新闻组 (http://news.povray.org/) 询问更详细的答案。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-09-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-09-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多