POV-Ray : Newsgroups : povray.binaries.images : post_scene_command preview stand-in example : post_scene_command preview stand-in example Server Time
1 Jul 2025 09:26:12 EDT (-0400)
  post_scene_command preview stand-in example  
From: William F Pokorny
Date: 20 Jun 2025 07:10:57
Message: <685541c1$1@news.povray.org>
In the recent povray.general thread asking about file handles for output 
streams I posted an example aimed at cleaner stdout / stderr Unix/Linux 
output; something cleaner than #debug tends to be as the user sees it. 
The method made use of the post_scene_command option and it reminded me 
of some 'jp2a' play.

Ref:
https://news.povray.org/povray.general/thread/%3Cweb.685406abf832fee04d6accde5cc1b6e%40news.povray.org%3E/

The jp2a utility is available for installation with many Linux/Unix 
distributions. It converts a jpg image into an ascii representation. 
IIRC, early versions of POV-Ray had some similar ascii image feature 
inbuilt.

The attached 'ascii terminal image' was generated using (*):

yuqk tmp.pov +w800 +h400 +fj \
post_scene_command="jp2a --colors --term-fit %o >>/dev/stdout"

Bill P.

(*) - post_scene_command requires that [Shellout Security] be set to 
allowed. The yuqk fork - as installed and run from the 'yuqk' script - 
makes 'allowed' the default.


Post a reply to this message


Attachments:
Download 'render_.jpg' (22 KB) Download 'screenshot_.png' (206 KB)

Preview of image 'render_.jpg'
render_.jpg

Preview of image 'screenshot_.png'
screenshot_.png


 

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