POV-Ray : Newsgroups : povray.general : Gravels in a glass sphere Server Time
27 Dec 2024 21:55:52 EST (-0500)
  Gravels in a glass sphere (Message 1 to 10 of 13)  
Goto Latest 10 Messages Next 3 Messages >>>
From: Dirk "DIRKO" Legler
Subject: Gravels in a glass sphere
Date: 14 Feb 2003 07:17:18
Message: <3e4cde4e$1@news.povray.org>
Hi!

To improve the image I posted to p.b.i, I want to know what's the best way
to create some gravels or sand and put it on the bottom of a glass sphere
(fish glass). And ideas?
I already tried some blobs, but I couldn't figure out how to put them in the
sphere correctly and they looked too artifical..

Dirk "DIRKO" Legler


Post a reply to this message

From: Tim Nikias
Subject: Re: Gravels in a glass sphere
Date: 14 Feb 2003 07:57:39
Message: <3e4ce7c3$1@news.povray.org>
Though I haven't used it myself before, you might use the
Mechsim from Christoph Hormann, model a stone and
let Mechsem calculate (via gravity and such) where it would
lie.
Otherwise I guess its pretty much trial and error, unless you
write some nifty little algorithm to do that yourself, if you don't
use Mechsim.

--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmxde

> Hi!
>
> To improve the image I posted to p.b.i, I want to know what's the best way
> to create some gravels or sand and put it on the bottom of a glass sphere
> (fish glass). And ideas?
> I already tried some blobs, but I couldn't figure out how to put them in the
> sphere correctly and they looked too artifical..
>
> Dirk "DIRKO" Legler
>
>


Post a reply to this message

From: Dirk "DIRKO" Legler
Subject: Re: Gravels in a glass sphere
Date: 14 Feb 2003 08:55:58
Message: <3e4cf56e@news.povray.org>
I tried simpov before but couldn't figure out how it could work..
Second problem: I don't know how to create nice and realistic gravels..

DIRKO


Post a reply to this message

From: Tim Nikias
Subject: Re: Gravels in a glass sphere
Date: 14 Feb 2003 09:18:04
Message: <3e4cfa9c@news.povray.org>
As for the gravels, I'd be going along with blobs
myself, unless someone models them with something
like Rhino, Wings or such. I guess the most difficult
part for that would be the texturing to make it look
real.
As for Simpov and Mechsim: I've never used them myself,
but some animations in binaries.animations suggest that
Mechsim may do what you're trying to do, though it might
be a little difficult to do so.

--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmxde

> I tried simpov before but couldn't figure out how it could work..
> Second problem: I don't know how to create nice and realistic gravels..
>
> DIRKO
>
>


Post a reply to this message

From: Dirk "DIRKO" Legler
Subject: Re: Gravels in a glass sphere
Date: 14 Feb 2003 10:40:30
Message: <3e4d0dee@news.povray.org>
I will try simpov later..
My blob-tries to create gravels didn't really look well..

btw, Tim.. Why we don't write in German.. seems as if there's noone else
reading this..

DIRKO

"Tim Nikias" <tim### [at] gmxde> schrieb im Newsbeitrag
news:3e4cfa9c@news.povray.org...
> As for the gravels, I'd be going along with blobs
> myself, unless someone models them with something
> like Rhino, Wings or such. I guess the most difficult
> part for that would be the texturing to make it look
> real.
> As for Simpov and Mechsim: I've never used them myself,
> but some animations in binaries.animations suggest that
> Mechsim may do what you're trying to do, though it might
> be a little difficult to do so.
>
> --
> Tim Nikias
> Homepage: http://www.digitaltwilight.de/no_lights/index.html
> Email: Tim### [at] gmxde
>
> > I tried simpov before but couldn't figure out how it could work..
> > Second problem: I don't know how to create nice and realistic gravels..
> >
> > DIRKO
> >
> >
>
>


Post a reply to this message

From: Tom Melly
Subject: Re: Gravels in a glass sphere
Date: 14 Feb 2003 11:02:51
Message: <3e4d132b@news.povray.org>
"Dirk "DIRKO" Legler" <dir### [at] dirkonet> wrote in message
news:3e4d0dee@news.povray.org...
> I will try simpov later..
> My blob-tries to create gravels didn't really look well..
>
> btw, Tim.. Why we don't write in German.. seems as if there's noone else
> reading this..
>

Reading, yes, helpful input, no....

Well, except, have you thought of trying an iso-surface for your gravel?


Post a reply to this message

From: S McAvoy
Subject: Re: Gravels in a glass sphere
Date: 14 Feb 2003 11:15:58
Message: <3e4d160a.86666119@news.povray.org>
On Fri, 14 Feb 2003 16:02:50 -0000, "Tom Melly" <tom### [at] tomandlucouk> wrote:

