POV-Ray : Newsgroups : povray.binaries.images : Tuesday Un-useless Code (73kb) Server Time
25 Dec 2024 13:27:33 EST (-0500)
  Tuesday Un-useless Code (73kb) (Message 1 to 7 of 7)  
From: Budgery
Subject: Tuesday Un-useless Code (73kb)
Date: 27 Apr 2004 11:10:00
Message: <web.408e779cdf483c22a1fd027f0@news.povray.org>
Now you can take any object that has a discreet inside and outside and make
a blob out of it.

This simple death-star, for an easy example, just a sphere with a smaller
sphere CSG'd out of it, and next to it, the blobified version.

This example took 94 seconds to parse, 12 seconds to render

640x480 AA 0.3
Blob resolution = 40
(200 million tokens parsed)

Check in the scenes group for the code.

Note: I'm using the web interface to post this.  If that causes headache for
anyone, I'm sorry.  I use the web interface to post and read, and I have no
problems at all.


Post a reply to this message


Attachments:
Download 'blobify.jpg' (72 KB)

Preview of image 'blobify.jpg'
blobify.jpg


 

From: Mark Weyer
Subject: Re: Tuesday Un-useless Code (73kb)
Date: 27 Apr 2004 11:17:52
Message: <408E79D9.5040301@informatik.uni-freiburg.de>
> Note: I'm using the web interface to post this.  If that causes headache for
> anyone, I'm sorry.  I use the web interface to post and read, and I have no
> problems at all.

Note: I'm not bothering to manually decipher images that do not show up by
themselves. If that causes ignoring anyone's hard work, I'm sorry.


-- 
merge{#local i=-11;#while(i<11)#local
i=i+.1;sphere{<i*(i*i*(.05-i*i*(4e-7*i*i+3e-4))-3)10*sin(i)30>.5}#end
pigment{rgbt 1}interior{media{emission x}}hollow}//  Mark Weyer


Post a reply to this message

From: Rafal 'Raf256' Maj
Subject: Re: Tuesday Un-useless Code (73kb)
Date: 27 Apr 2004 11:20:04
Message: <Xns94D8B0381BA21raf256com@203.29.75.35>
bud### [at] yahoocom news:web.408e779cdf483c22a1fd027f0@news.povray.org

> Note: I'm using the web interface to post this.  If that causes
> headache for anyone, I'm sorry.  I use the web interface to post and
> read, and I have no problems at all.


 
> begin-base64 644 blobify.jpg
> /9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQE

:(


-- 
http://www.raf256.com/3d/
Rafal Maj 'Raf256', home page - http://www.raf256.com/me/
Computer Graphics


Post a reply to this message

From: Budgery
Subject: Re: Tuesday Un-useless Code (73kb)
Date: 27 Apr 2004 11:25:00
Message: <web.408e7adccbf0f5b5a1fd027f0@news.povray.org>
> Note: I'm not bothering to manually decipher images that do not show up by
> themselves. If that causes ignoring anyone's hard work, I'm sorry.
>

Maybe this will help...
http://filebox.vt.edu/users/rbudge/pics/povray/blobify.jpg
http://filebox.vt.edu/users/rbudge/pics/povray/blobify.inc


Post a reply to this message

From: Ross
Subject: Re: Tuesday Un-useless Code (73kb)
Date: 27 Apr 2004 16:00:22
Message: <408ebbd6$1@news.povray.org>
"Budgery" <bud### [at] yahoocom> wrote in message
news:web.408e7adccbf0f5b5a1fd027f0@news.povray.org...
>
> > Note: I'm not bothering to manually decipher images that do not show up
by
> > themselves. If that causes ignoring anyone's hard work, I'm sorry.
> >
>
> Maybe this will help...
> http://filebox.vt.edu/users/rbudge/pics/povray/blobify.jpg
> http://filebox.vt.edu/users/rbudge/pics/povray/blobify.inc
>

that does help, thanks.

not having time to read through the include file, is this just a "blobby"
looking object or will it interact with other blob { ... } objects? say, if
you put two of those "Death Star" objects next to each other how would they
interact?


Post a reply to this message

From: Budgery
Subject: Re: Tuesday Un-useless Code (73kb)
Date: 27 Apr 2004 17:00:00
Message: <web.408ec99ecbf0f5b5a1fd027f0@news.povray.org>
> not having time to read through the include file, is this just a "blobby"
> looking object or will it interact with other blob { ... } objects? say, if
> you put two of those "Death Star" objects next to each other how would they
> interact?

I'm not exactly sure what you're asking.  The blobified object is a true
blob.

Speaking of interactions, this bit of code is actually the first part of a
grand scheme where animated objects can interact with each other accurately
wihtout explicitly coding in the movements and interactions...example:
you've got a cube hurtling trough space at another cube, we'll just call
them Borg cubes for now...so imagine your two Borg cubes, both of them
rotated randomly, so they won't just bump into each other face-on.  When
they collide, one corner of a cube is going to impact before anything else
(most likely), and at that impact some momentum goes into changing
directions of the cubes, some goes into rotating the cubes...those changes
in momentum can be calculated, depending on masses, normals, centers of
mass, velocities, etc..

And the FIRST step in calculating all those things is to map out the outside
surface of the object/s.  So basically, this blobify function does that and
outputs the surface data into a blob.

Budge


Post a reply to this message

From: Ross
Subject: Re: Tuesday Un-useless Code (73kb)
Date: 27 Apr 2004 17:20:04
Message: <408ece84@news.povray.org>
"Budgery" <bud### [at] yahoocom> wrote in message
news:web.408ec99ecbf0f5b5a1fd027f0@news.povray.org...
>
> > not having time to read through the include file, is this just a
"blobby"
> > looking object or will it interact with other blob { ... } objects? say,
if
> > you put two of those "Death Star" objects next to each other how would
they
> > interact?
>
> I'm not exactly sure what you're asking.  The blobified object is a true
> blob.
>

yeah, thats about it ;)


Post a reply to this message

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