Commit Graph

1790 Commits

Author SHA1 Message Date
Michel Selten
70a4ead0ae SCons updates
* 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-29 21:40:48 +00:00
Robert Wenzlaff
5998c12c60 Fixes bug report 1012. Copy Attrib didn't copy sudsurftype.
(Now it does.)
2004-02-29 16:45:10 +00:00
Daniel Dunbar
2c9b1d0005 - SCons prob, options file strings were printed with %s, changed
to %r so special characters are quoted properly
2004-02-29 15:08:18 +00:00
Daniel Dunbar
d63ca836db - SConscript error for mathutils, no comma after C file 2004-02-29 15:07:32 +00:00
Martin Poirier
bb635946f9 Projectfiles fix for Mathutils 2004-02-29 15:07:31 +00:00
Joseph Gilbert
a03d2abe0d Update to SCons for new Mathutils lib 2004-02-29 13:26:42 +00:00
Joseph Gilbert
8f3a9815ba Mathutils library for the python API
- support for quaternions, euler, vector, matrix operations.
- euler supports unique rotation calculation
- new matrix memory construction and internal functions
- quaternion slerp and diff calculation
- 2d, 3d, 4d vector construction and handling
- full conversion support between types
- update to object/window to reflect to matrix type
- update to types/blender/module to reflect new module
2004-02-29 13:20:34 +00:00
Rob Haarsma
2255ac3b19 Here's the Russian translation of Blender's interface.
Thanks go out to Yurec !
2004-02-25 14:39:25 +00:00
Michel Selten
8023fb4282 SCons updates
* 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-02-24 20:03:27 +00:00
Kent Mein
6379637089 sorry more ;'s this should be the last of them though.
Kent
2004-02-23 19:14:38 +00:00
Kent Mein
a0e9208c35 another extraninous ;
Kent
2004-02-23 19:05:42 +00:00
Kent Mein
2b2e272829 some more warnings cleared up from Solaris compiler.
(extra commas in enum declarations.)

Kent
2004-02-23 18:46:19 +00:00
Michel Selten
d4b27baa2b SCons updates
* OpenAL support is now available on Linux. By default this feature is
  disabled since it is only necessary when building the game engine. And the
  game engine is disabled by default as well, so...
* Added 3 configurable options to config.opts. These apply to OpenAL settings.

NOTE: remove your current config.opts file to get the new options. (remember
      your current settings though ;) )

2nd NOTE: All options* are now configurable via the config.opts file. If the
          default settings for your platform are not correct, you should be
          able to only update the config.opts file.
  * FMOD is still not available - and I do not know if it is necessary to
    enable this feature.
2004-02-23 16:18:28 +00:00
Kent Mein
8134398de4 removed an extra ;
Found it with Sun's compiler.

Kent
2004-02-23 15:31:27 +00:00
Michel Selten
874d454d67 SCons updates
* Removed the I18N_DEFINES from the config.opts file. This define is not a
  user setting. The defines depend on what options the user enables in the top
  of the config.opts file (USE_INTERNATIONAL).
* Moved the defines to the correct SConscript files.
  Only the relevant libraries now use these defines.
* Windows fix for the python settings. There were missing brackets [ and ] for
  these settings.
2004-02-23 14:39:08 +00:00
Kent Mein
d9cf17d930 Added a if defined(__sun)
I believe gcc and sun's cc have it defined differently.
It wasn't including statfs.h now it is.

Kent
2004-02-23 14:29:10 +00:00
Kent Mein
50549b602a Added a return GHOST_kSuccess;
to setWindowCustomCursorShape

Sun's compiler complained that it didn't return anything even though
it was suppose to.

Kent
2004-02-23 14:10:00 +00:00
Nathan Letwory
ce6eaaad57 * [WIN32] Added snprintf define so msvc linker doesn't complain about missing symbols. 2004-02-23 09:04:55 +00:00
Michel Selten
e1ab3cf480 SCons updates
* Game engine can now be build on Linux. By default this feature is disabled.
  The reason is that you need to have a precompiled version of the ode library
  for your gcc version.
  To enable ode support you need to do the following:
  - compile ode.
  - set BUILD_GAMEENGINE = 'true' in the config.opts file.
  - set USE_PHYSICS='ode' in the config.opts file.
  - set the ODE_INCLUDE and ODE_LIBPATH to valid locations.

* Linking order has changed for the game engine
  There are cyclic dependencies between libraries. On linux we have to do some
  duplicate linking. I looked at the order of linking in source/Makefile, and
  did some clean up.
2004-02-22 19:01:12 +00:00
Michel Selten
2cc629eaa7 SCons updates
* Internationalization support is now available on Linux. By default this
  feature is disabled. The reason is that you need to have a precompiled
  version of the ftgl library for your gcc version.
  To enable ftgl support you need to do the following:
  - compile ftgl.
  - set USE_INTERNATIONAL='true' in the config.opts file
  - set the FTGL_INCLUDE and FTGL_LIBPATH to valid locations.
  Freetype2 is detected automatically on your system by using pkg-config.

  There was a problem with linking libraries. I took a look at how the
  Makefile environment did it, and copied the mechanism. Now we're linking:
  freetype, blender_ftf, ftgl and freetype. (Yes, 2x freetype).

