[YAFRAY GUI] Bagisas v 0.0.4 (UPD 28.Apr)

Heyho!

Here is another update of the Yafray-GUI Bagisas. Under Linux everything should work fine, but there might be a problem with the Windows version. When you render either your scene or a shader preview Bagisas might lock up if you switch to another application (or even click somewhere). Could somebody please confirm this (or better: prove it wrong).

Very special Thanks to S68 for his YableThumb-Script!

You can either use the shader-panel for your experiments, the “Copy To Tree” won’t do anything, or to tweak the shaders of your scene (Select your shader in the Tree panel, Edit->Copy To Shaderbuttons). That way you can “copy to tree”.
You set the colors (“Color”, “Spec”, “Ref”, “Trans”, “TColor” and “RColor” by first clicking on the desired button, selecting your color from the color chooser and then again clicking on the button. (The Windows version won’t change the color of the buttons (yet), sorry for that)

Link see below [>]

C&C?

Hello Schlops,

that app looks very promising,thank you very much. I’ve tested version 0.0.4 under Debian/Linux with python 2.2 + python-xml + wxpython.
Everything works fine except the color chooser thing in the shader preview I can pick every color for Color,Spec,Ref and so on, but it seems that the script doesn’t asign them to the material. I can’t set any colors to the preview rendering sphere, but it only renders the standard white color for every material-value :frowning: :frowning: . Maybe I’ve done something wrong, can you help me ? Hm, and the buttons too have no colours after asigning a colour to them…

Screenshot:
http://www.olafarnold.com/bagisas.jpg

Cheers, Olaf.

OK, here is how you set the colors:

  1. Select (click) the attribute you want to set, e.g. “Spec”
  2. Select the color from the colorchooser for that attribute (Make sure that the rect (right above “Solid Color”, see your screenshot) in the colorchooser is showing the color)
  3. Click again(!!) on the attribute-button, so in this example “Spec” (No other buttonclick meanwhile!).
  4. Since you are on Linux (BTW. which wxPy-version?) the button should be colored now.

HTH (If not, I will put a debug-version online)

Since nobody posted problems with the Win-version I now declare it as “final” :wink:
I fixed a bug (rendered images not showing in preview), so even if you already have it, it might be worth the download.

http://www.fen-net.de/wolfram.kraus/Bagisas.html

It won’t work for me in WinXP. It crashes when I load an xml file. I have all the lastest YafRay stuff.

Sorry, I’ve been so happy with the quality of Bagisas that I haven’t thought to post about it. It works fine under Windows (I’m just bugged to no end that the font of the console can’t be changed. Stupid Windows! I oughta get my Linux box running http://www.blender.org/modules/phpBB2/images/smiles/icon_twisted.gif.

LAinLA: Are you trying to load one of Yable’s monolith xml’s with all the meshes and such embedded? These usually cause the xml parser to die. Try exporting with Yable using the “Path” button and load the base xml file (with just transforms, lights, and general settings).

Yeah, I was. And I had to putz the stop to that fun. I just slapped my hand and turned off the INC button. Now I do the Bagisas dance of joy.

Get it ? The Bagisas dance of joy, huhhaaaaaaaahahahaha agrhhhhhhhhahahaha. Why do I keep hitting that stinkin inc button?

Oh yeah it works now but it dies when I set it to 2 cpus on to use all of my pcs cpus. I know, that is a yafray render bug in version 0.0.3. Because it crashes when I run it from c prompt. The old yafray worked fine.

He who teaches himself, is he not insane?-
quote from some old dead guy or something

Just tried it in hopes of finally getting yafray to do something and got an error message that said yafray has caused and error in yafray.exe

:frowning: :frowning: :frowning:

The error message comes up when I hit f12 to render. It seems to start processing the up come the error.
Any ideas?

Elsdon

GREAT!!!


Man finally its for linux :slight_smile: well as soon as download a replacement cd for my mandrake cd 3 then ill besure to test it out hehe!

Did you set the correct path to yafray.exe under Edit -> Preferences? Is yafray running fine when you start it from the command/DOS-window?

Using the default aaa.xml, distribuited with last release of
Yafray, after a very long long computation, I’ve this:

An error occured during showing trhe render image!
File “C:\Eigene Dateien\installer\Bagisas\v0.0.4\Render.py”, line 107, in run
File “D:\programme\pyhton22\lib\site-packages\Image.py”, line 932, in open
IOError:[Errno 2]No such file or directory: ‘default.tga’

Manuel, do you have a fast machine and did you download the latest update or just the alpha-version from some days ago?
Please try the following:
Start Bagisas, switch to the shaderpanel, press the “Preview” button and wait some seconds. Does the same error show up?

after finally getting wxPython installed, I managed to run Bagisas, semi-successfully. I could play around with the shader editor, preview the shader, but when I tried to open a file, it hangs. The processor is working at max, and nothing’s happenning. If I try to click on New…, I get this:

Traceback (most recent call last):
  File "/usr/lib/python2.2/site-packages/wxPython/lib/evtmgr.py", line 426, in handleEvent
    self.publisher.sendMessage(topic=self.topic, data=event)
  File "/usr/lib/python2.2/site-packages/wxPython/lib/pubsub.py", line 141, in sendMessage
    subscriber[2](message)
  File "/usr/lib/python2.2/site-packages/wxPython/lib/pubsub.py", line 169, in <lambda>
    return lambda m, f=function: f(m)
  File "/usr/lib/python2.2/site-packages/wxPython/lib/evtmgr.py", line 464, in deliverEvent
    self.eventHandler(event)    # Perform the call as wxWindows would
  File "./Bagisas.py", line 202, in onNew
    self.createNew()
  File "./Bagisas.py", line 205, in createNew
    self.tree.DeleteChildren(self.tree.treeroot)
  File "/usr/lib/python2.2/site-packages/wxPython/controls2.py", line 1085, in DeleteChildren
    val = apply(controls2c.wxTreeCtrl_DeleteChildren,(self,) + _args, _kwargs)
TypeError: Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p.

If I click on Open…, i get this:

[Debug] 01:00:53 PM: Mailcap file /etc/mailcap, line 190: unknown field '/usr/bin/wvHtml "${ns}" -o ${tmp}' for the MIME type 'application/msword' ignored.
[Debug] 01:00:53 PM: Mailcap file /etc/mailcap, line 191: unknown field 'netscape "file:${tmp}"' for the MIME type 'application/msword' ignored.
[Debug] 01:00:53 PM: Mailcap file /etc/mailcap, line 191: unknown field '/bin/rm -f "${tmp}"' for the MIME type 'application/msword' ignored.

Then the open file dialog comes up, I select a file (rad.xml, the one that came with yafray) …and it worked :slight_smile: Wow, while I was typing this, it actually worked…Why? Hold on, let me try another file…Yup, it seems I can only open simple files…but it hangs when trying to open more dissicult files, like camera.xml (came with yafray). Any solution?

One suggestion I can offer, try to put sliders for hardness value, IOR and min reflection.

oh yeah, I just discovered, it DOES work with bigger files, it only takes forever to load (on a P4 1700MHz, 1GB RAM). Thanks for a great program, though it could use some small improvements, if I may suggest them:

-the one about the sliders, see previous post;
-is it possible to open a popup window when clicking on the preview, so we can also see details?
-it would be great if you could create new attributes, not only edit the current attribute’s value
-can your script be made to recognize some categories? I was thinking something like a drop-down box for the light types, containing all the possible choices. That way we wouldn’t have to remember all the names or worry about typos
-keep working on it, it’s a great project. :thumbsup:

Okay, I updated my Homepage and made a little FAQ with this problem as the top question. I think I have to take a deeper look at the XML-parsing and how to speed it up or at least show a progression bar.

Sure, suggestions are always welcome!

  • Sliders vs. textboxes: If you don’t want to set hard/IOR/min_refl just leave the boxes empty, it is hard to implement this with sliders.
  • Preview Win: Will put this on the TODO-list
  • Attributes: This currently works with the shaders if you copy to/from shader-panel, and a Ligthpanel is also on my TODO-list, with the same effect. And for the other elements it is on the TODO-list
    -Categories: See above, ligthpanel
  • I will keep on working, but you are welcome to contribute some code, if you want :wink:

Oh, and thanks a lot for your praise. :smiley:

Thanks for your prompt response.

-Sliders vs. Textboxes: one word to solve your Slider problem: checkboxes :slight_smile:
-Keep working on that TODO list, it must be quite long by now :wink:
-Me? Contribute code? Are you kidding? I don’t even know how to code a sphere! I’m more into the artistic side of Blender, Yafray, etc.

As I said before, great work!

I gave a try to Bagisas, as it seems a promising interface for Yafray.
The problem is that I can’t even launch the render under windows XP.
It seeks for a 3rd party library called image.py and it looks for it on my second hard drive (D:).
Any chance to find a way? (I think that finding image.py on the net and put it in d:/python22/lib/site-packages/ is a bit weak…)
:slight_smile: thanks for your effort to bring communication beetween Yafray and a simple mortal :slight_smile:

Heyho garbager!

[edit, removed dumb answer]Did you set the correct path to yafray.exe under File-> Preferences? (Hm, I guess this a new candidate for the FAQ.) If you did so, please post the complete error-messasge.[/edit]

adyus: The sliders in wxPy can’t handle float values, so I will keep the textboxes. And the preview window is now implemented, if anybody is interested in the source, just send me a PM (No .exe yet!) (BTW: The TODO is at the end of Bagisas.py, so get the source and take a look)