d54699bb45- Added UV mapping to displacement.
Robert Wenzlaff
2004-01-07 14:31:58 +00:00
e488ce003bPorted from tuhopuu2:
Matt Ebb
2004-01-07 12:59:42 +00:00
349617b872* Added OOPS Schematic menus
Matt Ebb
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).
Daniel Dunbar
2004-01-07 10:17:37 +00:00
38e88310b0Small usability fix for Knife Subdivide
Matt Ebb
2004-01-07 07:30:29 +00:00
3e17164a6c- removed some cruft from old method of subsurf hiding during editmode
Daniel Dunbar
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
Daniel Dunbar
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
Daniel Dunbar
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.
Robert Wenzlaff
2004-01-07 04:10:50 +00:00
db7b5a9617Added multi-processor setting for yafray and quotes around the xml file in the system call to avoid problems with complex paths.
Alejandro Conty Estevez
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.
Ton Roosendaal
2004-01-06 20:25:50 +00:00
bb6a4cf63fimprovements in the reflection/refraction exporting for yafray. Now should be more intuitive and controlable.
Alejandro Conty Estevez
2004-01-06 20:24:33 +00:00
6ed79ede7eEeshlo fixed the iYFexport path problem and added a file selector button for it. Now win32 users should have less problems.
Alejandro Conty Estevez
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.
Robert Wenzlaff
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.
Ton Roosendaal
2004-01-05 23:33:22 +00:00
906c75396aSCons 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).
Michel Selten
2004-01-05 21:30:26 +00:00
cea53c6473- previewrender with mapping type "Cube" didnt show correctly. added fake 'face normal' for this case
Ton Roosendaal
2004-01-05 21:18:47 +00:00
1170f5f6edDisplacement map
Ton Roosendaal
2004-01-05 20:25:07 +00:00
f78c0478f5Fix building a bundle for MacOS. (SCons related). This is a dirty solution. Maybe when we get to understand SCons better, we can come up with a better one. For now, it works - and that's important!
Michel Selten
2004-01-05 19:39:20 +00:00
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.
Nathan Letwory
2004-01-05 18:17:23 +00:00
a017282b62Tweaks to get yafray stuff working with Makefiles
Kent Mein
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
Roel Spruit
2004-01-05 15:58:48 +00:00
3cf499e044update scons files to build with yafray support
Stefan Gartner
2004-01-05 15:33:32 +00:00
092c6fd1bbYafray 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
Alejandro Conty Estevez
2004-01-05 14:53:56 +00:00
20d64f4b8ddon't link makesdna against libpng and friends when building with scons
Stefan Gartner
2004-01-05 14:49:52 +00:00
e3282df48eadded yafray_Render.cpp to scons files
Stefan Gartner
2004-01-05 14:48:59 +00:00
073668c796- this commit enable compile blender at IRIX again - #include <math.h> was missing
Jiri Hnidek
2004-01-05 13:49:16 +00:00
22bfc207f3-First port of Displacement mapping from tuhopuu. Image textures not working yet (R.vn and R.vlr no longer exist, and were needed to get the image mapped right). Works esp. well with Subsurfs. Sensitive to vertex normal issues in Simple and Mesh modes.
Robert Wenzlaff
2004-01-05 08:44:49 +00:00
57a7dfe5a5- Revert to NaN makefiles
Wouter van Heyst
2004-01-05 00:06:11 +00:00
29d23bf864Forgot to add some lines and cleanup in the makesdna/intern/SConscript file. The makesdna tool is SDL 'aware', but I forgot to pass some crucial flags to the build command. While working in that file, did some cleanup to make it more consistent with the other SConscript files.
Michel Selten
2004-01-04 21:42:01 +00:00
dbce416607- oren nayar call didnt return float value... but still worked on my system, and gcc refuses to see it as warning. weirdos! this caused previewrender to show black for oren nayar.
Ton Roosendaal
2004-01-04 21:32:50 +00:00
d3e1fc8870SCons build system files added. You'll need SCons (www.scons.org) to build. Platforms currently working: * Linux (me) - options for quicktime, openal and international disabled - uses the system libs and include files for building - no option to build with the precompiled libraries yet. * Windows (jesterKing) - builds with quicktime (optional) - builds with openal (optional) - builds with international support (optional) - Use the DOS box to build - builds with precompiled libraries * Irix (Hos) - Uses default Irix compiler - Not all optimization levels correct yet - options for quicktime, openal and international disabled - builds with precompiled libraries * Cygwin (me) - has a problem in the linking stage - uses free build tools (gcc) - options for quicktime, openal and international disabled - uses the system libs and include files for building - no option to build with the precompiled libraries yet. * MacOS (sgefant) - builds with quicktime (optional) - options for openal and international disabled - builds a nice bundle - builds with precompiled libraries
Michel Selten
2004-01-04 21:11:59 +00:00
2572db0bf0Fixed a problem where duplicating bones with a freshly created armature would segfault (access to a non-existent pose).
Chris Want
2004-01-04 17:11:22 +00:00
03fe244b58- changed calculus for area light to use double precision. Using float already gave noise with area size of 0.1. Limited buttons to minimum value of 0.01 for area light. For people who want smaller they can scale it down in 3d, effectively reducing the energy then as well.
Ton Roosendaal
2004-01-04 13:27:18 +00:00
bf541a5f63Returning the copy/paste/'paste flip' buttons to the 3D window header while in pose mode.
Chris Want
2004-01-04 07:47:51 +00:00
2c4e3d4f2cAdding a call to countall() to the select non-manifold, select more, and select less features.
Chris Want
2004-01-04 06:11:09 +00:00
9f009558bfA few related bug-fixes/refinements
Chris Want
2004-01-04 03:39:06 +00:00
f6d24b4a80- removed dead reference to UserStruct, causing problems in some builds.
Daniel Dunbar
2004-01-03 22:05:26 +00:00
e835de4e4cWoops! Forgot an #include, and rude old GCC didn't even let me know.
Matt Ebb
2004-01-03 13:44:42 +00:00
5596d88fae* Small tweaks to improve button positioning in the headers
Matt Ebb
2004-01-03 13:36:28 +00:00
b4c2362d24* Preliminary UV/Image header menus
Matt Ebb
2004-01-03 13:35:25 +00:00
6669831346* Preliminary NLA header menus
Matt Ebb
2004-01-03 13:13:51 +00:00
c9a7e4be17* Ported mesh editmode 'select random' from tuhopuu by popular request
Matt Ebb
2004-01-03 09:22:33 +00:00
cf8b43a2c8- constline was overwriting stack (this patch brought to you by VC7's nifty runtime stack corruption detection).
Daniel Dunbar
2004-01-03 06:52:16 +00:00
8ae5f17f2dDuplicating bones in edit mode now also duplicates the constraints associated with that bone ... if the constraint subtarget bone is also duplicated the new constraint points to this new bone as it's subtarget.
Chris Want
2004-01-03 06:50:36 +00:00
d2787f1372When a bone is renamed, all constraints that point to it are updated with the new name.
Chris Want
2004-01-03 06:27:53 +00:00
9f0123d0c7Three new selection techniques in mesh edit mode, two of which are controversial:
Chris Want
2004-01-03 06:01:16 +00:00
085730683dAdded the prototype for the bone_looper() function to this header to silence some warnings.
Chris Want
2004-01-03 05:36:56 +00:00
e090595ec9Hide selected/hide unselected/show all bones in posemode using the usual HKEY, shift-HKEY, alt-HKEY, and also through the menu.
Chris Want
2004-01-03 05:07:31 +00:00
d311e96174Armature speed ups, Part III ----------------------------
Chris Want
2004-01-03 03:53:18 +00:00
de21846e69BPython: - Fixed small typo in doc file Object.py, reported by user Bill. - Fixed bug #803:
Willian Padovani Germano
2004-01-03 03:50:58 +00:00
dc343a17e5- predeclared UserStruct with wrong name
Daniel Dunbar
2004-01-03 03:18:00 +00:00
24e63b2f89- more duplicate UserStruct patching
Daniel Dunbar
2004-01-03 03:11:22 +00:00
f8c00cbdef- solve redefinition of UserStructType in a different way, blenkey.h is not good to include it would seem.
Daniel Dunbar
2004-01-03 02:50:33 +00:00
c8a5bfc826made verify_pose_channel() return the pose channel that is either found or created (just removed some silly duplicated work).
Chris Want
2004-01-03 02:13:04 +00:00
33916a2402Armature speed ups, Part II --------------------------- "Delay Deform" option for armatures.
Chris Want
2004-01-03 01:40:53 +00:00
7303944ea9- update VC7 projectfiles
Daniel Dunbar
2004-01-02 23:35:21 +00:00
a5a01ed549Armature speed ups, Part I --------------------------
Chris Want
2004-01-02 23:29:34 +00:00
251c11cca1- BLO_keyStore.h was redeclaring UserStructType from blenkey.h, removed duplicate definition and include blenkey.h where needed. (VC7 patch)
Daniel Dunbar
2004-01-02 23:15:30 +00:00
a2f096236bDecoded the 'do_all_actions()' function into smaller functions that are a bit more sane and readable (actually fit in an 80 character term too).
Chris Want
2004-01-02 21:23:19 +00:00
171ee6e2dfFixed the goofy way the function prototypes in these files were done
Chris Want
2004-01-02 20:57:43 +00:00
b9f98c3545Expanding some work done by Matt Ebb to add menu's to the action window (Matt: please check).
Chris Want
2004-01-02 04:59:45 +00:00
f56eb94babWork done to build blender on Linux [sparc64].
Wouter van Heyst
2004-01-01 23:19:08 +00:00
7f90973344Fix a problem that has been bugging me for a while. Tracking axis by default are different for Lamp and Camera than for the rest. For the constraint, it wasn't using the correct ones for them, so obviously, it didn't track correctly by default.
Martin Poirier
2004-01-01 19:21:06 +00:00
4b6bc29bf2Some random small stuff packed in one commit:
Martin Poirier
2003-12-31 22:44:26 +00:00
ab36eaa947- removed Quicktime warning from buttons. Thanks for the fix Maarten!
Ton Roosendaal
2003-12-31 16:51:28 +00:00
f351708967Fixes the freeze on Mac OSX when a Quicktime Settings window for Compression was brought up. Blender swallowed every event, not giving Quicktime a change to receive update events and mouse clicks.
Maarten Gribnau
2003-12-31 15:47:09 +00:00
84780ae764- fixed reported bug in doing correct redraws for multiple 3d windows, and using vertex select. Was just caused by being to cheapskate with cpu cycles... but I don't give up on that!
Ton Roosendaal
2003-12-31 15:45:04 +00:00
3eee89e393- added extra check for valid Material pointer array in Mesh. Someone reported crash with a popular Python script that apparantly doesnt initialize a Mesh good (setting totcol, but not creating pointer array) When no Material array is present, 'totcol' is set at zero now.
Ton Roosendaal
2003-12-31 15:27:31 +00:00
10c0f4ae9f- bug fix#828
Ton Roosendaal
2003-12-31 13:48:45 +00:00
9bc012f97cA fix for the missing pad1 bug: henceforth, world->pad1 shall be known as world->gameEngine (a la tuhopuu).
Chris Want
2003-12-31 04:00:26 +00:00
d8b21b01c3Added improved exposure calculation
Ton Roosendaal
2003-12-30 18:03:37 +00:00
6c80064ab7- fixed switching contexts... the previous commit about this was too rigurous. Now it only switches context when selecting a new object type, also "invisble", when shading buttons are not drawn.
Ton Roosendaal
2003-12-30 16:00:38 +00:00
7d7fd069fc- fix for area light versus oren-nayer shading. oren-nayer was of course of not built for area-lights... so probably Cessen will kill me for this hack. Nice challenge for him to come with better solution. Visually it works & looks fine.
Ton Roosendaal
2003-12-30 00:04:22 +00:00
cf9ce09074- forgot to clip negative values coming from arealight formula. - excluded 'dist' factor calculus from arealamps, which caused too much distance sensitivity
Ton Roosendaal
2003-12-29 21:32:03 +00:00
b269f6f466- since the Object Transform panel in 3d window has sufficient space, made all buttons display 3 digits after dot, instead of 2.
Ton Roosendaal
2003-12-29 20:12:21 +00:00
5004432333- fixed crashing texture plugin, caused by not checking the tex->nor pointer. Now variables are localized, this is not always set anymore.
Ton Roosendaal
2003-12-29 20:05:15 +00:00
3ce1dc9065Area lights and more...
Ton Roosendaal
2003-12-29 16:52:51 +00:00
50448cdb1aFunction without a return (warning)
Martin Poirier
2003-12-28 20:24:32 +00:00
2eed0e54efbjornmose's UV mapping patch two new options to uv auto calculation: "from window to shere", "from window to cylinder". the differences to sphere/cylinder mapping as is: 1. the around settings of the 3D view sets the projection center 2. the origin of the polar/spherical coordinate system always points out of the screen. so the rotation of the view affects mapping. 3. in the cylinder case the radius of the projection cylinder is read by a popup button.
Martin Poirier
2003-12-28 19:59:06 +00:00
d2f725ef86Another bad flag. Mea Culpa.
Robert Wenzlaff
2003-12-27 17:29:25 +00:00
c5925664a2Accidently committed local flags. Bad coder.
Robert Wenzlaff
2003-12-27 16:52:51 +00:00
c476658348More cursor port bugs.
Robert Wenzlaff
2003-12-26 23:01:47 +00:00
3f7cc9b217Bugfix: Error in cursor port, only showed up under cygwin.
Robert Wenzlaff
2003-12-26 22:41:51 +00:00
ce041f555cadded Robert's cursor stuff to the msvc 6.0 project files
Roel Spruit
2003-12-26 20:29:11 +00:00
85ae21d5ddCommit of cursor framework. Cursors now defined in source/blender/src/cursors.c and source/blender/include/BIF_cursors.h. Allows large cursors on Win32 and X11. See cursors.c for documentatioin on how to use.
Robert Wenzlaff
2003-12-26 20:12:42 +00:00
da0e131b16- improved filling in faces in octree, resulting in less nodes and branches. Especially larger faces give result. Rendering times go down with an average of 10%. My reference testfile went down from 30.4 to 27.9 seconds.
Ton Roosendaal
2003-12-24 19:05:38 +00:00
e9a6c2d996Dan Sinclair's patch to add --version or -v to blender's command line options.
Kent Mein
2003-12-24 16:44:24 +00:00
a7bed78040- fixed bug in shaded view mode (SHIFT+Z) when it tried to calculate reflection normals... NULL pointer reference. (thanks Desoto!)
Ton Roosendaal
2003-12-24 16:18:13 +00:00
b3911687ee- only cosmetic stuff; result of going over the output of mipspro cc compile round. Wrong prototypes, unused variables, zealot const usage, and in action.c fixed insane & unreadable function call syntax.
Ton Roosendaal
2003-12-24 11:44:57 +00:00
8fbff1a3b7- Fresnel V4.0
Ton Roosendaal
2003-12-23 22:31:48 +00:00
4d8fce8568Fixed bevel width preview drawing which draws the correctly with higher recursion level (it was incorrect for anything higher than 2). Also commented out a couple of unused variables that were shouting warnings (and we all love the lack of warning and the couple of extra free bytes) :)
Martin Poirier
2003-12-23 19:03:30 +00:00
454166026a- another fresnel improvement. :) At last irc meeting, eeshlo pointed to an error in the code. It didn't use the IOR value correctly. This has been solved. So how it works now: - the IOR button value influences (very subtle) the fresnel effect. Only for realism diehards. - the Fresnel value (slider) now denotes the power in the function rf + (1-rf) * (1-c)^5 where rf= rf = ((ior-1)/(ior+1))^2 and c the dot-product ray/normal. - so, set the slider at '5' and you have real fresnel. Lower values for interesting artistic effects.
Ton Roosendaal
2003-12-22 22:27:51 +00:00
3df84b755f- fixes for the stubs, to make sure blenderplayer compiles. error was caused by moving render calls to render module... but some are still called in blender kernel...
Ton Roosendaal
2003-12-21 23:38:41 +00:00
6d6dee7ba8- globals were defined double... showed up thanks to warning of irix compiler!
Ton Roosendaal
2003-12-21 22:57:02 +00:00
80622fca55updated msvc projectfiles: added texture.c and removed some others..
Roel Spruit
2003-12-21 22:43:10 +00:00
d012036c1f- moved render.h struct back to beginning of file...
Ton Roosendaal
2003-12-21 22:38:29 +00:00