* Minor variable cleanup.
  sdl flags are now collected in one Environment() in stead of two. Adapted
  all relevant platform variables accordingly.
2004-02-22 13:39:00 +00:00
Nathan Letwory
e579793652 - [win32] updated SConscripts to use new configuration method (config.opts).
NOTE: ODE support needs still to be reviewed, so disable gameengine for now.
2004-02-21 19:00:31 +00:00
Chris Want
fbb830db4b Todd Koeckeritz' patch to sort the vertex groups menu and adapted to
sort the bone parenting menu. Only really works if your menu is near
the top of the screen ...
2004-02-21 17:45:19 +00:00
Chris Want
8410cdd71c Todd Koeckeritz' patch to fix inconsistent placement in multicolumn
menu's.
2004-02-21 16:50:09 +00:00
Chris Want
c05901d98a Making the scons build create a mips3 binary. 2004-02-21 16:36:49 +00:00
Michel Selten
9e238d385d SCons updates
* Almost all library settings are now available in the config.opts user option
  file.
* All platform variables had to be updated to make this possible. Things are
  much clearer now, but I only was able to test the changes on Linux. I've
  tried to update all other platform variables, but things are most likely to
  be broken. Please contact me how to resolve the issues.


Note: Before running scons, remove your existing config.opts file to get all
      new options.
2004-02-21 15:13:15 +00:00
Chris Want
05bff7f938 Jonathan Thambidurai's patch for fixing the baking of NLA.
I added to this patch some code for keying size too ... please test.

This probably fixes bug #602, but I can't say for sure: Guignot's
poor ol' example blend no longer opens in blender (not since 2.26).

Release notes remark: Bug causing inconsistent baking of actions fixed.
2004-02-20 04:57:07 +00:00
Nathan Letwory
32fb5478a8 * [WIN32] Make SCons build with debuggable info when BUILD_BINARY set to 'debug' in config.opts 2004-02-18 14:35:36 +00:00
Chris Want
6000b811bc A little improvement by Joilnen Leite: makes the pixel RGBA values visible
(even with a white background) when left clicking in the render window.
2004-02-16 15:29:10 +00:00
Michel Selten
9330e553e8 SCons updates
* libraries are now generated in [BUILD_DIR]/lib
* passed the user_options to all libraries now.
  This means I could remove a couple of Export/Import lines.
* Changed the order in source/blender/src/SConscript and
  source/gameengine/SConscript.
  All libraries are now sorted alphabetically. This has no impact on the build
  process.
2004-02-15 19:25:32 +00:00
Chris Want
2fbf2b3775 Moved a line to make armarures recalculate better after framechanged
scriptlinks are executed.

This fixes bug #997.

Note: this fix does not need to be mentioned in release notes (problem
was caused by the recent armature speedups).
2004-02-15 17:50:56 +00:00
Martin Poirier
0ad8b66046 Text Window keyboard event cleaning.
There was two switch where only one was needed (which caused an event to register in two different actions under some conditions). I merged both of them, which not only made the code a lot clearer but also safer.
Fixed the Home and End case which didn't update the display correctly.

I've tested it for some time, so I'm pretty sure nothing is broken.
2004-02-15 02:03:33 +00:00
Simon Clitherow
6101f0d03d Learning to follow my own advice (I had set the dependancies to csg
already!)
2004-02-11 18:55:31 +00:00
Simon Clitherow
c205e7d1c7 - Added csg.dsp to the main intern workspace (intern.dsw)
- Fixed up the paths for "/lib/..." in csg.dsp

Quick note: Currently intern still builds the old lib (bsplib).

To compile the new lib (when everything is ready for it), uncheck
bsplib from the dependancies in build_install_all and replace with csg.
Will eventually drop bsplib completely - but not just yet :)
2004-02-11 18:36:48 +00:00
Francis Laurence
12966aed05 Ok here is the new CSG library that implements boolean operations for blender through the 'C' api in csg/extern/CSG_Interface.h.
As mentioned earlier on bf-commiters mailing list, there is no current *nix make file only an msvc60 project file. I only have a linux box at work and to be honest I want to avoid doing any commits from there! So if some kind soul could sort it out that would be great.

Dependencies:
This code only depends on other stuff in the intern library, moto and memutils the CSG lib needs to have their include paths to compile. Other than that its completely self contained.

Acknowledgements:
To speed up the polygon-polygon intersection queries I've used some code (under the GPL) from freesolid2.0 this clearly marked in the appropriate files and Gino van den Bergen still owns the copyright to that material. The algorithm I used in based on one from Paul Nettle described on flipcode (www.flipcode.com) and I think his work was a derivative of the "Laidlaw algorithm"

There is also some basic 'ear clipping' triangulation code that unfortunately remains unatributable. I have no right to publish this code under the GPL nor BPL for that matter as I have no idea who the original authors are. Its just one of those random bits of internet code.

