POV-Ray : Newsgroups : povray.binaries.images : Ball of Random Boxes Server Time
14 Nov 2024 22:21:26 EST (-0500)
  Ball of Random Boxes (Message 1 to 10 of 16)  
Goto Latest 10 Messages Next 6 Messages >>>
From: Janet
Subject: Ball of Random Boxes
Date: 23 May 2006 23:50:01
Message: <web.4473d6b4360532eb7e8a39890@news.povray.org>
Well, its pretty much what the subject line says. The code can be found here
http://www.deviantart.com/view/33552164/  It can be modified for the number
of boxes (n) and the box sizes and size variance too. Also just wanted to
say all the greeble stuff looks so fun!
Janet


Post a reply to this message


Attachments:
Download 'boxspheresurface.jpg' (175 KB)

Preview of image 'boxspheresurface.jpg'
boxspheresurface.jpg


 

From: Sven Littkowski
Subject: Re: Ball of Random Boxes
Date: 24 May 2006 04:04:34
Message: <44741392@news.povray.org>
Wow!

Wow, again!  It looks also very nice! Hey, Janet, why not you make the 
underground blue lightly wavy beach water? Or turkey Caribbean water?

Sven


Post a reply to this message

From: Sven Littkowski
Subject: Re: Ball of Random Boxes
Date: 24 May 2006 04:06:14
Message: <447413f6@news.povray.org>
... and maybe with some reflections of palms on the water surface?

Sven


Post a reply to this message

From: POVMAN
Subject: Re: Ball of Random Boxes
Date: 24 May 2006 04:41:58
Message: <44741c56$1@news.povray.org>
Looks like the same tech' I used in SOTW.  get enough boxes and the surface 
comes to life.  real cool image BTW.

-- 
#####-----#####-----#####
POV Tips and Hints at ...
http://povman.blogspot.com/


Post a reply to this message

From: PM 2Ring
Subject: Re: Ball of Random Boxes
Date: 24 May 2006 10:15:01
Message: <web.44746a4ca72e66f41bd1c060@news.povray.org>
"Janet" <par### [at] attnet> wrote:
> Well, its pretty much what the subject line says. The code can be found here
> http://www.deviantart.com/view/33552164/  It can be modified for the number
> of boxes (n) and the box sizes and size variance too.

Nice one, Janet. The harmonious colour balance complements the jaggedness
created by the boxes.

> Also just wanted to say all the greeble stuff looks so fun!

Yeah! Me wanna play with greebles, too... but I've got a bunch of povray.org
Links to fix first!


Post a reply to this message

From: Janet
Subject: Re: Ball of Random Boxes
Date: 24 May 2006 20:45:01
Message: <web.4474fd86a72e66f4f2f4cea50@news.povray.org>
"Sven Littkowski" <sve### [at] jamaica-focuscom> wrote:
> ... and maybe with some reflections of palms on the water surface?
>
> Sven

Hi Sven, I could, I guess. I have some really crappy looking palm trees I
made a long time ago, maybe they'd look better as just reflections in
water. Other things one could do is use cones or cylinders, anything
really, in place of the boxes.


Post a reply to this message

From: Janet
Subject: Re: Ball of Random Boxes
Date: 24 May 2006 20:50:00
Message: <web.4474fe62a72e66f4f2f4cea50@news.povray.org>
"POVMAN" <s### [at] acom> wrote:
> Looks like the same tech' I used in SOTW.  get enough boxes and the surface
> comes to life.  real cool image BTW.

Its a fun technique, nice SOTW too!


Post a reply to this message

From: Janet
Subject: Re: Ball of Random Boxes
Date: 24 May 2006 20:55:00
Message: <web.4474ff7da72e66f4f2f4cea50@news.povray.org>
"PM 2Ring" <nomail@nomail> wrote:
> Nice one, Janet. The harmonious colour balance complements the jaggedness
> created by the boxes.
Thanks!
> > Also just wanted to say all the greeble stuff looks so fun!
>
> Yeah! Me wanna play with greebles, too... but I've got a bunch of povray.org
> Links to fix first!
Me wanna play all the time. Hmm, since you're fixing links, do you have this
one? http://www.pims.math.ca/knotplot/


Post a reply to this message

From: Mark Birch
Subject: Re: Ball of Random Boxes
Date: 24 May 2006 23:05:01
Message: <web.44751e1ca72e66f44daddc090@news.povray.org>
"Janet" <par### [at] attnet> wrote:
> Well, its pretty much what the subject line says. The code can be found here
> http://www.deviantart.com/view/33552164/  It can be modified for the number
> of boxes (n) and the box sizes and size variance too. Also just wanted to
> say all the greeble stuff looks so fun!
> Janet

Nice image & great colours!
But could you have found a harder way to code it?
I've never used a matrix transformation.  I don't know how it works.

This code will do the same thing, just put the box in a good starting
position and let 'rotate' do all the work...

#version 3.6;
// --------------------------------------------------------------
#global_settings{
  assumed_gamma 1.0
  max_trace_level 5
  radiosity{count 35 error_bound 0.1}
}
// --------------------------------------------------------------
#macro RandLH(L,H)
  (rand(R0)*(H-L)+L)
#end
// --------------------------------------------------------------
#declare R0 = seed(1); // random seed
#declare SR = 10; // sphere radius
#declare Bmin = 0.3; // minimum box scale
#declare Bmax = 1.0; // maximum box scale
// --------------------------------------------------------------
union{
  #declare num = 3500;
  #local ca = 0;
  #while(ca<num)
    //box{-0.5, 0.5
    superellipsoid{<0.2, 0.2> scale 0.5
      scale<RandLH(Bmin, Bmax), RandLH(Bmin, Bmax), RandLH(Bmin, Bmax)>
      translate SR*y
      rotate<RandLH(0,180), RandLH(0,360), 0>
    }
    #local ca = ca+1;
  #end
  texture{pigment{color rgb 1} finish{ambient 0 diffuse 1}}
}
// --------------------------------------------------------------
light_source{<-2, 2, 1>*1000 color rgb <1.0, 1.0, 0.5>*2}
light_source{<0, 0, 0> color rgb <0.2, 0.5, 0.5>*2}
camera{
  perspective
  location<0, 0, -50>
  up y*(image_height/image_width)
  right x
  sky y
  look_at <0, 0, 0>
  angle 40
}
// -------------------------------------------------- end of file


Post a reply to this message

From: Janet
Subject: Re: Ball of Random Boxes
Date: 24 May 2006 23:50:00
Message: <web.44752918a72e66f4f2f4cea50@news.povray.org>
"Mark Birch" <las### [at] hotmailcom> wrote:
> Nice image & great colours!
Thanks
> But could you have found a harder way to code it?
Yes, I probably could have.
> This code will do the same thing, just put the box in a good starting
> position and let 'rotate' do all the work...
This is a very good point Mark, and now I feel like an idiot for not having
thought of it that way. My thinking started out as using the equation for
the surface of a sphere and it kind of went from there. The matrix
transform is kind of interesting, though. There's a good explanation of it
here: http://www.geocities.com/evilsnack/matrix.htm


Post a reply to this message

Goto Latest 10 Messages Next 6 Messages >>>

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