Commit Graph

47594 Commits

Author SHA1 Message Date
e3080c9580 Added support for outputting bmp's
The padding is slightly messed up, so it produces somewhat trunkcated images
however it works.  I'll try and fix it later but I have to go home now.
Its atleast usable at this stage.

I moved bmp_decode.c to bmp.c and cleaned it up a little bit.

Kent
2004-01-09 22:04:08 +00:00
b430cd167f Eeshlo's fix for the unit problem with texture paths exporting to yafray 2004-01-09 21:15:08 +00:00
4f398031b8 - Merged conversion to renderfaces for mesh and subsurfs.
This fixes bug in wrong flipping of normals during render in some cases
  too. Most important, it also allows autosmooth and halos now with subsurf.
  Particles do work, but still use the original geometry.
- I only coded 4 bytes of this, rest is from master zr!
2004-01-09 20:52:44 +00:00
aba8ca4440 From Eeshlo: fixed bug with dupliverted lamps not exporting. Also now it
skips envmaps, octree and radiosity when yafray is enabled.
2004-01-09 08:31:23 +00:00
cef4ef250c - Removed some out-of-date comments in Displacement. 2004-01-09 04:16:16 +00:00
024c67bd47 - Displacement scalling. Displacement now handles sizex/y/z of object
properly, and uses the AutoTexSpace button to see if the size of the
	data needs to be adjusted for.

	- Scale now split to x/y/z components.  Not sure if this is the most.
	logical way to do it.  Will have to reconsider later.
2004-01-09 03:57:14 +00:00
bfdf036b45 - Add new yafray files to SConscript 2004-01-08 23:57:57 +00:00
5c51bd7e56 Code reorganization to allow a clean export to plugin alternative for
yafray
2004-01-08 23:12:56 +00:00
32a96642bd - added displist option to 10-timer (ctrl-alt-t), runs makedisplist
on current option (for timing subsurf stuff).
2004-01-08 20:08:27 +00:00
eb6ef538e9 - committed new uiDef{Icon,IconText,}ButBit? functions
- change object draw flag buttons to use new functions (just an example)

 While I probably wouldn't recommend patching other buttons to use the new
functions a week before release, it is a good (simple but tedious) project
to complete. Note that some code actually defined the constants for the
bit index, when such code is fixed the _BIT constant should be removed from
the headers.

Example:
DNA_constraint_types.h:
#define CONSTRAINT_DISABLE		0x00000004
#define CONSTRAINT_DISABLE_BIT	2

buttons_object.c:
uiDefIconButS(block, ICONTOG|BIT|CONSTRAINT_EXPAND_BIT, ...);

The button definition should change to:
uiDefIconButBitS(block, ICONTOG, CONSTRAINT_EXPAND, ...);

(whats that, the more correct way uses less typing, GOOD GOD!)
and the CONSTRAINT_DISABLE_BIT define should be removed.
2004-01-08 19:53:19 +00:00
239edfc272 some cosmetic changes to make the compiler shut up when building with scons
on os x
2004-01-08 16:28:45 +00:00
0be1e050a5 fix (?) for compiling with quicktime support on some versions of os x
with some versions of gcc (aka. the nasty ID problem). see also
http://www.blender.org/pipermail/bf-committers/2003-November/004660.html
2004-01-08 16:26:30 +00:00
71597eb061 - Corrected scale factor to be independant of object
rotation.  (Still not right, but better).
2004-01-08 14:19:25 +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
Nathan Letwory
6e97d0bcd3 - fixing a bug which can lead users to potentially resize windows such that they can't be regained anymore. Also, when removing the header from the userdefs, resizing it to 1 pixel height made it very inaccessible. This problem was reported _and_ fixed by ndh (Andreas Haferburg). Thanks! 2004-01-08 09:16:19 +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
f6f06ba54d - removed duplicate flags from BKE_mesh.h
- removed rendermesh_uses_displist (no longer relevant)
 - converted appropriate me->flag tests to using mesh_uses_displist
 - made vert and face counting (for info header) use proper counts
 - changed flip_subdivision to allow level==0 argument
 - ps. thanks for subsurf orco fix ton
2004-01-08 04:42:29 +00:00
86e32ddcc8 tsk, little screwup on last commit 2004-01-07 23:45:09 +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
d959b8127b Applied Daniel Fairhead's patch for a correct working DELKEY in textinput buttons.
(thanks!)

Added a 'void' somewhere to silence a compiler warning.

(Windows only)
Moved the flip fullscreen button in the topheader a little to the right, since the
questionmark button mysteriously disappeared.
2004-01-07 23:33:40 +00:00
f0821decff Left over work from localizing renderdata!
- when quads get split before render, the vertexcolors and texture face
  (UV) info has to be corrected as well. This happens runtime during
  render, no new data is created. The code was in previous versions, but
  with raytrace and other new features it needed a rewrite
- this now also should work for the new smart split code from robert!
2004-01-07 21:44:09 +00:00
Nathan Letwory
1126706d2e - [win32] now really using the directory Blender is installed in. My patch was kinda incomplete, but aphex_ (Simon) was kind enough to point out the lines to edit :) 2004-01-07 21:03:11 +00:00
f2f514d1d4 Fix for cube map error subsurf.
- cubemap relied on pointer to MFace, which is only available for Mesh
  when directly converted to renderfaces.
  It then checked the 'puno' flag where also bits were set to indicate
  the optimal projection for a face (XY, XZ or YZ).
- I found out the renderface also has a puno flag, so the mface pointer
  in a renderface is redundant. Is removed now
- added code in texture cubemap call, which checks on a projection flag
  in 'puno'. If not set, it uses the orco's to calculate one.
