POV-Ray : Newsgroups : povray.pov4.discussion.general : Interrupt code Server Time
22 Dec 2024 07:13:04 EST (-0500)
  Interrupt code (Message 1 to 1 of 1)  
From: arblick spule
Subject: Interrupt code
Date: 11 Sep 2010 21: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-2023 Persistence of Vision Raytracer Pty. Ltd.