POV-Ray : Newsgroups : povray.general : Parametric: problem. Server Time
26 Dec 2024 11:39:14 EST (-0500)
  Parametric: problem. (Message 1 to 2 of 2)  
From: LanuHum
Subject: Parametric: problem.
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

From: LanuHum
Subject: Re: Parametric: problem.
Date: 22 Aug 2015 13:00:01
Message: <web.55d8a966d8fbdaf37a3e03fe0@news.povray.org>
Another joins this problem:
#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 { cos(v)*(1+cos(u))*sin(v/8) }
    function { sin(u)*sin(v/8)+cos(v/8)*1.5 }
    function { sin(v)*(1+cos(u))*sin(v/8) }
    <0.0000,0.0000>, <6.2800,12.5700>
    contained_by { box{-1, 1} }
    max_gradient 5.000000
    accuracy 0.001000
    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>
}

In the Blender it is created as a cockleshell.
Look Parametric problem: image
http://news.povray.org/povray.binaries.images/message/%3Cweb.55d8a721943387b7a3e03fe0%40news.povray.org%3E/#%3Cweb.55d8
a721943387b7a3e03fe0%40news.povray.org%3E


Post a reply to this message

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