POV-Ray : Newsgroups : povray.general : billboarding and vector functions : Re: billboarding and vector functions Server Time
19 Nov 2024 01:25:14 EST (-0500)
  Re: billboarding and vector functions  
From: Christoph Hormann
Date: 28 May 2002 12:48:30
Message: <3CF3B4DE.9F133A0E@gmx.de>
Jeff Nighbert wrote:
> 
> Hi folks,
> I am a new-bee and I need to know how to cause my objects to always
> "face the camera"    (In other words I would like to have an image
> texture on a plane be perpendicular to the camera at all times.(such as
> trees, clouds, other texture images.)) I have tried several of the
> vector functions, but I haven't come across the right one.  Could
> someone help me or give me an example?

In POV-Ray 3.5 try 'Reorient_Trans()' from 'transforms.inc',
'camera_location - object_position' as Axis2 and the direction on the
object you want to face to the camera as Axis1.

You might also have a look at 'screen.inc' maybe that's just what you are
looking for.

Christoph

-- 
POV-Ray tutorials, IsoWood include,                 
TransSkin and more: http://www.tu-bs.de/~y0013390/  
Last updated 05 May. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

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