" /> | Yorik's blog" /> " />

Nice work on the .pov file export plugin for ngplant!

Nice work on the .pov file export plugin for ngplant! I was just thinking that from a POV perspective that it's somewhat cumbersome to tweak a file that's several hundred thousand lines long... Perhaps the textures and camera definitions, etc. could be placed at the top as variables (Texture1, texture2, ...) and those variable used in the mesh2 object texture statements instead. That way everything is right there at the top of the file to read and edit. If possible, it's usually customary to generate such files as an .inc include file. I generally bracket the substance of my includes with

ifdef blocks, so that if it's an isolated include file, I can render

it as a stand-alone scene. If it's being included (I check for whether the variable SDL = true), then none of the stand-alone scene objects (camera, light source, etc) are defined. Joining all of the separate mesh2 objects into a union would help in using the ngplant object "out of the box" with a simple #include ngplant_MyPlant.inc and then object Maybe also include a finish block in the texture definitions so that changing var at the top of the file allows easy changing of the apparent brightness of the plant. Other than that - super easy to install and use! Thanks very much! I haven't gotten ngplant to call POV-Ray automatically, but I probably just need to tweak a setting or two - no big deal.