POV-Ray : Newsgroups : povray.newusers : hf_height_at Server Time
4 Nov 2024 17:35:46 EST (-0500)
  hf_height_at (Message 1 to 5 of 5)  
From: Kurts
Subject: hf_height_at
Date: 31 May 2003 03:15:52
Message: <kurtzlepirate-0423E2.09154731052003@netplex.aussie.org>
an old scene with megapov 0.7 works with :
  #declare yVal =  hf_height_at(xPos, zPos, theHeightField);
  
now with megapov 1.0, i get this error message :
  #declare yVal =  hf_height_at <---- ERROR
  Parse Error: Cannot assign uninitialized identifier.

ho ho... megapov 1.0 has killed "hf_height_at" ??


Post a reply to this message

From: ingo
Subject: Re: hf_height_at
Date: 31 May 2003 03:53:25
Message: <Xns938C6523BBAD4seed7@povray.org>
in news:kur### [at] netplexaussieorg Kurts 
wrote:

> ho ho... megapov 1.0 has killed "hf_height_at" ??
> 
> 

Yes, instead look for "trace" in "6.1.4.6  Vector Functions" of the 3.5 
documentation.

Ingo


Post a reply to this message

From: Christoph Hormann
Subject: Re: hf_height_at
Date: 31 May 2003 07:13:43
Message: <3ED88E66.E247CA71@gmx.de>
Kurts wrote:
> 
> [...]
> 
> ho ho... megapov 1.0 has killed "hf_height_at" ??

No, this function was never intended to be available in megapov 1.0. 
Whoever told you that all features of megapov 0.x would be available in
megapov 1.0 was just plain wrong.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 28 Feb. 2003 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: Kurts
Subject: Re: hf_height_at
Date: 31 May 2003 07:16:53
Message: <kurtzlepirate-33FE22.13164731052003@netplex.aussie.org>
In article <Xns### [at] povrayorg>, ingo <ing### [at] tagpovrayorg> wrote:

> Yes, instead look for "trace" in "6.1.4.6  Vector Functions" of the 3.5 
> documentation.
> 
> Ingo


okay...

i don't understand why this function was removed so i write this one
that fully replace the old one :

//
-----------------------------------------------------------------------------------------
//
-----------------------------------------------------------------------------------------
#macro hf_height_at(thisX, thisZ, thisHF)
  #local normalHF = <0.00, 0.00, 0.00>;
  #local testPoint = <thisX, 0.00, thisZ>;
  #local vectorHF = <0.00, 1.00, 0.00>;
  #local intersectionHF = trace (thisHF, testPoint,vectorHF, normalHF);
  intersectionHF.y
#end
//
-----------------------------------------------------------------------------------------
//
-----------------------------------------------------------------------------------------


because my macro has the same name, nothing to change from the source file.
just past this macro and run the script !!!!

have fun


Post a reply to this message

From: Christopher James Huff
Subject: Re: hf_height_at
Date: 31 May 2003 14:53:56
Message: <cjameshuff-A01B4D.13553531052003@netplex.aussie.org>
In article <kur### [at] netplexaussieorg>,
 Kurts <kur### [at] yahoofr> wrote:

> i don't understand why this function was removed so i write this one
> that fully replace the old one :

It wasn't removed. MegaPOV 1.0 is a new patch collection based on POV 
3.5, and the new feature set makes some old patches unnecessary. The 
hf_height_at() patch was not included because it is quite useless: the 
trace() function can do the same thing and far more, hf_height_at() just 
isn't needed.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

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