Warning!
The stuff used a lot of C++ template features, which on one hand makes it very generic but on the other means that some work will need to be done to get working with other compilters. The msvc60 compiler is not very compliant to the C++ standards with respect to templates so its very difficult to say if this code will compile out of the box on other platforms.

I still haven't committed modifications to booleanops.c in the blender code as without a working library to link to it will break the current build. This needs to be done first!

Improvements
This code is much simpler than the previous bsp implementation see intern/bsp and this old code should be deprectated/removed. However, whilst this implementation produces less triangles in the output than the bps algo, its still not an optimal solution. This is just hard to do and beyond my humble skills.

License:
Just to make it clear this stuff for the reasons mentioned above and for the fact I'm to mean to give the copyright away to BF is licensed under the GPL only.

Cheers,
Laurence.
2004-02-10 20:16:44 +00:00
Daniel Dunbar
7c7ede091d - bug fix, ctrl-x didn't clear file name in window title 2004-02-08 13:26:52 +00:00
Michel Selten
95dc219ff8 SCons updates
* All output is now generated in a seperate directory. By default this is
  ../build/
  Currently all .lib / .a files are still build in lib/
  So, I guess I need to update all SConscript files to build the lib now also
  in the build_dir. TODO
* User configurable options have been added.
  When running SCons for the first time, a new config.opts file is generated.
  The defaults are taken from each section currently in SConstruct.
  Currently implemented options:
  - VERSION             // Blender version. not used at the moment
  - BUILD_BINARY        // release or debug
  - BUILD_DIR           // target directory to build intermediate files
  - USE_INTERNATIONAL   // true or false
  - BUILD_GAMEENGINE    // true or false
  - USE_PHYSICS         // ode or solid
  - USE_OPENAL          // true or false
  - USE_FMOD            // true or false
  - USE_QUICKTIME       // true or false

  Note that all options are strings, so quotes are necessary (')

  There's currently some duplicate code in the SConstruct and SConscript
  files, but this currently works and cleanup can be done in small steps
  afterwards.

* Disabled international support on Linux by default for now.
  There is something wrong with this currently. I'll fix it in the near
  future.
2004-02-07 20:44:43 +00:00
Kent Mein
b381169dd9 Kino's tooltip fix for envmap. (fixes a typo)
Kent
2004-02-06 15:20:45 +00:00
Rob Haarsma
7510d2a285 Added the DELKEY for editing a Text object. 2004-02-06 13:23:05 +00:00
Kent Mein
f9c1dcc802 Christian Pless's patch it just updates the toolbox shorcuts for
Rotation and Scaling so they have R and S instead of all 3 having G as
the shortcut.

(Its in the transform/Rotate on Axis and transform/Scale on Axis toolbox items.)

Kent
2004-02-05 17:26:37 +00:00
Chris Want
6aab05fea2 This one is a bit strange to describe so I'll just mention the symptom:
bones in one armature that were constrained to bones in another
armature, which in turn were constrained to a non-armature object
weren't getting updated correctly.

This fixes bf-blender bug #955 (thanks Appolux).

Note: This commit need not be logged in future release notes (was
caused by recent armature speed ups).
2004-02-05 15:08:26 +00:00
Kent Mein
2cb51d0b73 Added two small bug fixes LukeW found.
HoR, HoG, HoB tooltips talked about Zenith instead of Horizon.
added (F6) to the texture tooltip. He also mentioned F5 but
the F5 is already there its just context sensitive and the
sub menus do not have the shortcut.

Kent
2004-02-03 16:52:08 +00:00
Simon Clitherow
c968c1b1ff - Added missing break statements. Panning and zooming from the menus
now works correctly.
2004-02-01 15:44:37 +00:00
Simon Clitherow
ea82f6e461 - added new translation files pt_br & zh_cn, and the new python scripts
to win installer script.

(Note to self: see if there is a way to automate this with some sed or
awk magic...)
2004-02-01 15:42:14 +00:00
Matt Ebb
23a11c714e * Got rid of the dual URLs on the splash screen 2004-02-01 11:39:18 +00:00
Ton Roosendaal
f5e85cc538 - version upped to 2.32
(warn: still waiting for splash!)
2004-01-31 13:00:31 +00:00
Alfredo de Greef
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
Ton Roosendaal
a1c7a5b043 - removed error() call from initrender, for when no backbuf found.
this function needs the UI active, doesnt work with renderwindow.
2004-01-30 18:07:26 +00:00
Martin Poirier
675f25000c License update for uv_export 2004-01-30 11:56:32 +00:00
Willian Padovani Germano
8fbed941bc - Last minute script addition (blame / thank Theeth :) -- Theeth's UV Face export script.
- tiny harmless change in module Blender.Material's *doc*.

Aphex: tested your fix for windows (thank you -- and Bill Baxter for reporting):
  It doesn't break anything here (linux).  So probably no need for #ifdef's.
2004-01-30 04:27:28 +00:00
Martin Poirier
3a8ae6fa67 Lamp Dist limit brought back up to 5000 like it was before. (Hoping it doesn't cause any problems) 2004-01-29 23:34:20 +00:00