POV-Ray : Newsgroups : povray.general : Modeling complicated objects in POV-Ray Server Time
10 Aug 2024 05:23:31 EDT (-0400)
  Modeling complicated objects in POV-Ray (Message 11 to 15 of 15)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Bjorn Jonsson
Subject: Re: Modeling complicated objects in POV-Ray
Date: 28 Mar 2000 17:31:46
Message: <MPG.134b43f951bc66ac989682@news.povray.org>
In article <POzfOBclcGzgXuL4XVuaeAuoKOY6@4ax.com>, pet### [at] usanet 
says...

<snip>

> If you could turn those (really useful!) utilities into povray macros,
> I am sure many people will be thankful for making their lives a tad
> easier. About your question, I would usually use a macro for such
> tasks because it spares some trouble with switching consoles, copying
> & pasting etc.

This could be very interesting to do at some time. One of my problems 
though is that modelling in POV has turned out to be so fun that I've 
found it a little difficult to give myself time to finish reading the 
manual ;-). Despite this I knew a little about macros but since I had 
lots of code related to 2D/3D geometry lying around on my machine it was 
straightforward to 'tweak' it for this use.

I have also wondered that having lots of macros as opposed to numercial 
'constants' and coordinates might mess up the POV file since what I'm 
doing is not 'dynamic' - the objects don't change shape, not even in an 
animation. But I'm probably still a POV-beginner and don't have a good 
'feel' for how to do some things although it's improving - I have already 
partially rewritten the oldest (a few weeks) parts of my Cassini 
spacecraft POV file.

An example of what I have used my utilities for is creating a prism-like 
(as seen from a distance) object which has round corners when seen close-
up. I didn't achieve results I was satisfied with by using quadratic or 
cubic spline prisms (which is what I tried at first).

Bjorn Jonsson
bjj### [at] zzzmmediais - http://www.mmedia.is/~bjj
Remove yyy and zzz to reply


Post a reply to this message

From: Bjorn Jonsson
Subject: Re: Modeling complicated objects in POV-Ray
Date: 28 Mar 2000 17:39:28
Message: <MPG.134b45c73a796a1f989683@news.povray.org>
In article <38E0B316.800EE12C@online.no>, tto### [at] onlineno says...
> Tor Olav Kristensen wrote:
> 
> > As an example I have included below some macros that
> > solve your second problem (In 3D-space though).
> 
> Oops, I didn't read this thoroughly:

There was an error in what I posted so this is not strange.
 
> > Bjorn Jonsson wrote:
> >
> > > (2) Given two lines through three points (you can think of this as two
> > > out of three sides on a triangle), determine the center and radius of a
> > > circle which 'touches' one of the lines at a point with a known distance
> > > from the point common to the two lines.

The above is erroneous as indicated in another article. I meant a circle 
that 'touches' (is tangential to) *both* lines. Sorry for this error.
 
> The macros I posted finds the centre of a circle with a GIVEN radius,
> and that touches BOTH of your lines. The "touch-points" are also
> returned together with the normal-vector for the plane that the two
> lines lies in. (The centre of the circle lies in this plane.)

Which is very similar to what I was doing. Thanks for posting your 
macros, they are a good 'jump-start' for me in starting to have a proper 
look at POV macros.

Bjorn


Post a reply to this message

From: Mark Donovan
Subject: Re: Modeling complicated objects in POV-Ray
Date: 29 Mar 2000 13:35:15
Message: <38E24CDF.EEC053B3@email.com>
One way to avoid complex calculations for general intersections of
objects in 3D space is to assemble composite objects at the origin or on
a convenient coordinate axis. With the centers or edges of objects at
the origin, finding tangents and intersections is usually simple. After
a larger object is assembled, rotate and translate it into final position.

Mark

Bjorn Jonsson wrote:
> 
> The point is that while making this
> model I have found it almost impossible to construct certain parts of it
> without using lots of small 'command line' utilities I wrote in C++ to do
> some geometric calculations...
>


Post a reply to this message

From: cadman
Subject: Re: Modeling complicated objects in POV-Ray
Date: 29 Mar 2000 18:23:07
Message: <38e2905b@news.povray.org>
This sounds like fun.  Can I help turn your code into POV macros?  Or see
your source code?  I like to program, and would be glad to help!

Bjorn Jonsson <bjj### [at] zzzmmediais> wrote in message
news:MPG.134b43f951bc66ac989682@news.povray.org...
> In article <POzfOBclcGzgXuL4XVuaeAuoKOY6@4ax.com>, pet### [at] usanet
> says...
>
> <snip>
>
> > If you could turn those (really useful!) utilities into povray macros,
> > I am sure many people will be thankful for making their lives a tad
> > easier. About your question, I would usually use a macro for such
> > tasks because it spares some trouble with switching consoles, copying
> > & pasting etc.
>
> This could be very interesting to do at some time. One of my problems
> though is that modelling in POV has turned out to be so fun that I've
> found it a little difficult to give myself time to finish reading the
> manual ;-). Despite this I knew a little about macros but since I had
> lots of code related to 2D/3D geometry lying around on my machine it was
> straightforward to 'tweak' it for this use.
>
> I have also wondered that having lots of macros as opposed to numercial
> 'constants' and coordinates might mess up the POV file since what I'm
> doing is not 'dynamic' - the objects don't change shape, not even in an
> animation. But I'm probably still a POV-beginner and don't have a good
> 'feel' for how to do some things although it's improving - I have already
> partially rewritten the oldest (a few weeks) parts of my Cassini
> spacecraft POV file.
>
> An example of what I have used my utilities for is creating a prism-like
> (as seen from a distance) object which has round corners when seen close-
> up. I didn't achieve results I was satisfied with by using quadratic or
> cubic spline prisms (which is what I tried at first).
>
> Bjorn Jonsson
> bjj### [at] zzzmmediais - http://www.mmedia.is/~bjj
> Remove yyy and zzz to reply


Post a reply to this message

From: David Fontaine
Subject: Re: Modeling complicated objects in POV-Ray
Date: 30 Mar 2000 21:54:05
Message: <38E41234.DE081B93@faricy.net>
As a (ex?)programmer myself, a bit of a math whiz, and a die-hard hand-coder,
I usually write some macros to do it, or if it's a one-time thing, just whip
out my 89 :-)
Cassini would have a fairly definable shape since it's a space vehicle, lots
of cones and stuff, tedious but fairly approachable. Lots of trig probably.
The big limitation of hand-coding, though, is when you run into more organic
or ergonomic curves, like maybe a computer mouse, in which case I use sPatch.

--
___     _______________________________________________
 | \     |_          <dav### [at] faricynet> <ICQ 55354965>
 |_/avid |ontaine        http://www.faricy.net/~davidf/

"The only difference between me and a madman is that I'm not mad." -Dali


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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