[Radiance-general] Creating new view types for Radiance

Greg Ward gregoryjward at gmail.com
Fri Oct 28 09:36:45 PDT 2016


Hi Victor,

You are working in the right place.  Besides adding a macro for your view type to view.h, you need to implement the correct operations and checks in viewray() and viewloc() in image.c.  For full support, you should also look at util/rad.c and insert your view type in some switch statements therein.  Similarly, there is some code you need to write to split up your view for rpiece in util/rpiece.c.

Can you be more specific when you say that your compilation is not working?  Do you get compile errors, or is something going wrong at run-time?

Out of curiosity, what type are you adding?

Cheers,
-Greg

> From: goodriver laurus <rioboo at gmail.com>
> Date: October 28, 2016 12:08:09 AM PDT
> 
> Dear all,
> 
> I would like to try a new view type for Radiance. So far I have included the new type in image.c and included a reference in view.h. However, the compilation is still not working for rpict. I wonder if that could be due to the modifications I've made (I have already corrected a couple of small errors) or because I would need to modify also other files. Basically, what I am asking is what files should be considered in order to include an alternative view type for rpict and vwrays.
> 
> Many thanks,
> 
> Victor Lopez-Rioboo Gil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20161028/456d2010/attachment.html>


More information about the Radiance-general mailing list