POV-Ray : Newsgroups : povray.object-collection : Problems with bubble.inc : Problems with bubble.inc Server Time
16 Apr 2024 00:30:59 EDT (-0400)
  Problems with bubble.inc  
From: mone
Date: 2 Mar 2014 07:55:01
Message: <web.5313297c1f0c1bb0eaaefd950@news.povray.org>
Hi,

I need some nice bubbles for a nearly finished illustration, so I've checked out
the "Carbonated fluid bubble generator" from the objects collection.


I just dumped a camera and two area lights and a background into the scene (see
below) and added the lines with the example from the .inc file.

However, I can't find a single bubble in the rendered image (tried to fiddle
around with the camera position and lights abit, but still I don't see
anything).

Any suggestions, what could be the problem?

Thanks a lot,

Simone

--------

// 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)


Post a reply to this message

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