POV-Ray : Newsgroups : povray.advanced-users : pov runtime interface with external software : pov runtime interface with external software Server Time
5 Jul 2024 16:09:20 EDT (-0400)
  pov runtime interface with external software  
From: ibhd
Date: 7 May 2008 10:05:00
Message: <web.4821b68b85d176678fd0f2f30@news.povray.org>
Hello,

I am evaluating whether it would be possible to simulate the trajectory of a
Braitenberg vehicle with POV. A BraitBot (type 2) is essentially a vehicle with
two light sensors each connected to one of two motors. The speed of motor
rotation is wholly dependent on the light intensity received by the sensor. We
have a working prototype here where the light sensors are being replaced with a
360 degree camera.

What I need is to be able to model a robot with the camera on it in POV and move
the 'bot through a POV scene. Where the 'bot goes is a function of the light
values received by the camera.

I therefore need routines for the transformation camera-picture -> new
coordinates. My query is the following. The camera picture is 360 degrees which
will be split into 8 regions -> I need to be able to capture the camera output
into a programming structure, such as an array, analyse it and return a new
coordinate.

The obvious way of doing it would be to make a raytrace, store the picture in a
file get a linux task to analyse that file and then return the coordinates and
set pov up for another raytrace. Is there any way of capturing the camera input
and linking external routines more elegantly?

Thanks

Hans


Post a reply to this message

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