YafRay

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

YafRay // Roundtable

1  |  

Post by frank // Oct 9, 2006, 9:55am

frank
Total Posts: 709
pic
Has anyone in the trueSpace community thought of writing an export to YafRay? (something similar to what VirtuaOut is to VirtuaLight)


http://www.yafray.org


This would be very cool. What do you guys think?




Here are some pictures from the YafRay gallery:


http://www.yafray.org/sec/8/common/show_img.php?file=128_nehpets.jpg


http://www.yafray.org/sec/8/common/show_img.php?file=120_DMoney.jpg


http://www.yafray.org/sec/8/common/show_img.php?file=102_YaroslavLebidko.jpg


http://www.yafray.org/sec/8/common/show_img.php?file=50_richie.jpg

Post by Jack Edwards // Oct 9, 2006, 10:02am

Jack Edwards
Total Posts: 4062
pic
I think this is a cool idea Frank.


In the meantime you could normalize your mesh locations/rotations/scale and export your meshes to Wings3D which has an exporter for Yafray. OBJ format via Luuv plugin should maintain your textures and UVs.


-Jack.

Post by frank // Oct 9, 2006, 10:14am

frank
Total Posts: 709
pic
In the meantime you could normalize your mesh locations/rotations/scale and export your meshes to Wings3D which has an exporter for Yafray. OBJ format via Luuv plugin should maintain your textures and UVs.


Nice workaround! Hrm...I'm thinking of something that is animation-friendly though.


I'm looking at some of the documentation and it seems as though the plugin would basically take the scene info (using tSx API, etc.) and write this to an XML file (this is what YafRay reads), and then call the executable, passing with it the name of the file.


I reckon the plugin should also have a checkbox/option to display the file after it is rendered (basically it would load the image file generated by YafRay onto an image box in the tSx form).


Just ideas... but maybe someone will come along and write this thing. :)

Post by frank // Oct 9, 2006, 10:23am

frank
Total Posts: 709
pic
The only immediate way I could possibly even think of writing this is by a direct translation of the SCN format (I'd use ASCII since it'd be easier for the program to parse - although the file would be bigger) into XML for YafRay.


BUT...that's kindof a "blind" way of doing it. That's why a tSx would be better as the settings can be done in trueSpace while playing with the scene, and test renders could be generated. I'm not proficient enough w/ tSX development in Visual C++ or Delphi to go that route.


Hrm..............................

Post by Jack Edwards // Oct 9, 2006, 11:05am

Jack Edwards
Total Posts: 4062
pic
Yeah no animation support for Wings. Great little modeller though.


I'm not sure that scn and cob formats are staying... but the details of the formats are available on Caligari's website.


I'd think it might be more useful and possibly simpler to just use a script to export the objects in the scene as triangle meshes w/ texture info. Add the lights and camera and you should be ready to rock.


Problem is that I don't think the current scripting lets you run external executables so you'd have to generate sequential xml files then write a batch file to execute the renderer.


-Jack.

Post by GraySho // Oct 9, 2006, 11:28am

GraySho
Total Posts: 695
pic
Would be great to have indeed. Blender already has native YafRay support without the need of exporting an XML file.
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2021. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn