Commit Graph

42 Commits

Author SHA1 Message Date
Jean-Luc Peurière
aa6484db87 cleaning commit
shut the warnings GCC was producing for Os X
2004-11-28 12:14:27 +00:00
Willian Padovani Germano
fa9135385a BPython:
- 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-10-20 05:51:24 +00:00
Jean-Luc Peurière
4b495e5e7b OS X fix:
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-08-01 22:28:56 +00:00
Jean-Luc Peurière
f3beeec296 new window behaviour for macos X computers :
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-27 20:40:42 +00:00
Willian Padovani Germano
c04bec851c creator.c wasn't updated in my last commit, here it is (the change reverts 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-21 03:19:52 +00:00
Willian Padovani Germano
97bba404fb Demo mode and BPython:
- 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-16 03:08:43 +00:00
Willian Padovani Germano
9282827720 New scripts:
- 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-07-03 05:17:04 +00:00
Ton Roosendaal
db8cdac8d1 Forgot to remove test prints from creator.c
Also added note about removing audio init in comment.
2004-04-21 14:15:37 +00:00
Ton Roosendaal
9722b25637 Fix for slow starting of Blender.
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-04-21 13:38:54 +00:00
Willian Padovani Germano
fa0196b8f9 BPython:
- 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-31 04:18:39 +00:00
Willian Padovani Germano
0d9d16e6e9 Scripts in menus:
-- 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-14 21:36:10 +00:00
Alejandro Conty Estevez
eff07b8329 Basic initial yafray integration by Eeshlo.
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.
2004-01-04 22:10:36 +00:00
Kent Mein
e9a6c2d996 Dan Sinclair's patch to add --version or -v to blender's command line options.
Kent
2003-12-24 16:44:24 +00:00
Ton Roosendaal
595e0e51fd - forgot to do this... belongs to commit with text:
bug fix: in background render, the default builtin font was not
  activated for rendering when other fonts were packed too.
2003-11-25 18:14:00 +00:00
Michel Selten
90541541c3 Added all necessary BPY_extern.h include files to the .c files.
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-23 14:28:46 +00:00
Chris Want
e7d3e24a0e Got rid of many #include "BPY_extern.h"
Homework from Michel: do grep BPY source/blender/src/*
and see if there is anything that needs fixing.
2003-11-22 20:21:59 +00:00
Ton Roosendaal
952cd8260e - adapted startsize for osx version to match powerbook (768 high)
- add patch in prevsize routine (editscreen.c) to subtract apple
  top header, this allows 'fullscreen' with windowbar behind topbar.
2003-10-10 13:36:38 +00:00
Ton Roosendaal
6f34249924 - increased default windowsize for OSX a bit, to match better a good
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-09 12:20:14 +00:00
Hans Lambermont
1bbf616b59 Finally add spike's FreeBSD suggestions. Tnxto Chris for forwarding. 2003-10-05 19:37:16 +00:00
Rob Haarsma
99efb0cc3c removed native quicktime init/exit calls from main blender code. 2003-09-18 11:41:50 +00:00
Jacques Guignot
dd2551661a removed an useful #include which caused a compilation error 2003-09-10 19:47:05 +00:00
Rob Haarsma
422f4faa1b moved Quicktime init function from creator.c 2003-09-09 21:26:34 +00:00
Ton Roosendaal
3d691c77cf - Blender in background render mode (blender -b) now reacts to CTRL+C
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-19 20:14:07 +00:00
Kent Mein
77213f7da6 removed extra tabs in the help function.
It was
function()
{
						blah
}

changed it to just
function()
{
	blah
}

Kent
2003-07-03 13:53:11 +00:00
Willian Padovani Germano
8155033930 - Added user defined python dir to Python's sys.path:
Had to add a function call to creator.c, explained in a note there (look
    for pythondir in the file)
2003-06-28 10:35:14 +00:00
Casey Corn
17ca22de62 Rolled back comments. According to new guidelines, no .c files
should contain doxygen comments.
2003-06-18 03:48:55 +00:00
Simon Clitherow
f40d9f57ee Registering .blend files now works for Windows -- hopefully!
You will need to re-register the blend files (blender.exe -R)
for the fix to come into action.
2003-06-04 21:22:57 +00:00
Casey Corn
f882846641 Added docs/formatted existing docs for doxygen. 2003-05-26 19:20:56 +00:00
Casey Corn
0773536829 First documentation commit :) 2003-05-23 00:38:54 +00:00
Stefan Gartner
70dab87ac3 revert to previous version, as starting blender maximized on os x doesn't
seem to be ready for prime time yet
2003-05-13 14:52:51 +00:00
Stefan Gartner
efaeeb6a87 maximize blender window on startup on os x 2003-05-13 12:14:52 +00:00
Rob Haarsma
cf6def23e3 forgot to commit this one for win/fullscreen 2003-05-08 20:53:38 +00:00
Rob Haarsma
9e79a6222f added fullscreen command line switch on Win32 -W
written by Florian Eggenberger.
2003-05-05 10:51:52 +00:00
Stefan Gartner
723b84c79c fun with quicktime:
#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-05-02 13:36:56 +00:00
Ton Roosendaal
9174db096b LAST of the c code comment translations... hooray!
Might be possible I mised an .h or so, just notify me in that case.
2003-04-30 13:22:26 +00:00
Rob Haarsma
706ccc0401 Added Quicktime support for OSX and Windows.
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-04-28 02:15:46 +00:00
Daniel Dunbar
702880df55 Update things to use blender_test_break() vs MISC_test_break() and
remove use of blendertimer.h
2003-03-24 16:37:08 +00:00
Daniel Dunbar
2aad6b3321 Kill 2 undefined function warnings. 2003-03-24 15:05:51 +00:00
Chris Want
e469083a33 The other part of sgefant's fullscreen by default patch: turning
off fullscreen using the -w flag.
2003-01-29 05:37:24 +00:00
Kent Mein
cd4a60f536 sgefants patch to remove the License Key stuff.
(I noticed its not completely gone yet from the blender/source dir)
But its a big step in the right direction if it doesn't enable
all of the functionatlity already...

(Using cscope for LICENSE_KEY_VALID still turns up some stuff)

Kent
--
mein@cs.umn.edu
2002-12-06 19:48:37 +00:00
Kent Mein
d0e346d544 updated .c files to include:
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

Just need to finish cpp files now :)

Kent
--
mein@cs.umn.edu
2002-11-25 12:02:15 +00:00
Hans Lambermont
12315f4d0e Initial revision 2002-10-12 11:37:38 +00:00