When using xml export, yafray will now render the alpha channel as well when 'RGBA' button in blender is enabled (Plugin does this automatically). In plugin code, fixed smooth shading bug for non-mesh objects. Relative paths for textures are now recognized (plugin & xml). Fixed problem with duplicate objects (plugin & xml). Really old bug, sun position is now correct (plugin & xml). World background now can also be a regular image texture (jpeg & tga), but for now always assumes spheremapping, which is not the same as Blender either. In yafray the texture is assumed to be a full 360 (panorama type) map. convertBlenderScene.c cleanup, the identity transform 'hack' is removed. THIS AFFECTS ALL EXTERNAL RENDERERS (Aqsis and others) WHICH RELY ON THE RENDERDATA OUTPUT, VERTICES AND LAMPCOORDINATES/VECTORS NOW NEED TO BE TRANSFORMED BACK TO WORLD COORDINATES. See yafray plugin/export code.
35 lines
896 B
C++
Executable File
35 lines
896 B
C++
Executable File
#ifndef __EXPORT_FILE_H
|
|
#define __EXPORT_FILE_H
|
|
|
|
#include"yafray_Render.h"
|
|
|
|
class yafrayFileRender_t : public yafrayRender_t
|
|
{
|
|
public:
|
|
virtual ~yafrayFileRender_t() {}
|
|
protected:
|
|
std::string imgout;
|
|
std::ofstream xmlfile;
|
|
std::string xmlpath;
|
|
std::ostringstream ostr;
|
|
|
|
void displayImage();
|
|
bool executeYafray(const std::string &xmlpath);
|
|
virtual void writeTextures();
|
|
virtual void writeMaterialsAndModulators();
|
|
virtual void writeObject(Object* obj,
|
|
const std::vector<VlakRen*> &VLR_list, const float obmat[4][4]);
|
|
virtual void writeAllObjects();
|
|
void writeAreaLamp(LampRen* lamp, int num, float iview[4][4]);
|
|
virtual void writeLamps();
|
|
virtual void writeCamera();
|
|
virtual void writeHemilight();
|
|
virtual void writePathlight();
|
|
virtual bool writeWorld();
|
|
virtual bool writeRender();
|
|
virtual bool initExport();
|
|
virtual bool finishExport();
|
|
};
|
|
|
|
#endif
|