POV-Ray : Newsgroups : povray.object-collection : Problems with bubble.inc : Re: Problems with bubble.inc Server Time
29 Jan 2023 21:20:33 EST (-0500)
  Re: Problems with bubble.inc  
From: FractRacer
Date: 2 Mar 2014 08:04:35
Message: <53132c63$1@news.povray.org>

> // perspective (default) camera
> camera {
>    location  <0.0, 2.0, -8.0>
>    look_at   <0.0, 0.0,  0.0>
>    right     x*image_width/image_height
>
> }
>
> // An area light (creates soft shadows)
> // WARNING: This special light can significantly slow down rendering times!
> light_source {
>    0*x                 // light's position (translated below)
>    color rgb 1.0       // light's color
>    area_light
>    <8, 0, 0> <0, 0, 8> // lights spread out across this distance (x * z)
>    4, 4                // total number of lights in grid (4x*4z = 16 lights)
>    adaptive 0          // 0,1,2,3...
>    jitter              // adds random softening of light
>    circular            // make the shape of the light circular
>    orient              // orient light
>    translate <40, 80, -40>   // <x y z> position of light
> }
>
>
>
>
> // An area light (creates soft shadows)
> // WARNING: This special light can significantly slow down rendering times!
> light_source {
>    0*x                 // light's position (translated below)
>    color rgb 1.0       // light's color
>    area_light
>    <8, 0, 0> <0, 0, 8> // lights spread out across this distance (x * z)
>    4, 4                // total number of lights in grid (4x*4z = 16 lights)
>    adaptive 0          // 0,1,2,3...
>    jitter              // adds random softening of light
>    circular            // make the shape of the light circular
>    orient              // orient light
>    translate <40, 80, 40>   // <x y z> position of light
> }
>
>   // set a color of the background (sky)
> background { color rgb <0.4, 0.4, 0.4> }
>
>
>
> #include "bubble.inc"
> // Example from bubble.inc file
> #declare bblTexture = texture {finish {ambient 0.3 diffuse 0.1 reflection 0.25
> specular 1 roughness 0.001} pigment {color rgbf <1,1,1,0.7>}}
> #declare bubbleGenerator =
> mBubbleGenerator(0,0.9,0,0,6.5,0,2.4,2.7,0.0005,0.0006,70,bblTexture)

Hello,

The last line of your code declare only the object, you must call the 
object, add the following to your code:
object {bubbleGenerator}

Lionel.

-- 
Do not judge my words, judge my actions.

---

http://www.avast.com


Post a reply to this message

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