- this means, that cubemap now also works for other objects than meshes,
  provided they have an orco block while render.
- if no orco block available, it uses the 'global' projection to find which
  of the cube sides map.

I couldnt find other errors with subsurf & orco though...
2004-01-07 20:29:21 +00:00
Chris Want
7aeb986faf Some better pose figuring: in pose mode, when *any* parent of a
constrained bone is flagged for updating (not just an IK parent) we
should update the constrainted bone (except possibly when the
subtarget bone shares the parent). This solves the "Character doesn't
crouch when I pull his spine downward" bug reported in the testing
builds forum.
2004-01-07 17:11:20 +00:00
8396163515 - Ooops, random keystroke snuck into file between make and commit. 2004-01-07 14:39:50 +00:00
d54699bb45 - Added UV mapping to displacement. 2004-01-07 14:31:58 +00:00
e488ce003b Ported from tuhopuu2:
* Added hotkeys Ctrl , (comma) to select 'median point'
pivot and Ctrl . (period) to select 'individual object
centers' pivot.
2004-01-07 12:59:42 +00:00
349617b872 * Added OOPS Schematic menus 2004-01-07 12:26:40 +00:00
ecd620a5aa - removed some old cruft from init_render_displist_mesh (for smeshes-RIP)
- reduced main subsurf interface to two functions to make DispListMesh
    structures from an editmesh or a regular mesh. for the most part this
    means that to implement a geometry modifier you only need to write
    these two functions (not very plugable yet however).
 - added displistmesh_from_mesh and displistmesh_from_editmesh functions
    which allow simple support of subdivLevel(0) subsurfs, somewhat handy
    for testing things (like why orco doesn't work for subsurf).
2004-01-07 10:17:37 +00:00
38e88310b0 Small usability fix for Knife Subdivide
* If there are no selected edges when the function's
invoked, it now gives an error message and returns.

If anyone can think of a better message, please suggest it
(or just commit it ;)
2004-01-07 07:30:29 +00:00
3e17164a6c - removed some cruft from old method of subsurf hiding during editmode 2004-01-07 06:31:16 +00:00
7f609ec2aa - added BLI_ghash_size(), number of entries in table
- added GHashIterator ADT, for iterating over GHash-tables
2004-01-07 06:13:43 +00:00
8e9e9e6e35 - migrated a subsurf routine to displist.c: displistmesh_calc_vert_normals()
- removed some vertice tweaking for subsurf->displist conversion
 - replaced stupid way of doing edcode calculation for ME_OPT_EDGES flag
2004-01-07 05:50:17 +00:00
e2a2ceb6e5 - Displacement now works for all object types. (However, some are only
marginally suitable, like curves, because of relatively low renderface
	count).  Will have to thoroughly document pros and cons of each type.

	Usefullness order (greatest to least):
		CC Subsurf Meshes (Displacement likes the smooth normals)
		Simple Subsurf Meshes
		Manual subdivided meshes
		MBalls
		Surfaces (Normal errors/ hidden seams)
		Curves (Large flat areas with few renderfaces to displace).
2004-01-07 04:10:50 +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
e4d0d9cc44 - decided to use a new variable for the new exposure option, instead of
re-using old one. New one = 'exp'.
- at first I used the old 'exposure' value, and just mapped it to 0. this
  causes a problem with upward compatibility, old blenders then render a
  black picture. is too confusing!
- warning; exposure values saved with commit of last week will get lost.
2004-01-06 20:25:50 +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
8eb1d25f96 - Adaptive spliting of renderfaces for displacement. Choose to split
between verts 1-3 or 2-4 based on minimum displacement gradient.
        drastically improves smoothness with out additional subdividing.
2004-01-06 05:21:16 +00:00
deafae4286 - displacement 'map to' channel now has three values, to allow to negate
the effect as well.
2004-01-05 23:33:22 +00:00
906c75396a SCons updates:
* Removed debug print in ftfont.
* Added FreeType/FTGL support to the Linux build.
  NOTE: This feature is on by default, but depends on the pre-build libraries.
  So checkout the lib directory. The lib dir should be on the same level as
  the blender dir. (In case you didn't know).
2004-01-05 21:30:26 +00:00
cea53c6473 - previewrender with mapping type "Cube" didnt show correctly.
added fake 'face normal' for this case
2004-01-05 21:18:47 +00:00
1170f5f6ed Displacement map
- changed code to make use of actual textures, not the hackish
  'externtex', which is only for tools
- added a 'displacement' vector in ShadeInput, and moved calculation of
  displacement vector to texture.c itself. So it works with stencil, but
  also for options as 'add', 'mult' and 'sub'.
- for RGB textures it uses the brightness value of color for displace
- for stucci, and plugin textures returning a normal, it uses that

- Also: wrote call in end of preparing renderfaces, to split non-flat
  quad faces in triangles. gives a lot fewer errors in displace textures,
  but also raytracing irregular subsurfs goes better now.

- texture mapping that works for displace: orco, sticky, global, obj, normal.
  UV not yet. Reflection-displace? uhh! :)
2004-01-05 20:25:07 +00:00
Nathan Letwory
a66108134c - Added the SConscripts for ftfont and quicktime
- [win32] python_include was missing, there was a double python_libpath. Corrected
- [win32] the soundsystem SConscript broke the win32 build.
2004-01-05 18:17:23 +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
3cf499e044 update scons files to build with yafray support 2004-01-05 15:33:32 +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
20d64f4b8d don't link makesdna against libpng and friends when building with scons 2004-01-05 14:49:52 +00:00
e3282df48e added yafray_Render.cpp to scons files 2004-01-05 14:48:59 +00:00