Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2005-03-09big warning hunt commitJean-Luc Peurière
lot of casts, added prototypes, missing includes and some true errors
2004-12-27Biiig commit! Thanks to 2-3 weeks of cvs freeze...Ton Roosendaal
Render: - New; support for dual CPU render (SDL thread) Currently only works with alternating scanlines, but gives excellent performance. For both normal render as unified implemented. Note the "mutex" locks on z-transp buffer render and imbuf loads. - This has been made possible by major cleanups in render code, especially getting rid of globals (example Tin Tr Tg Tb Ta for textures) or struct OSA or using Materials or Texture data to write to. - Made normal render fully 4x32 floats too, and removed all old optimizes with chars or shorts. - Made normal render and unified render use same code for sky and halo render, giving equal (and better) results for halo render. Old render now also uses PostProcess options (brightness, mul, gamma) - Added option ("FBuf") in F10 Output Panel, this keeps a 4x32 bits buffer after render. Using PostProcess menu you will note an immediate re- display of image too (32 bits RGBA) - Added "Hue" and "Saturation" sliders to PostProcess options - Render module is still not having a "nice" API, but amount of dependencies went down a lot. Next todo: remove abusive "previewrender" code. The last main global in Render (struct Render) now can be re-used for fully controlling a render, to allow multiple "instances" of render to open. - Renderwindow now displays a smal bar on top with the stats, and keeps the stats after render too. Including "spare" page support. Not only easier visible that way, but also to remove the awkward code that was drawing stats in the Info header (extreme slow on some ATIs too) - Cleaned up blendef.h and BKE_utildefines.h, these two had overlapping defines. - I might have forgotten stuff... and will write a nice doc on the architecture!
2004-12-08Essential cleanup for mess involved with reading files, initializing UI andTon Roosendaal
patching versions for UI settings. Currently four different levels of routines for .blend file reading exist; /* interface level */ 1) BIF_init() -> calls 3 2) BIF_read_file() -> calls 11, optional 4 3) BIF_read_homefile() -> calls 11 or 12, and then 4 4) init_userdef_file() /* kernel level */ 11) BKE_read_file() -> calls 21, and then 14 12) BKE_read_file_from_memory() -> calls 22, and then 14 13) BKE_read_file_from_memfile() -> calls 23, and then 14 14) setup_app_data() /* loader module level */ 21) BLO_read_from_file() -> calls 24 22) BLO_read_from_memory() -> calls 24 23) BLO_read_from_memfile() -> calls 24 /* loader module, internal */ 24) blo_read_file_internal() Note: - BIF_read_homefile() has additional UI initialize calls, like windows fullscreen and executing commandline options - Reading from memory (12) only happens for the compiled-in .B.blend - The "memfile" here is a name I gave to the undo "file" structure. Which is constructed out of memory chunks with basic compression features. - the kernel function setup_app_data() sets globals like "current screen" and "current scene". So far, so good. The levels as mentioned here clearly distinguish UI from kernel, and should enable for example game loading (runtime) or background (no UI) loading. In the past years however, 'bad level' dependencies were added, and especially the patches for 'file versions' were added in too many places. The latter is evidently a result of the problem that the "UserDef" struct cannot be initialized/patched if there's not a need for a UI. Here's how the flow goes in four different cases: ----- Starting up Blender, in foreground with UI -------------------- - creator/creator.c, main() -> calls 1 - If the commandline contains a filename, it calls 11 ----- Starting up Blender, in background without UI -------------------- - creator/creator.c, main() -> calls 11 if the commandline has a filename Note: no Userdef is read, nor initialized. Please note that this was already an existing problem for using Yafray, not setting proper file paths in background mode. The Yafray paths don't belong in the User menu. ----- Starting up Blender as a runtime executable -------------------- This only has calls to 22 ----- Loading a file from within the UI (with F1, CTRL+O, using pulldowns) ----- Only calls allowed to 2. It detects if a UserDef has been read too, and in that case the init_userdef_file() will be executed. Hope this is understandable :) -Ton-
2004-11-28cleaning commitJean-Luc Peurière
shut the warnings GCC was producing for Os X
2004-10-20BPython:Willian Padovani Germano
- Blender.Window: added function GetPerspMatrix() (Tom Musgrave's patch, thanks); - added Chris Want's patch to tell argc, argv to the Python interpreter (thanks, Hos); - Blender.Image: added image.glFree() to free textures bound by the recently added image.glLoad() (both suggested by Campbell Barton -- thanks, with these Blender can be used to load textures for scripts); - Blender.Sound: removed for now at least a few get/set methods of vars that can't be accessed via interface; - renamed Get/makeActive to Get/setCurrent in Blender.World (actually added alias for now), same in Blender.Sound: renamed makeActive to setCurrent. Stephen Swaney pointed this some weeks ago, we should stick to one naming convention. - added documentation for Sound and Window.Theme modules and the other added functions, made other small updates. - Blender.Object: made 'worldspace' become the default output of .getMatrix and .mat/.matrix: after reading a discussion on blender.org's Python forum where eeshlo mentioned the pre 2.34 default was worldspace, I took a better look at Blender's relevant code, confirmed, talked to Theeth about this and as he suggested am changing the default back to 'worldspace'.
2004-08-02OS X fix:Jean-Luc Peurière
those who work with visible dock where experimenting slowdown of UI when blender window was overlapping dock. now : - check available space excluding dock - create window with a 10 pixels border - maximised mode is only 1 click away This code is fixing only. Will review that when consensus will be found about how we should create the window.
2004-07-28 new window behaviour for macos X computers :Jean-Luc Peurière
if video card is open GL accelerated and has 16 Mo or more start window in maximized mode wich is a full screen mode but keeping access to other windows and sytem menu items older comps start as usual
2004-07-21creator.c wasn't updated in my last commit, here it is (the change reverts ↵Willian Padovani Germano
my previous change to it, since it was made unnecessary by handling onload scriptlinks a little differently, as can be checked in blender.c and editscreen.c). - BPython: finishing object and nmesh .setMaterials commit, fixing two bugs. Also fixed a crash with object.track (pointer wasn't checked for validity). All based on reports and patch by Yann Vernier, thanks again.
2004-07-16Demo mode and BPython:Willian Padovani Germano
- small additions and fixes to enable the demo mode; - Added sleep() to Blender.sys and 17 new functions to Blender.Window module: things to help demo script writing and as a bonus read / write access to Blender's input event queue; - updates in docs, those interested please check Window.py in python/api2_2x/doc/ to read about the new Blender.Window functions. ---- Demo mode should be working well now for (I) playing rt animation -- aka ALT+A -- and (II) rendering pics and anims and playing anims. I'll still add access to radiosity data and functions. PS: Joseph Gilbert made (II) possible with the Scene.Render module he added for 2.32. He's been coding great things for bpython, so I'd like to take the chance to point that and thank him here.
2004-07-03New scripts:Willian Padovani Germano
- hotkeys, obdatacopier and renameobjectbyblock, all from Jean-Michel Soler (jms); - bevel_center by Loic Berthe, suggested for inclusion by jms; - doc_browser, by Daniel Dunbar (Zr) Thanks to them for the new contributions! (I included doc_browser at 'Misc' because only users interested in script writing would actually use it, but it could also be under 'Help'. Opinions?) BPython related: - Added scriptlink methods to object, lamp, camera and world. - Object: added object.makeTrack and object.clearTrack (old track method). - sys: made sys.exists(path) return 0 for not found; 1 for file, 2 for dir and -1 for neither. - doc updates and fixes. - made ONLOAD event work. G.f's SCENESCRIPT bit was being zeroed in set_app_data. - Blender: updated functions Load and Save to support the builtin importers and exporters besides .blend (dxf, videoscape, vrml 1.0, stl, ...) - Draw: added mouse wheel events. - Scene: added scene.play to play back animations (like ALT+A and SHIFT+ALT+A). Makes a good counter, too, when the 'win' attribute is set to a space that doesn't "animate". The scene.play() addition and the fix to ONLOAD scriptlinks is part of the work for a Blender demo mode. It already works, but I'll still add support for Radiosity calculations and fix a thing in main(): it executes onload scripts too early (BIF_Init), giving funny results in alt+a animations and renderings when firing up Blender. Loading after the program is up has no such problems. When I finish I'll post examples of demo mode scripts.
2004-05-16Added #!/usr/bin/python standard script identifier to the start of ↵Kester Maddock
SConscript files. Makes text editors identify SConscripts as Python, and syntax highlight properly.
2004-04-21Forgot to remove test prints from creator.cTon Roosendaal
Also added note about removing audio init in comment.
2004-04-21Fix for slow starting of Blender.Ton Roosendaal
This was caused by calling sound_init_audio() at startup. In situations where Blender was first started, or when other applications used memory, this could take 5-15 seconds. I have moved the init call to 'start ketsji', and made sure any call to an audio play routine will invoke an init as well. Tested with engine and loading/play sound in F10 menu. I don't know how the BlenderPlayer handles it... should be investigated. Result: At OSX Blender starts in a second again! :)
2004-03-31BPython:Willian Padovani Germano
- tentative fix for scripts with CR/LF endings and split lines: in 2.32, the ac3d and vrml2 exporters, for example, had lines split with '\\\\' and so gave syntax errors when executed on Win platforms, because the scripts bundled with Win binaries had dos line endings. - Chris Keith has written code to execute Python scripts from the command-line, with '-P ' switch: "blender -P filename": a Blender.Quit function was also added, so Blender can quit after running the script (end the script with Blender.Quit()), but there's still work to be done in this part, including adding more functions, to load / save .blend files and to run scripts. More testing and discussions are necessary. Thanks Chris, for both your contributions and your patience, since I wasn't available to check / commit this for a while.
2004-03-05* [SCons] enable BUILD_DATE for win32. Basically SCons creates an extra file ↵Nathan Letwory
in source/creator, which is included by buildinfo.c whenever BUILD_DATE is on and building on Windows. SCons automatically takes care of this dependency.
2004-03-02Added OpenBSD3.x to the SCons build system.Nathan Letwory
2004-03-01SCons updatesMichel Selten
* Blender static now links. By default this option is disabled on all platforms. Simply set the option in config.opts to 'true'. * Added the following flags to config.opts: - HOST_CC. This is the C compiler for the host platform. This value is the same as TARGET_CC when not cross compiling. - HOST_CXX. This is the C++ compiler for the host platform. This value is the same as TARGET_CXX when not cross compiling. - TARGET_CC. This is the C compiler for the target platform. - TARGET_CXX. This is the C++ compiler for the target platform. - TARGET_AR. This is the linker command for linking libraries. - PATH This is the standard search path All SConscript files have been updated to reflect these changes. Now it's possible to change only the root SConstruct file, and all compiler specific variables are passed automatically to all SConscript files. Of course, this does not apply to makesdna because there the host and target platform is different from all other libraries. To pass a variable that applies to all platforms, all we now have to do is set the correct value in library_env Note: as usual, to get the latest options in the config.opts file, first remove your version.
2004-02-24SCons updatesMichel Selten
* Added the options to build (configurable via config.opts): - blender dynamic (default enabled), - blender static (default disabled). Not working because of a linking order problem. The /usr/lib/libGL.a and /usr/lib/libGLU.a flags need to be appended at the end of the link command, not directly after the linker. Mailed the SCons mail list for a possible solution. - blender player (default disabled). Not implemented yet anyway. - blender plugin (default disabled). Not implemented yet anyway. * Added the following variables to the config.opts: - OPENGL_STATIC. This flag is only needed when building blender static. - USE_BUILDINFO (true/false). Display build information in the splash screen. When enabled, it will always rebuild source/creator/buildinfo.c, so for compilation speed reasons, it is not adviced to enable this all the time. I had to make some adjustments specifically for the windows build (winblender.res) file. This file is only compiled when building the dynamic blender. I hope this is correct.
2004-01-15Scripts in menus:Willian Padovani Germano
-- this finishes the heavier part (not counting tweaks and possible bugs) of letting scripts be accessed from Blender menus. Will explain more in emails to bf and bpython lists, but just check source/blender/python/BPY_menus.[hc] and source/blender/src/header_info.c and header_script.c for details. Scripts need a small update (registering info, basically a header) to be used. Scripts dir (user pref file paths: Python) must be set.
2004-01-05- Revert to NaN makefilesWouter van Heyst
2004-01-05Basic initial yafray integration by Eeshlo.Alejandro Conty Estevez
Materials are exported the best we can do by now. It will look almost as in blender except for the missing procedural textures and some minor issues. You have to tweak normal modulation amount to get the desired result cause is not the same in yafray. We added a panel in render space to adjust some yafray settings (GI and so) Also we export transparency and reflection using new raytracing settings, but that will be changed and improved soon. Remember that you have to set YFexport path in user defaults and yafray must be on path (version 0.0.6) We added the "yafray" button to activate all this stuff in the render window. Panel and settings are only shown when checked. So now when activated the code calls yafray export instead of the internal renderer and finally the resulting image is loaded back into render window's buffer. So animation is also possible and results can be saved using blender usual scheme.
2003-12-24Dan Sinclair's patch to add --version or -v to blender's command line options.Kent Mein
Kent
2003-11-25- forgot to do this... belongs to commit with text:Ton Roosendaal
bug fix: in background render, the default builtin font was not activated for rendering when other fonts were packed too.
2003-11-23Added all necessary BPY_extern.h include files to the .c files.Michel Selten
Updated the Make environment to point to the correct location. The include paths were still pointing to source/blender/bpython/include while it should be source/blender/python. I did not encounter the build problems because I'm always working with the autoconf build environment.
2003-11-22Got rid of many #include "BPY_extern.h"Chris Want
Homework from Michel: do grep BPY source/blender/src/* and see if there is anything that needs fixing.
2003-10-10- adapted startsize for osx version to match powerbook (768 high)Ton Roosendaal
- add patch in prevsize routine (editscreen.c) to subtract apple top header, this allows 'fullscreen' with windowbar behind topbar.
2003-10-09- increased default windowsize for OSX a bit, to match better a goodTon Roosendaal
layout. Old size was 800x600, just not too nice New size is 900x768. this default small size is for older macs that dont allow full size 32 bits opengl windows... silly er! :)
2003-10-05Finally add spike's FreeBSD suggestions. Tnxto Chris for forwarding.Hans Lambermont
2003-09-18removed native quicktime init/exit calls from main blender code.Rob Haarsma
2003-09-10removed an useful #include which caused a compilation errorJacques Guignot
2003-09-10moved Quicktime init function from creator.cRob Haarsma
2003-07-20- Blender in background render mode (blender -b) now reacts to CTRL+CTon Roosendaal
again. You'll have to do it twice... first CTRL+C will send an internal break (exit render loops) - I prefer this in foreground mode too, but Python uses it as well, to escape from loops. We have to fix this once.
2003-07-03removed extra tabs in the help function.Kent Mein
It was function() { blah } changed it to just function() { blah } Kent
2003-06-29Moved the OPENGL_HEADERS to the end of the include pathsChris Want
-- so that render.h from another package (such as the Xrender extension on irix) doesn't conflict with the blender one.
2003-06-28- Added user defined python dir to Python's sys.path:Willian Padovani Germano
Had to add a function call to creator.c, explained in a note there (look for pythondir in the file)
2003-06-18Rolled back comments. According to new guidelines, no .c filesCasey Corn
should contain doxygen comments.
2003-06-05Registering .blend files now works for Windows -- hopefully!Simon Clitherow
You will need to re-register the blend files (blender.exe -R) for the fix to come into action.
2003-05-30This is a fun one ;)Kent Mein
Removes ssl from blender. makes the following directorys not needed anymore: blender/intern/keymaker blender/source/blender/src/pub blender/source/blender/encrypt blender/source/blender/decrypt blender/source/blender/sign blender/source/blender/verify It works with The Nan Makefiles and autoconf, could whoever is working on the other build systems update them so we can nuke those directorys? They won't do anything but I figured I'd leave them in for a week or so to make things easyer on people. Kent
2003-05-26Added docs/formatted existing docs for doxygen.Casey Corn
2003-05-23First documentation commit :)Casey Corn
2003-05-13revert to previous version, as starting blender maximized on os x doesn'tStefan Gartner
seem to be ready for prime time yet
2003-05-13maximize blender window on startup on os xStefan Gartner
2003-05-09forgot to commit this one for win/fullscreenRob Haarsma
2003-05-05added fullscreen command line switch on Win32 -WRob Haarsma
written by Florian Eggenberger.
2003-05-02fun with quicktime:Stefan Gartner
#include <QuickTime/Movies.h> instead of #include <Movies.h> on OS X to avoid having to specify the full path to the QT headers in the Makefiles #undef NDEBUG on OS X to avoid errors about ID being declared twice enable support for QuickTime in the original Makefiles on OS X
2003-04-30LAST of the c code comment translations... hooray!Ton Roosendaal
Might be possible I mised an .h or so, just notify me in that case.
2003-04-28Added Quicktime support for OSX and Windows.Rob Haarsma
This code allows you to load Quicktime images and movies as textures and render animations to Quicktime movies. Note that the selected output codec is *not* saved in the blendfile. To enable Quicktime functionality you need the SDK from Apple: OSX: ftp://ftp.apple.com/developer/Development_Kits/QT6SDK_Mac.hqx Win: ftp://ftp.apple.com/developer/Development_Kits/QT6SDK_Win.hqx Add the \QTDevWin\CIncludes and \QTDevWin\Libraries directories from this SDK to your build environment. Enable the WITH_QUICKTIME compile flag in the following directories: bf\blender\source\blender\imbuf bf\blender\source\blender\src bf\blender\source\blender\render bf\blender\source\creator
2003-03-24Remove references to obsolete misc libDaniel Dunbar
2003-03-24Update things to use blender_test_break() vs MISC_test_break() andDaniel Dunbar
remove use of blendertimer.h
2003-03-24Kill 2 undefined function warnings.Daniel Dunbar