How to render with yafaray on mac osx - macos

I've installed wings 3d on mac osx and I'm loving it. The problem is I can't do any fancy renderings. I've downloaded and installed YafaRay-0.1.0.305-OSXintel10.5 and I can't seem to get it to work.
The wings3d manual states that on mac os you export the xml file from wings 3d, but you make the rendering from Terminal, calling yafaray with the path to the generated xml as an argument.
I expected to find yafray or yafaray using locate, but I couldn't. I found yafaray-xml in /usr/local/bin
Just for testing I exported a cube in a file called box.xml
Initally I got a loads of scene tag related errors:
warning: expected </scene> tag!
Bus error
Then I removed the tag from the xml and tried again, and I got
?m?setting up scene...specify a camera!!
Anyone know how to render with yafaray from terminal on macosx ? Or how to setup a ray tracer for wings 3d on mac osx ?

Got it working now!
yafaray is a rewritten version of yafray and the xml structure is different, so wings3d is outputting the wrong xml.
I found an xml structure that worked here. I just adapted the mesh node to one of my own meshes and I got a render from terminal.
Also if anyone is interested in the official specs here they are.
The handy user guide can be found here.
I tried using blender and blender 248.1 keeps crashing when I select the yafaray xml script from the render menu. blender 245.15 on the other hand crashed a few times first, but now I can render without any crashes. The only glitch is that after each render the ui freezez, so I need to CMD+Tab to another app and back to get around that.
Hope this might help anyone else having similar issues.

Related

Paraview programmatically Save Screenshot not working on an XYChartView

Using ubuntu 16.04 LTS, Paraview 5.0.1.
I have a Layout with two views, one RenderView and one LineChartView.
I want to programmatically Save Screenshot and Save Animation of the two together.
When doing either one, and also when doing this with only the LineChartView, only a portion of it shows up in the created image. The image below shows an example, where the error is evident.
The same result is obtained when saving the image with:
WriteImage("test.png")
SaveScreenshot("test.png"). Tried several combinations of ImageQuality, ImageResolution, magnification.
Via menu (not my final target, but I tried it).
How can I programmatically get the correct images/animations, both of this View alone and paired with another one?
As posted by Cory Quammen in a comment, upgarding to 5.4.1 seemed to work.
I wouldn't know if suitably setting some parameters (e.g., lineChartView1.ViewSize and/or in SaveScreenshot) this could also work in 5.0.1.

Convert Markdown to pdf with images on mac

This is driving me crazy. I have a jupyter notebook with images and I'm trying to convert it to a pdf on my mac. I've installed pandoc and macTex, but when I try to convert it to pdf the images disappear. Also the formatting for my tables gets messed up. I've tried saving it as a markdown and converting it, but I get the same problem. If I convert to html the images disappear but the table formatting is correct. I've also tried converting it in the terminal with nbconvert, but the images still disappeared. And I tried converting the markdown file with rstudio, but still the images disappeared. I've tried two versions of the code to reference images. The versions are below, both display fine in the jupyter notebook but the first one throws an error and the second one the images disappear. I've googled around, it seems to be a common issue but I'm not seeing a lot of solutions. I really can't believe this is this difficult. Any solution is greatly appreciated.
code with errors:
![Stars_Boxplot](Stars_Boxplot.PNG)
code disappears when rendered:
<img src="Stars_Boxplot.PNG">
Update Solution:
![Stars_Boxplot](/Users/Desktop///Project Research//Stars_Boxplot.PNG)
The issue was it had to be an absolute reference and I had a space in my file path.

Blender "importer not included" error

I'm trying to import a simple scene from blender in three.js. I'm following this tutorial for setting up the importer:
http://benchung.com/lesson-2-importing-model/
Now the issue is in step 3, right in front of the human figurine (inside the yellow rectangle) I'm getting an error sign that says "importer not included". I think I did everything right but Im getting this error. What am I doing wrong or missing to see this error
UPDATE: I also followed the three.js on github. For the new version of three.js the file name and structure has changed. But even now I'm having the same issue
I am not sure when you are saying ' I also followed the three.js on github' if you are talking about three js lib or the blender exporter.
If you haven't already, download this exporter and follow the steps. I did this 1 week ago and it works fine on Windows. Later when you export from blender to json format, don't forget to check the 'face materials' checkbox and uncheck the checkboxes in Scene

Reading multiple PDF files in Preview app Mac OS X Maverick

I need to work on multiple PDF files and because of annotating those files, I prefer to use Preview built-in app for Mac OSX.
If I am in the middle of one PDF file say on Page 5, and I transit to some other PDF file and come back to the previous file, then I always get the first page of that PDF.
Is there any setting which I can use so that I always get the page from where I left?
Not sure what the problem is, mine works as you seem to want it to. Maybe your Preferences are set differently. Here are mine.

Three.js Example code, from StackOverflow, not working

I copied and pasted the Three.js code given here into an HTML file and downloaded the three.js package from the website, and configured the <script> tag to point to the location of the file three.min.js.
Nonetheless, when I open the HTML file, it displays a blank white screen.
What am I missing?
well I tryed the exact same thing and I'm seeing the wireframe cube rotating on screen. A few things to try.
1) drop the three.min.js right in the root folder and copy/paste the example code again without any alterations.
2) did you get the three.min.js from the zip package under the build directory? Or did you navigate the git repo and copy/paste it? If copy/paste was used be sure to click the "Raw" button to get the code without the wrapper HTML.
3) try the latest Firefox or Chrome browsers first. If it works there but not in say Safari, there are a few steps you need to take to enable WebGL in Safari first.
4) your video card may be blacklisted due to driver incompatibilities.
If none of these help, then post up the code, where you got the Three.js package, what browser and video card your using and I'll see what else I can do to help :)
I had the same problem. Windows hides the file extensions by default. I change it in folder options and it worked.

Resources