PDA

View Full Version : Blender 2 Yafray - first experiences


JoBbE
05-11-2003, 06:47 PM
I thought some of you might be interested in my first experiences with Blender & Yafray. I'm testing this combination at the moment and it's coming along great!

Here is my first test scene, a plane, 3 objects, simple materials, auto smooth, a hemi light at 2.5 power, anti noise, 640x480, the rest is default settings.
render time? about 2min 10 sec. that's ok on my 1,2 gHz athlon with 265 mb ram.

http://www.http3k.net/hosting/jobbe/himmel.jpg

I'll keep you updated on new tests!

Btw, there is one thing that actually doesn't work. The 'render' button. I have to invoke yafray by hand. Any idea?

JoBbE
05-11-2003, 10:31 PM
ok, I fixed it. blender seems not to recognize win2k env variables :[ so I had to hardcode the whole yafray path.

JA-forreal
05-12-2003, 07:46 AM
Great start! Fun eh? Yeah, you bet it's fun!

Try this little trick-

http://www.cgtalk.com/showthread.php?s=&threadid=56401

JoBbE
05-12-2003, 04:36 PM
I was just about to render my final radiosity test when all of the sudden blender crashed. so I set up the whole thing again and..
~crash~. it seems that blender (2.6 btw) doesn't like something I do. bad. :( . there is something that actually annoys me though: the inability to save the whole yable settings. or am I missing anything?

btw, here is one of my test:
http://www.http3k.net/hosting/jobbe/box.jpg

the 2 colored walls are set to emit radiosity, there is one photon light in there. not yet quite there, I gotta experiment more!

hannibar
05-12-2003, 08:20 PM
normally when you use yable, the setting are automaticly saved when you exit the right way. That means you have to press the exit button in the upper right corner when you stop. So if blender crashes, the settings are lost.

Btw : if you want to use python script it's the safest to use blender 2.23. The newer blender versions don't work that wall anymore with python.

oh, and about that cornell like thing you rendered, don't use photon light only. You have to place a direct lightsource too like a spotlight or an arealight.

JoBbE
05-12-2003, 09:46 PM
hm ok I guess I'll switch back to 2.23 again. or maybe 2.27 will have better python support? I think I heard something about an upcoming release?

anyways, here is my progress. thank you for the hint with the extra light, that adds alot. and I'm getting some nice results with that glass material - I found some really good settings somewhere on the web after some really frustrating attempts... :)

so here are the specs:
2 photon lights (diffuse/caustics), reflection, transparency, 1 soft light, 4 aa (16 samples!), anti noise, autosmooth, 640x480, rendered in about
1min 30sec
that's friggin incredible! yafray is so faaaast, it's so much fun :bounce:

http://www.http3k.net/hosting/jobbe/box_final.jpg

what do you think?

JoBbE
05-14-2003, 01:23 PM
I guess I'll stop my experiments for a week or two as I'm setting up a new (fast ;P ) linux box and I'm moving all my gfx stuff to it, so I need to get started first..

JoBbE
05-21-2003, 05:12 PM
ok, here we go again.
alot has changed, I switched to blender 2.27, yafray 0.0.4 and yableex. apart from minor problems (pressing 'render' will export, but not start the renderer, /usr/local/bin where yafray is located is in my path var... any idea?) it works great!.
here is my latest effort, I changed the well known scene a bit, there are no caustics.

http://www.http3k.net/hosting/jobbe/box_green.jpg

the render time was really short. I guess with a bit of tweaking and low resolution you might use yafray rad even in an animation. the speed is incredible.

BgDM
05-21-2003, 05:21 PM
Nice stuff. You seem to be getting the hang of Yafray fairly quickly.

As for animating using Yafray, you should go to www.elysiun.com and see the "Airman" thread in WIP forum. Landis is planning on using Yafray exclusively for his animation now.

Keep it up.

BgDM

alamoodi
06-06-2003, 07:44 PM
:applause: nice work, I really like these effects. And here we go, I have been looking around for quite sometime for similar things. Will you please share your settings with us, I am talking about the last two attempts.
Thanx

JoBbE
06-09-2003, 02:40 PM
wew, still feedback here ;P
let's see....


this is my box.xml file


<!-- Exported with YaBlE.
For any comment or question refer to tredee@katamail.com -->
<!-- Visit http://kino3d.com/~yable for news and announcements -->
<!-- Thanks to Jandro, Eeshlo and all the guys from www.kino3d.com -->
<scene>

<shader type = "generic" name = "Default">
<attributes>
<color r="0.750000" g="0.750000" b="0.800000" />
<specular r="0.000000" g="0.000000" b="0.000000" />
<reflected r="0.000000" g="0.000000" b="0.000000" />
<transmitted r="0.000000" g="0.000000" b="0.000000" />
</attributes>
</shader>
<transform
m00 = "0.000000" m01 = "-5.106771" m02 = "-0.002021" m03 = "0.020966"
m10 = "5.106771" m11 = "0.000000" m12 = "-0.000000" m13 = "-2.663386"
m20 = "0.000000" m21 = "-0.002021" m22 = "5.106771" m23 = "-0.047872"
m30 = "0.000000" m31 = "0.000000" m32 = "0.000000" m33 = "1.000000"
>

<object name = "Plane" shader_name = "Default" >
<attributes>
</attributes>
<mesh>
<include file = "/usrdat/gfx/blender/yableex/box/Meshes/Plane.xml.gz" />
</mesh>
</object>
</transform>

<shader type = "generic" name = "Plane.001.mat">
<attributes>
<color r="0.000000" g="0.407895" b="0.539474" />
<hard value = "25.000000"/>
<min_refle value = "0.200000"/>
<fast_fresnel value = "off"/>
</attributes>
</shader>

<transform
m00 = "0.000000" m01 = "-0.000000" m02 = "4.947727" m03 = "-2.998916"
m10 = "4.947727" m11 = "0.000000" m12 = "-0.000000" m13 = "-2.611669"
m20 = "-0.000000" m21 = "4.947727" m22 = "0.000000" m23 = "4.049517"
m30 = "0.000000" m31 = "0.000000" m32 = "0.000000" m33 = "1.000000"
>

<object name = "Plane.001" shader_name = "Plane.001.mat" >
<attributes>
</attributes>
<mesh>
<include file = "/usrdat/gfx/blender/yableex/box/Meshes/Plane.001.xml.gz" />
</mesh>
</object>
</transform>

<shader type = "generic" name = "Plane.002.mat">
<attributes>
<color r="0.000000" g="0.763158" b="0.460526" />
<hard value = "25.000000"/>
<min_refle value = "0.200000"/>
<fast_fresnel value = "off"/>
</attributes>
</shader>

<transform
m00 = "0.000000" m01 = "-0.000000" m02 = "4.947727" m03 = "3.001876"
m10 = "4.947727" m11 = "0.000000" m12 = "-0.000000" m13 = "-2.611669"
m20 = "-0.000000" m21 = "4.947727" m22 = "0.000000" m23 = "4.097500"
m30 = "0.000000" m31 = "0.000000" m32 = "0.000000" m33 = "1.000000"
>

<object name = "Plane.002" shader_name = "Plane.002.mat" >
<attributes>
</attributes>
<mesh>
<include file = "/usrdat/gfx/blender/yableex/box/Meshes/Plane.002.xml.gz" />
</mesh>
</object>
</transform>

<transform
m00 = "5.106762" m01 = "0.000000" m02 = "0.009437" m03 = "0.038446"
m10 = "0.009437" m11 = "0.000000" m12 = "-5.106762" m13 = "0.657782"
m20 = "-0.000000" m21 = "5.106771" m22 = "0.000000" m23 = "3.876350"
m30 = "0.000000" m31 = "0.000000" m32 = "0.000000" m33 = "1.000000"
>

<object name = "Plane.003" shader_name = "Default" >
<attributes>
</attributes>
<mesh>
<include file = "/usrdat/gfx/blender/yableex/box/Meshes/Plane.003.xml.gz" />
</mesh>
</object>
</transform>

<transform
m00 = "0.000000" m01 = "-5.106771" m02 = "-0.002021" m03 = "0.020966"
m10 = "5.106771" m11 = "0.000000" m12 = "-0.000000" m13 = "-2.663386"
m20 = "0.000000" m21 = "-0.002021" m22 = "5.106771" m23 = "3.273296"
m30 = "0.000000" m31 = "0.000000" m32 = "0.000000" m33 = "1.000000"
>

<object name = "Plane.004" shader_name = "Default" >
<attributes>
</attributes>
<mesh>
<include file = "/usrdat/gfx/blender/yableex/box/Meshes/Plane.004.xml.gz" />
</mesh>
</object>
</transform>

<transform
m00 = "0.000000" m01 = "-0.190000" m02 = "0.001109" m03 = "-0.027693"
m10 = "0.190003" m11 = "0.000000" m12 = "-0.000000" m13 = "-0.699014"
m20 = "0.000000" m21 = "0.001109" m22 = "0.190000" m23 = "-1.112441"
m30 = "0.000000" m31 = "0.000000" m32 = "0.000000" m33 = "1.000000"
>

<object name = "Plane.005" shader_name = "Default" >
<attributes>
</attributes>
<mesh>
<include file = "/usrdat/gfx/blender/yableex/box/Meshes/Plane.005.xml.gz" />
</mesh>
</object>
</transform>

<shader type = "generic" name = "Sphere.mat">
<attributes>
<color r="0.078196" g="0.253008" b="0.000000" />
<specular r="0.302632" g="0.355263" b="0.355263" />
<reflected r="0.694225" g="0.704225" b="0.619718" />
<transmitted r="1.000000" g="1.000000" b="1.000000" />
<hard value = "117.000000"/>
<IOR value = "1.520000"/>
<min_refle value = "0.200000"/>
<fast_fresnel value = "on"/>
</attributes>
</shader>

<transform
m00 = "0.699050" m01 = "0.000000" m02 = "0.000000" m03 = "0.617816"
m10 = "0.000000" m11 = "0.699050" m12 = "0.000000" m13 = "-2.428508"
m20 = "0.000000" m21 = "0.000000" m22 = "0.699050" m23 = "0.852305"
m30 = "0.000000" m31 = "0.000000" m32 = "0.000000" m33 = "1.000000"
>

<object name = "Sphere" shader_name = "Sphere.mat" >
<attributes>
</attributes>
<mesh autosmooth = "90.0" >
<include file = "/usrdat/gfx/blender/yableex/box/Meshes/Sphere.xml.gz" />
</mesh>
</object>
</transform>

<shader type = "generic" name = "Sphere.001.mat">
<attributes>
<color r="0.209775" g="0.555639" b="0.260526" />
<specular r="0.434211" g="0.789474" b="0.447368" />
<reflected r="0.816901" g="1.000000" b="0.760563" />
<hard value = "25.000000"/>
<min_refle value = "0.200000"/>
<fast_fresnel value = "off"/>
</attributes>
</shader>

<transform
m00 = "0.517212" m01 = "0.000000" m02 = "0.000000" m03 = "-0.801407"
m10 = "0.000000" m11 = "0.517212" m12 = "0.000000" m13 = "-1.154409"
m20 = "0.000000" m21 = "0.000000" m22 = "0.517212" m23 = "0.921244"
m30 = "0.000000" m31 = "0.000000" m32 = "0.000000" m33 = "1.000000"
>

<object name = "Sphere.001" shader_name = "Sphere.001.mat" >
<attributes>
</attributes>
<mesh autosmooth = "90.0" >
<include file = "/usrdat/gfx/blender/yableex/box/Meshes/Sphere.001.xml.gz" />
</mesh>
</object>
</transform>

<light type ="softlight" name="Lamp.002" power="1.000000" res="200" radius="5.000000" bias="0.300000" >
<from x="-0.027694" y="-0.996765" z="3.171919" />
<color r="1.000000" g="1.000000" b="1.000000" />
</light>

<light type= "photonlight" name="Lamp.002diff" power ="20.000000" photons ="50000" depth ="3" search = "200" angle ="70.000000"
mode = "diffuse" fixedradius = "1.800000" cluster ="0.500000" use_QMC ="off" >
<from x="-0.027694" y="-0.996765" z="3.171919" />
<to x="-0.027693" y="-0.699014" z="-1.112441" />
<color r="1.000000" g="1.000000" b="1.000000" />
</light>

<camera name="Camera" resx="1024" resy="576" focal="1.093750" >
<from x="0.028226" y="-7.699591" z="1.522029" />
<to x="0.028226" y="-6.707149" z="1.399318" />
<up x="0.028226" y="-7.576880" z="2.514471" />
</camera>

<filter type="antinoise" name="Anti Noise" radius = "1.000000" max_delta = "0.100000">
</filter>


<render camera_name = "Camera" AA_passes = "4" AA_minsamples = "2" AA_pixelwidth = "1.500000" AA_threshold = "0.040000"
raydepth = "5" bias = "0.300000" gamma = "1.000000" exposure = "0.000000" >
<outfile value="/usrdat/gfx/blender/yableex/box/box.tga"/>

</render>
</scene>


hth :)

alamoodi
06-09-2003, 06:30 PM
:thumbsup: Well, I didn't expect you posting the whole .xml over here. Thank you very much for this contribution.
Hope to be able to help one day.
Thanx again.

JoBbE
06-12-2003, 10:49 AM
np :cool:

kniffo
06-13-2003, 03:22 PM
Well,

as I am testing yafray in combination with blender 2.27 I got some problem with bigger scenes.

Do I really have to touch every object in the scene and set its material settings in yable or is there another way of doing it???

And 2.:

When I am creating metaballs and want to export them into xml, yable is not recognizing them when pressing "Get Selected" - is there a way of doing it??? btw, the same happens with curved objects as well as with DupliVerts.

Are u using other tools to epxort the .blend files to xml or are u using yable as well ???

I hope, that I can post some nice pictures here in the near future as I am messing around with yafray as well. I'll try to bring in somem ore complex and programmable shaders just like in renderman compliant files and renderers ... perhaps it's possible, I have to look into the ocde for that ... does anyboday have the same plans??

I am happy, that there is a blender corner on cgtalk anyway!

Greetings,
Kniffo

CGTalk Moderation
01-15-2006, 03:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.