>"Dirk "DIRKO" Legler" <dir### [at] dirkonet> wrote in message

>> btw, Tim.. Why we don't write in German.. seems as if there's noone else
>> reading this..

>
>Reading, yes, helpful input, no....
>

Tom has a point, some of us lurk, read and learn. It was very polite of you to
ask in English though.

Regards
        Stephen


Post a reply to this message

From: Dirk "DIRKO" Legler
Subject: Re: Gravels in a glass sphere
Date: 14 Feb 2003 11:31:21
Message: <3e4d19d9@news.povray.org>
"Tom Melly" <tom### [at] tomandlucouk> schrieb im Newsbeitrag
news:3e4d132b@news.povray.org...
> Well, except, have you thought of trying an iso-surface for your gravel?

I never worked with iso-surfaces before so I don't even know how to create
them.. I created a nice blob gravel now with a texture from stones1.inc.
But now I have a problem I think I will never solve: How do I get simpov to
work? The tutorials work but I don't understand them ;) I have a field of
gravels now and want them to fall down into the glass. How can I do that?
All I got to work is a "mass" from simpov which just hangs there and doesn't
move..

DIRKO


Post a reply to this message

From: Tom Melly
Subject: Re: Gravels in a glass sphere
Date: 14 Feb 2003 12:00:20
Message: <3e4d20a4$1@news.povray.org>
"Dirk "DIRKO" Legler" <dir### [at] dirkonet> wrote in message
news:3e4d19d9@news.povray.org...

> All I got to work is a "mass" from simpov which just hangs there and doesn't
> move..
>

I'm afraid I don't know simpov, so I can't really advise (btw you probably want
to post to unofficial.patches rather than general for questions about simpov).

However, is simpov your preffered option, or just the only currently available
one?

Trace is available within 3.5, which might do what you want - I've used it to
place mayonaisse on sandwiches, snow on trees and other objects, and to build
dry-stone walls.

If you're interested in that approach, you can take a look at the sources, and
feel free to ask for further info.

www.tomandlu.co.uk/raytracing/gallery - see winter tree, narnia and lab for this
use of trace.

The nice thing about trace - or rather the pov sdl - is that you can use trace
to detect the surface of a particular object, place your new component on that
point, and then redeclare your object to include that new component - e.g. (iirc
and in this case rather redundantly)

#declare Foo = box{0,<1,-0.1,1>}

#declare N = 0;
#while(N<100)
    #declare Foo =
    union{
        object{Foo}
        sphere{0, rand(R1)+0.25 translate<rand(R1),0,rand(R1)>
    }
    #declare N = N+1;
#end


Post a reply to this message

From: Tom A 
Subject: Re: Gravels in a glass sphere
Date: 14 Feb 2003 18:11:19
Message: <3E4D7797.9090008@my-deja.com>
Dirk \"DIRKO\" Legler wrote:
> Hi!
> 
> To improve the image I posted to p.b.i, I want to know what's the best way
> to create some gravels or sand and put it on the bottom of a glass sphere
> (fish glass). And ideas?
> I already tried some blobs, but I couldn't figure out how to put them in the
> sphere correctly and they looked too artifical..
> 
> Dirk "DIRKO" Legler

I tried a couple of things:

sphere{<jj,ii,kk> .1
        pigment{ rgb .25+rand(rr)/3 }  // various gray colors
        //   pigment{ rgb <rand(rr),rand(rr),rand(rr)> }
             // random colored gravel
        normal{ facets coords 1.7}
}

That was OK.  I also created a macro to make spheres with random flat 
surfaces:

#macro facettedSphere(ssize,seedling)
   #local r=seed(seedling);
   difference{
     sphere{0, ssize}
     #local i = 0;
     #local j = int(rand(r) * 10 + rand(r)*10 + 1);
     #while (i < j )
       plane{ -y, -ssize*(.75+rand(r)/5)
              rotate< rand(r)*360,rand(r)*360, rand(r)*360>
            }
       #local i = i + 1;
     #end // i loop
   } // differenct

#end // facettedSphere

Used thus:

object{ facettedSphere( .099, rand(rr)*906 )
         translate<jj,ii,kk>
         pigment{ rgb <rand(rr),rand(rr),rand(rr)> }
       }

That looked a bit better.

However, when I put them in a M_Glass media sphere, with a modified 
M_Water media (water without the ripples, since it was giving ripples 
through the part that was against the glass) - it didn't matter what 
color or shape they were - they all faded into vague grey blobs.

Good luck.

-- 
Tom A.
"I've got the whole world
In my hands" - John, 3 year old Megalomaniac


Post a reply to this message

Goto Latest 10 Messages Next 3 Messages >>>

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