POV-Ray : Newsgroups : povray.pov4.discussion.general : Interrupt code Server Time: 18 Jun 2019 07:34:20 GMT
  Interrupt code (Message 1 to 1 of 1)  
From: arblick spule
Subject: Interrupt code
Date: 12 Sep 2010 01:50:00
Message: <web.4c8c309bef9c591794a219fc0@news.povray.org>
Maybe POV4 could include a kind of pluggable script within the engine that would
allow people to implement different stuff (shading models, cartoon rendering,
etc, etc, (yes - ambient occlusion(!)!)!).

Simple as using POV->Trace->Output*result.

on_trace(x,y)
{
  #if(trace(x,y)>=.5)
     final_pixel_color = 0.5;
  #else
     final_pixel_color = "whatever it should have been";
  #end
}

x and y being derived from the camera & look_at etc.


?


Post a reply to this message

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