POV-Ray : Newsgroups : povray.general : Parametric: problem. : Parametric: problem. Server Time
3 Jul 2024 03:03:58 EDT (-0400)
  Parametric: problem.  
From: LanuHum
Date: 21 Aug 2015 14:20:00
Message: <web.55d76b3d49d08eec7a3e03fe0@news.povray.org>
Hi!
Povray-3.7/scenes/templates/Meshes_by_meshmaker_inc/D1_p_umbilic_1.txt:

object {

  #if (Set=1)
    Parametric(
      function(u,v){sin((u/3)-(2*v)) + 2*sin((u/3)+v)}
      function(u,v){cos(u)*((7+cos((u/3)-(2*v))+(2*cos((u/3)+v))))}
      function(u,v){sin(u)*((7+cos((u/3)-(2*v))+(2*cos((u/3)+v))))}
      <-pi, -pi>, < pi, pi>,
      50,50,""
    )
  #end

If I take these functions for parametric, the render goes, but the object
doesn't appear.

#version 3.7;


#include "functions.inc"

global_settings {
    assumed_gamma 1.000000
}
sky_sphere {
    pigment {rgb<0.050, 0.050, 0.050>}
}

#declare Default_texture = texture{pigment {rgb 0.8}}

#declare data_Parametric_shape_ob = parametric {
    function {sin((u/3)-(2*v)) + 2*sin((u/3)+v)}
    function {cos(u)*((7+cos((u/3)-(2*v))+(2*cos((u/3)+v))))}
    function {sin(u)*((7+cos((u/3)-(2*v))+(2*cos((u/3)+v))))}
    <-pi, -pi>, < pi, pi>
    contained_by { sphere{0, 1} }
    //contained_by { box{-1, 1} }
    max_gradient 50
    accuracy 0.0001
    precompute 10 x,y,z
}
object {data_Parametric_shape_ob
    texture {Default_texture}
    //matrix <1.000000, 0.000000, 0.000000,  0.000000, -0.000000, -1.000000,
0.000000, 1.000000, -0.000000,  0.000000, 0.000000, 0.000000>
}

light_source {
    <5.07,5.58,4.28>
    color rgb<1, 1, 1>
    fade_distance 25.0000000000
    fade_power 1
}
camera {
    perspective
    location  <0,0,0>
    look_at  <0,0,-1>
    right <-1.7777777777777777, 0, 0>
    up <0, 1, 0>
    angle  49.134343
    rotate  <-27.098163, 46.688390, -0.903519>
    translate <7.481132, 5.343666, 6.507640>
}

Where my error?


Post a reply to this message

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