POV-Ray : Newsgroups : povray.binaries.images : can any one tell me what's wrong with my iso? : Re: can any one tell me what's wrong with my iso? Server Time
19 Aug 2024 22:13:22 EDT (-0400)
  Re: can any one tell me what's wrong with my iso?  
From: Tor Olav Kristensen
Date: 15 Oct 2000 20:06:18
Message: <39EA463D.1F0F451F@online.no>
There's nothing wrong with your ISO. =)

Oded wrote:
> 
> here is a source of an iso, when rendering i get 
> the result attached to this message.
> i do not understand why I get a flat shape,
> probably there are problems calculating the normal
> Or maybe something else...
> If anyone knows what the problem might be...

The problem is your camera position and your 
light setting.

See code below my suggestion for a new scene with 
your iso-surface.

The first enclosed image shows your ISO-shape.


This function also generates an interesting shape:
(The second enclosed image with the red shape)

  function {
    (-V1*x -V2*y)*
    (-V1*x +V2*y)*
    ( V1*x -V2*y)*
    ( V1*x +V2*y)*

    (-V1*y -V2*z)*
    (-V1*y +V2*z)*
    ( V1*y -V2*z)*
    ( V1*y +V2*z)*

    (-V1*z -V2*x)*
    (-V1*z +V2*x)*
    ( V1*z -V2*x)*
    ( V1*z +V2*x)
  }


Tor Olav
-- 
mailto:tor### [at] hotmailcom
http://www.crosswinds.net/~tok/tokrays.html


#version unofficial MegaPov 0.5;

#include "colors.inc"

#declare g = (1 + sqrt(5))/2;
#declare V1 = (3*g + 1)*0.02;
#declare V2 = (4*g + 3)*0.02;

isosurface {
  function {
    if(-1 - V1*x - V2*y, 1, 0)+
    if(-1 - V1*x + V2*y, 1, 0)+
    if(-1 + V1*x - V2*y, 1, 0)+
    if(-1 + V1*x + V2*y, 1, 0)+

    if(-1 - V1*y - V2*z, 1, 0)+
    if(-1 - V1*y + V2*z, 1, 0)+
    if(-1 + V1*y - V2*z, 1, 0)+
    if(-1 + V1*y + V2*z, 1, 0)+
                            
    if(-1 - V1*z - V2*x, 1, 0)+
    if(-1 - V1*z + V2*x, 1, 0)+
    if(-1 + V1*z - V2*x, 1, 0)+
    if(-1 + V1*z + V2*x, 1, 0)
  }
  threshold 1.5
  contained_by { box { 10*<-1, -1, -1>, 10*<1, 1, 1> } }
  method 1
  pigment { color Cyan }
  no_shadow
}

background { color Blue/2 }

light_source { 100*(V1*x - V2*z) color Gray60 }
light_source { 100*(V1*x + V2*y) color White }

camera {
  location <2, 4, -7>*8
  look_at <0, 0, 0>
  angle 25
}


Post a reply to this message


Attachments:
Download 'test_iso01.jpg' (10 KB) Download 'test_iso04.jpg' (10 KB)

Preview of image 'test_iso01.jpg'
test_iso01.jpg

Preview of image 'test_iso04.jpg'
test_iso04.jpg


 

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