POV-Ray : Newsgroups : povray.unofficial.patches : MegaPov : Re: MegaPov Bugs Server Time
2 Sep 2024 22:14:05 EDT (-0400)
  Re: MegaPov Bugs  
From: Ken
Date: 11 Dec 1999 00:23:20
Message: <3851DF9D.7CBE9FB3@pacbell.net>
> Nathan Kopp wrote:
> 
> > With all of these changes, there are likely to be bugs
 
 I'll submit more as I find them...


// Persistence Of Vision raytracer version 3.1e (isosurface patch)
// sample file by R.Suzuki   <rsu### [at] etlgojp>  Apr.'99
// Torus2.pov from the iso_demo directory

#include "isocom.inc"

#declare R0=5;
#declare R1=0.7;
#declare FUNC1=function {"torus",<R0,R1>}

#declare TH= function {"TH"} //function{"FUNC1"}

isosurface {
     function {FUNC1(x,y+cos(TH*7)*0.3,z)}
     bounded_by{ box {<-R0-R1,-R0,-R0-R1>,<R0+R1,R0,R0+R1>}} 
     eval
     accuracy 0.001 
     scale <1,1,1>
     texture {ComYw}
}


The above returns the following warning:

#declare TH= function{"TH"}

isosurface {
     function {FUNC1(x,y+cos(TH* <----ERROR

F:\Program Files\POV-Ray for Windows v3.1\megapov\demos\Multipatch NPov\
Isosurface_isoblob\Iso demo\torus2.pov:15: error: 

The function 'TH' needs arguments. Should be TH(...)

Returned from renderer (non-zero return value)


If I replace #declare TH = function{"FUNC1"} the program crashes with the
following page fault

MEGAPOV caused an invalid page fault in
module MEGAPOV.EXE at 015f:0048a304.
Registers:
EAX=00000006 CS=015f EIP=0048a304 EFLGS=00010202
EBX=00000003 SS=0167 ESP=0306ee28 EBP=00916b48
ECX=00000000 DS=0167 ESI=00000000 FS=1bcf
EDX=0a524f52 ES=0167 EDI=00916b18 GS=0000
Bytes at CS:EIP:
8b 14 81 52 e8 a3 98 00 00 8b 0d 10 b0 51 00 83 
Stack dump:
00000000 00493cb5 0043e92d 004dda24 004dc598 000006e1
00916b48 0041ab75 00000000 004dc598 000006e1 00000000
0041abe3 00916b48 00916b48 0046db54
 

-- 
Ken Tyler -  1200+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

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