POV-Ray : Newsgroups : povray.unofficial.patches : Megapov 0.5 and heightfield Server Time
2 Sep 2024 08:16:04 EDT (-0400)
  Megapov 0.5 and heightfield (Message 11 to 13 of 13)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Fabian BRAU
Subject: Re: Megapov 0.5 and heightfield
Date: 19 May 2000 07:45:21
Message: <39252943.845C3D3@umh.ac.be>
Suppose you have a heightfield with a material_map:

This is the feature of official and megapov0.5:

If you scale by scale <x,y,z> the heightfield (after the texture is 
given) so the material_map will still be good on the heightfield 
(you don't need to change anything), the position of each textures on
the hieghtfield will be good, BUT you will need to scale all 
the subtexture by scale <1/x,1/y,1/z>, otherwise it don't look the 
same!

This is the fearute of megapov0.4

If you scale by scale <x,y,z> the heightfield (after the texture is
given) you don't need to perform any modification!

I think the second solution is the good one because:
I have an object, I render it. Now I scale this object by 10,
I move the camera, the light, etc... accordingly, I render,
I must get the same image!
A scene must be always scale independant. I don't know if
other feature in the official pov does not repect this but...
It msut :).

Fabian.



> 
>   If I have:
> 
> sphere
> { 0,1
>   texture { whatever }
>   scale 2
> }
> 
> the texture is scaled by 2 as well as the object itself.
> 
>   If I have:
> 
> heigh_field
> { whatever
>   texture { whatever }
>   scale 2
> }
> 
> I expect no different behaviour here. The texture should be scaled by 2 as
> well as the primitive in question (in this case a heighfield, but it
> shouldn't matter which).
>   Does it work in a different way?-o
> 
> --
> main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
> ):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Warp
Subject: Re: Megapov 0.5 and heightfield
Date: 19 May 2000 09:17:44
Message: <39253ef8@news.povray.org>
Fabian BRAU <Fab### [at] umhacbe> wrote:
: I have an object, I render it. Now I scale this object by 10,
: I move the camera, the light, etc... accordingly, I render,
: I must get the same image!

  Yes, I agree.

  If I make this:

object
{ Whatever
  texture { MyTexture }
  scale 10
}

I expect that to work identically no matter what kind of texture is that
'MyTexture'. It should not behave differently depending on whether it's
just a constant colored pigment or a material_map.
  If I scale everything by 10 I expect to get the exact same image.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: TonyB
Subject: Re: Megapov 0.5 and heightfield
Date: 19 May 2000 09:53:56
Message: <39254774@news.povray.org>
height_field
{ whatever
  scale anything
  texture { whatever }
}

This should solve your problem, no?


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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