POV-Ray : Newsgroups : povray.binaries.animations : irtc early WIP (~550k mpeg1) : Re: irtc early WIP (~550k mpeg1) Server Time
19 Jul 2024 05:39:15 EDT (-0400)
  Re: irtc early WIP (~550k mpeg1)  
From: Tek
Date: 14 Aug 2003 16:54:26
Message: <3f3bf702$1@news.povray.org>
"Hugo Asm" <hua### [at] post3teledk> wrote in message
news:3f3b62a6@news.povray.org...
> Great, mighty glows!  :o) Smooth movement.. really nice. Perhaps I should
> read the thread from "really hot thing".

It's pretty simple really, here's the code I use to put glows on the lights:


#include "transforms.inc"

//set the camera position and location
#declare vCamPos  = <0,1.5,0>;
#declare vCamLook = <0,0,20>;

//place the camera so that the mirror image will appear to be from the desired
position.
#declare vMirrorPos = vCamPos + vnormalize(vCamLook-vCamPos)*.001;
camera {
 right   x*image_width/image_height
 up    y
 direction -z*.7 //use -ve z, to compensate for reversal in the mirror

 location vMirrorPos-(vCamPos-vMirrorPos)
 look_at vMirrorPos
}

//the mirror
disc {
 0, -z, .002

 texture {
  pigment { rgb 0 }
  finish {
   reflection 1    //reflection, to show the image
   specular 3 roughness .005    //highlights, to give glows on lights
  }
 }

 Reorient_Trans( -z, (vCamLook-vCamPos)*<1,0,1> )
 Reorient_Trans( (vCamLook-vCamPos)*<1,0,1>, vCamLook-vCamPos )

 translate vMirrorPos
}


-- 
Tek
http://www.evilsuperbrain.com


Post a reply to this message

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