Commit Graph

90 Commits

Author SHA1 Message Date
9510c97833 cache_size yafray parameter calculation changed to sync with current
yafray cvs code. Now given in screen coords (-1,+1)x(-1,+1)
2004-07-14 10:20:56 +00:00
b64afb526a Removed some testcode from yafray_Render.cpp
Added the missing anti-aliasing pixel filter size and threshold parameters for manual AA control (disable 'Auto AA' button).
Added support for yafray raytraced depth-of-field.
Added extra panel for Camera in edit window to edit dof paramaters.
The actual focus point will be drawn as a cross when camera 'ShowLimits' is enabled, similar to the aqsis code in tuhopuu.

Note to users: raytraced DoF is very slow, for best results, the default AA parameters are not good enough, especially with higher aperture values (more blur).
So for best results, disable 'Auto AA' and set the AA parameters yourself.
It works best with multi-pass AA ('AA passes' > 1) and a reasonable 'AA samples' value, something in the range 8 - 25 or even higher.
Currently the post-process DoF is not available in yafray, alternatives are being worked on.
2004-07-13 19:22:41 +00:00
f32b8e6b7f added support for ortho camera (needs yafray from cvs)
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.
2004-07-12 03:20:31 +00:00
f77bc7eb7d Quite a large one this time... but now we have:
Edges in Mesh
- adds automatic when you use creases. For other situations; call the
  void make_edges(Mesh *me) in mesh.c. Of course, once in editmode the
  edges are automatically recreated.
- in F9 buttons you can add/remove edges too
- both for Mesh and DisplistMesh, so it speeds up drawing quite some in
  wireframe
- render for edges can't work... edges have no material nor tface nor col..
  so here still the faces are rendered in wire

Creases in Subsurf
- based on the code by Chris McFarlen
- main changes is that now edges are used, saving quite some data in file
- use SHIFT+E in editmode to set edges-sharpness. values go from 0-1
- in F9 buttons you can set draw-crease mode. It draws now blended from
  wire color to edge-select color (as provided in Theme)

Known issue: setting sharpness on 1 cube (subdiv 2) gives weird results
with some values... Chris, can you check?

Further; code cleanups, changing 0 in NULL when needed, no warnings, etc etc
2004-07-08 20:38:27 +00:00
7febd4547d Finally, fixed the evil dll problem. It works now
on my win32 box with my tests without crashing.
But be aware! There may be more of them watching
us, waiting for a moment of distraction, nobody
is safe.
2004-06-27 20:10:20 +00:00
f69cc652e2 minor changes to sync with yafray cvs interface, getting closer
to the clean msvc build.
2004-06-24 21:17:52 +00:00
625e7fb12c These are changes sent by Luis_F who got this working on win32. Only applies
to that platform and fixes a problem findind yafray dll's
2004-06-21 08:17:05 +00:00
5fb7fbe391 NaN makefile fix for yafray dir and typo corrected on "xml" button tooltip 2004-06-17 16:34:27 +00:00
cfbce399aa These are changes necessary for building with msvc in a near future.
Just making sure memory is always allocated and freed in the same
binary  object, which seems to be mandatory on msvc if you don't have
the comercial version. If you are using this code you need to
syncronize with yafray cvs also, or it won't work. Binaries for os x
are updated in the link I gave in my last commit.
2004-06-17 11:24:30 +00:00
ed86852f7e New export through plugin scheme for yafray. It is working on linux and mac os x
Needs latest yafray, you can get it from cvs, but I have also binaries
for os x here:

http://www.coala.uniovi.es/~jandro/noname/downloads/yafray-0.0.6-3.pkg.zip

To use it, go to yafray panels (global settings) and uncheck the "xml" button.
That would tell the export code to avoid xml export and use the yafray plugin
instead. You'll see the render being draw while running and you can even stop it
with ESC key.

Since I'm sure problems will appear, expect updates soon.
Remember: does not work on win32
2004-06-16 18:44:12 +00:00
328f6c7c9e Added "Auto AA" toggle in Yafray Render panel defaulted to On (current functionality AA is determined by OSA and GI quality settings)
When disbaled, 2 number buttons appear to allow setting  manual AA passes and AA samples.

Johnny Matthews (guitarGeek)
2004-04-15 15:52:28 +00:00
f5d3649d17 Added Simple Image Background Exporting for Yafray
Add an image texture to the world (in any channel, the first one with an image will be used) and it will be exported as an image background
   The texture 'bright' slider is connected to the 'power' variable

If the image selected ends in hdr, it will be exported into an HDRI block.
   The texture 'bright' slider effects exposure adjust (it is slider value - 1) so a value of 1 == no expousre adjust. (this needs a better solution in a later    implementation)
