POV-Ray rendering of different syles 

I think I understand that POV-Ray render files are generated by framsticks-user.inc type files located inside the povray directory. So, to generate render files for a new style called, say, myStyle, I guess that I should copy framsticks-standard.inc, save it as framsticks-myStyle.inc and then modify it (in some way that I'll have to learn).

What I don't understand at the start is that I can't find any script that calls this inc file. For example, there's no call (that I can find) to framsticks-standard.inc in standard.style. Also, in the framsticks gui I can't see anywhere to choose which style to use for the POV-Ray export. So, if I'm using the matrix style in the gui and I do an export to POV-Ray, it exports as standard style (not matrix) and I can't see anywhere to change it to a matrix style export.

Obviously I'm missing something! Help please!

Ian

Forums: 
Maciej Komosinski's picture

> I think I understand that POV-Ray render files are generated by framsticks-user.inc type files

OpenGL styles and POV-Ray styles are entirely independent. POV-Ray export does not depend on the currently selected OpenGL style.

Exporting simulation snapshots to POV-Ray creates *.pov files that describe locations of creatures, their Parts and Joints, in the world. Each of these *.pov files #includes "framsticks.inc", which in turn #includes one of the *.inc files that contain the actual definitions of how to render Parts and Joints.

So if you want to use a different rendering style, just replace the line

#include "framsticks-standard.inc"

in framsticks.inc with, let's say,

#include "framsticks-matrix.inc"

Aaaahhh, of course.

Thanks Maciej