POV-Ray : Newsgroups : povray.general : 3D Math (Reply to Spider) : Re: 3D Math (Reply to Spider) Server Time
12 Aug 2024 23:20:08 EDT (-0400)
  Re: 3D Math (Reply to Spider)  
From: Spider
Date: 15 Dec 1998 11:33:36
Message: <36768EAE.76B544C9@bahnhof.se>
Thanx...


> 
> I tweaked your code a bit... First thing I did was actually translate
> the spheres (which I made larger at a radius of 0.25.  Then I changed
> your random functions to rand(s)*(Radius * 2) - Radius so that the
> values could be positive or negative.  
This was in my own code, but I added it after posting... *smile* Thanx.

>Now, I expected I would be
> treated to a roughly spherical shape made up of spheres.  Wrong.  I got
> a roughly cubical shape made up of spheres.  
You too.... It really is baffeling...

>This is baffling me,
> because your test should eliminate the corners (The corners would occur
> when all of vd's vector components were 11s (positive and negative) but
> that should end up having a distance greater than 11.  I guess you could
> revert to the trig.  (triangles and all...but damned if the distance
> formula shouldn't have worked...)
I think it should, and it is mentioned in the manual as to work... (Yeah, I ripped
it...)
I could return to trig, but I'm not that good at the math...


> 
> Steve
> (I'll be messing with this, email me if you like and we'll figure this
> sucker out)

I'll keep looking at it...

//Spider


Post a reply to this message

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