2004-03-09 17:06:21 +00:00
516a0370ad Fixed problem of missing win32 drive when file selector was used to choose export path.
Fixed missing background when not rendering with GI enabled.
2004-01-30 21:47:34 +00:00
c28a1b5817 Fixed problem reported by Panagiotis Papadakos about yafray path in unix 2004-01-29 08:46:08 +00:00
8e6b1f54b1 Gi power behaviour changed so it's exported as a multiplier for the emit
component of the materials, background color, and dummy arealights. Hemi/Path
power is kept 1.0 now. Also changed the range for power to [0-100]
2004-01-27 12:41:37 +00:00
898001a2b6 As reported by Hiroshi Saito, M_1_PI apparently not recognized in VC6, removed it. 2004-01-27 06:23:33 +00:00
8273ebce0f fixed problem with ray button and shadow rendering
Blender 'sphere' mode lights in yafray should now have more similar light levels
render shadow button in Blender must now be enabled to render shadows in yafray too
some other minor shadow related corrections
2004-01-27 00:15:12 +00:00
e11754cf12 possible fix for os x problem, caused by SIGVTALRM 2004-01-26 12:15:33 +00:00
8b53b30563 arealight now can be used without global photonmap
fixed problem with spotlights not rendering
2004-01-25 20:28:46 +00:00
79884ff70b Added another control for new pathlight refinement parameter and solved
a problem with name collision betwen textures and shaders reported by kino.
2004-01-24 12:23:41 +00:00
32fa24339e Added missing headers for unix systems 2004-01-19 18:44:06 +00:00
033a16e258 Error checking in system call. 2004-01-19 18:36:53 +00:00
81d9e52e20 Search for yafray path under unix like systems (using expected paths).
Should fix OS X problems with executing yafray.
2004-01-19 15:32:16 +00:00
41144750da corrected particle object dupliverts and aramature duplivert export problems
corrected power slider increment update
2004-01-18 20:00:17 +00:00
3b1b0f3ef5 Gradient button is back and now there are controls to export bias and
raydepth to yafray. Plus some minor fixes
2004-01-15 17:01:02 +00:00
d217f86ed5 Just a bit of export values tunning. Should now work ok, with current
yafray CVS version using photons.
Last image got:
http://www.coala.uniovi.es/~jandro/noname/images/fromblender3.jpg
which you can compare with old:
http://www.coala.uniovi.es/~jandro/noname/images/causfromblender.jpg
2004-01-14 16:03:06 +00:00
4712655080 Global photons export for yafray. Square arealights, spot and point can work
as emitters. Needs latest yafray code, still not in cvs.
2004-01-13 16:51:35 +00:00
501adfba42 Yafray panel splitted in two so we can add more settings.
Also preliminar square arealight export, not usable yet, will be usefull
as soon as photon export is added.
2004-01-12 16:46:47 +00:00
d21cf447ab Fixed unresolved symbol bprogname under win32 2004-01-10 14:14:14 +00:00
b430cd167f Eeshlo's fix for the unit problem with texture paths exporting to yafray 2004-01-09 21:15:08 +00:00
5c51bd7e56 Code reorganization to allow a clean export to plugin alternative for
yafray
2004-01-08 23:12:56 +00:00
234fb27248 Added export for caustic settings based on the raytrans values. And settings
for casting them from GI (pathlight). A new contro "caus depth" in the panel
controls the maximun number of bounces going through objects.

Now images like this:
http://www.coala.uniovi.es/~jandro/noname/images/causfromblender.jpg
are possible with scenes like this:
http://www.coala.uniovi.es/~jandro/noname/examples/exp_test2.blend
2004-01-08 11:42:40 +00:00
059a846f3a From Eeshlo, also create the temporary dir inside yafray's install dir if the
user does not put a valid path on YFexport. So now all windows path problems
should be fixed, but never understimate windows.
2004-01-08 08:55:21 +00:00
50b7c10a7d Possible definitive fix for the problem of not finding yafray executable
on win32. Since yafray saves its installation path in the registry, we read it
from there and convert to a legal path for system()
2004-01-07 23:40:19 +00:00
db7b5a9617 Added multi-processor setting for yafray and quotes around the xml
file in the system call to avoid problems with complex paths.
2004-01-06 23:33:25 +00:00
bb6a4cf63f improvements in the reflection/refraction exporting for yafray.
Now should be more intuitive and controlable.
2004-01-06 20:24:33 +00:00
6ed79ede7e Eeshlo fixed the iYFexport path problem and added a file selector button
for it. Now win32 users should have less problems.

I added export of the "no shadow" flag (traceable) And changed the reflection
export scheme so now blender's RayMir is used as yafray's min_refle and the
amount of reflection is controled by the mir color. This seems more intuitive.
And now IOR is exported also for reflection only, wich is needed for fresnel.
2004-01-06 12:28:31 +00:00
a017282b62 Tweaks to get yafray stuff working with Makefiles
Kent
2004-01-05 17:42:07 +00:00
56db828948 - Added projectfiles for yafray
- renamed some variables in yafray_render.cpp so msvc doesn't whine

I'm not fluent in MSVC, so I hope I don't screw up :)
2004-01-05 15:58:48 +00:00
092c6fd1bb Yafray export code moved to source/blender/yafray to keep blender/src pure C
code. Now all the cpp code is in intern under yafray and the api include
file is just plain C

Also changed old include in initrender.c and updated Makefiles.am and configure.ac
so the new dirs are taken into account.
2004-01-05 14:53:56 +00:00