Commit Graph

176 Commits

Author SHA1 Message Date
Andrea Weikert
df2ed9fa3b == MSVC 9 projectfiles ==
small update
2010-04-29 18:46:43 +00:00
Andrea Weikert
748ad6749e MSVC 9 projectfiles
* update: SCA_PythonKeyboard.c and SCA_PythonMouse.c
2010-04-18 17:09:35 +00:00
Andrea Weikert
49fa7d02a7 MSVC 9 projectfiles update
* blenlib/math_geom_inline.c
* also fix compile error with MSVC (snprintf not defined)
2010-04-15 17:44:48 +00:00
Andrea Weikert
5aed24c84e MSVC 9 projectfiles
* forgot to add modifiers.vcproj yesterday - sorry!
2010-04-14 16:59:33 +00:00
Andrea Weikert
2c0287660c MSVC projectfiles update
* big modifier refactor
* added include path to pthreads for BL_gpu.vcproj and blender.vcproj - hopefully only temporarily. Is needed because BLI_threads.h includes <pthreads.h> header!!!
2010-04-13 19:39:28 +00:00
Andrea Weikert
3c6a0274b9 cleanup
* removed code that could lead to Blender writing in the Windows directory - is very old cruft and doesn't work on recent versions of Windows anymore and rightly so :)
2010-03-31 18:02:56 +00:00
Andrea Weikert
d7b2f685f0 MSVC 9 projectfiles
* maintenance - removed BLI_dynamiclist.c
2010-03-31 17:46:17 +00:00
Andrea Weikert
0decc7def5 MSVC 9 projectfiles
Updated RNA project to generate the files in the build directory rather than inside the source tree. This removes the need to manually deleting those files when building from the same tree with scons or cmake.
2010-03-27 10:48:49 +00:00
Andrea Weikert
0c1828b229 MSVC 9 projectfiles
- small update
2010-03-24 19:04:17 +00:00
Andrea Weikert
411cc8e5b6 fix [#21666] selecting images in file browser before thumbnail is created deselects them when the thumb is created
- was overwriting the selection flag
- also fixed mismatching prototype (own eek!)

Also added small update of MSVC 9 projectfiles (blendkernel/image_gen.c)
2010-03-23 18:46:21 +00:00
Andrea Weikert
c0b3ab6ceb filebrowser:
* move own thread handling for thumbnails to WM_jobs 
* cleanup of thumbnail creation code
* added function to kill the job, which actually allows thread to terminate gracefully

vc9 projectfiles:
* fixed some missing includes for release target!
2010-03-10 19:30:20 +00:00
Andrea Weikert
187b3bc1eb MSVC projectfiles_vc9:
* maintenance
2010-03-08 18:36:17 +00:00
Andrea Weikert
bdd17df0bc MSVC projectfiles_vc9:
* added file blf.c in BPY_python
* added headers from generic subdir to project
2010-03-01 18:34:33 +00:00
Andrea Weikert
9789e08942 MSVC projectfiles_vc9 maintenance
* added ghost dependency to blenlib
* new file bpy_rna_callback.c in blender/python
2010-02-28 09:46:21 +00:00
Benoit Bolsee
37b9c9fe4d VideoTexture: improvements to image data access API.
- Use BGL buffer instead of string for image data.
- Add buffer interface to image source.
- Allow customization of pixel format.
- Add valid property to check if the image data is available.

The image property of all Image source objects will now
return a BGL 'buffer' object. Previously it was returning
a string, which was not working at all with Python 3.1.
The BGL buffer type allows sequence access to bytes and
is directly usable in BGL OpenGL wrapper functions.
The buffer is formated as a 1 dimensional array of bytes
with 4 bytes per pixel in RGBA order.

BGL buffers will also be accepted in the ImageBuff load()
and plot() functions.

It is possible to customize the pixel format by using
the VideoTexture.imageToArray(image, mode) function:
the first argument is a Image source object, the second
optional argument is a format string using the R, G, B,
A, 0 and 1 characters. For example "BGR" means that each
pixel will be 3 bytes, corresponding to the Blue, Green
and Red channel in that order. Use 0 for a fixed hex 00
value, 1 for hex FF. The default mode is "RGBA".

All Image source objects now support the buffer interface
which allows to create memoryview objects for direct access
to the image internal buffer without memory copy. The buffer
format is one dimensional array of bytes with 4 bytes per
pixel in RGBA order. The buffer is writable, which allows
custom modifications of the image data.

v = memoryview(source)

A bug in the Python 3.1 buffer API will cause a crash if
the memoryview object cannot be created. Therefore, you
must always check first that an image data is available
before creating a memoryview object. Use the new valid
attribute for that:

if source.valid:
    v = memoryview(source)
    ...	

Note: the BGL buffer object itself does not yet support
the buffer interface.

Note: the valid attribute makes sense only if you use
image source in conjunction with texture object like this:

# refresh texture but keep image data in memory
texture.refresh(False)
if texture.source.valid:
    v = memoryview(texture.source)
    # process image
    ...
    # invalidate image for next texture refresh
    texture.source.refresh()

Limitation: While memoryview objects exist, the image cannot be
resized. Resizing occurs with ImageViewport objects when the
viewport size is changed or with ImageFFmpeg when a new image
is reloaded for example. Any attempt to resize will cause a
runtime error. Delete the memoryview objects is you want to
resize an image source object.
2010-02-21 22:20:00 +00:00
Benoit Bolsee
115fc34dd3 Update MSVC project files. 2010-02-21 22:15:25 +00:00
Benoit Bolsee
ce26d457ba Support GPU image auto_refresh also for movie (was for sequence only). 2010-02-13 21:24:13 +00:00
Lukas Steiblys
51cc200fa3 another vc9 projectfile fix 2010-02-11 22:28:51 +00:00
Lukas Steiblys
88226d02e9 updated VC9 project files 2010-02-11 22:05:54 +00:00
Andrea Weikert
68bb7e38ab MSVC projectfiles vc9
* fix for audio: added missing defines for WITH_OPENAL, WITH_JACK, WITH_SDL
* fixed linking for OpenAl, was still linking OpenAl32.dll instead of wrap_oal.dll
Should now work same as other buildsystems. 
Quick test showed Yay! Sound in sequencer back :)
2010-02-09 20:10:55 +00:00
Benoit Bolsee
81fd89c8e0 BGE: VideoTexture was not included, missing WITH_FFMEG defined. Fixed in all building system. 2010-02-07 14:12:39 +00:00
Benoit Bolsee
b6c643c19f Update MSVC project files. 2010-02-03 21:14:50 +00:00
Arystanbek Dyussenov
8597925736 COLLADA branch: updated vc9 project files and w32 scons config. 2010-01-30 18:03:18 +00:00
Benoit Bolsee
c070841acd Update MSVC project files 2010-01-27 13:39:56 +00:00
Benoit Bolsee
217c2638cc Update MSVC project files 2010-01-26 16:31:00 +00:00
Benoit Bolsee
7389bd53f9 Update MSVC project files 2010-01-24 13:03:49 +00:00
Andrea Weikert
870df309c5 MSVC 9 projectfiles
* update for animviz.c
* updated glew dependency for ghost.
2010-01-17 14:47:14 +00:00
Andrea Weikert
89033a6819 MSVC 9 projectfiles
* update for audaspace
* added object_bake.c
2010-01-05 19:22:48 +00:00
Benoit Bolsee
c033bf8957 MSVC project files 2009-12-22 19:50:20 +00:00
Andrea Weikert
ca16488e81 MSVC 9 compile fixes and cleanups
* added renamed files in revision 25337
* renamed BLI_util.h -> BLI_path_util.h for consistency
* cleanup of #includes: removed BLI_blenlib.h in favour of direct includes of the needed headerfiles in a few places.
* removed debug print in sequencer.c
* added missing include in blenkernel/blender.c -> bad dependency, needs to be fixed still
2009-12-13 17:46:30 +00:00
Andrea Weikert
86028a6631 Sequencer: Transform Strip updates (Durian wish)
Removed the Start/End Settings and the effect_fader from the sequencer transform strip. 
The transform strip can now only be animated directly by keying the Scale X, Scale Y, Translate X, Translate Y and Rotation values.

Caveat:
The uniform scale re-uses the Scale X value, so when changing the animation on Scale X in the non-uniform scaling case, the uniform scaling will be affected too. This was done to not break files for Durian. 

Note:
As much as I would have liked to clean up the TransformVars, it caused crashes of earlier versions of blender when opening the file.
The rna identifiers were also kept as to not break any existing animation on those keys.
2009-12-11 22:51:53 +00:00
Andrea Weikert
03634d47b0 MSVC projectfiles
* update for sculpt merge

NOTE: BLI_blenlib now uses functions in BL_gpu - I added the necessary include path to make it compile, but I'm not sure if this dependency shouldn't be avoided.
2009-12-11 18:02:42 +00:00
Andrea Weikert
ce65569708 MSVC 9 projectfiles
* added missing header BKE_sequence.h
* moved source folder back to correct place (was inside headers folder)
2009-12-10 00:20:19 +00:00
Andrea Weikert
177e27ea4b MSVC 9 projectfiles
* quick updates for bpy_driver.c
2009-12-09 18:38:55 +00:00
Andrea Weikert
d653b0c961 Few small things:
1. MSVC 9 projectfiles update (graph_header.c, action_header.c and nla_header.c removed)

2. Fix for opening the filebrowser when saving file for the first time (untitled.blend) from file menu

3. Add CROSS effect sequence type back to menu. (Durian fix)
Note: Removed SEQ_EFFECT from rna, since this no actual sequence type, but rather used to check for the effect bit.
2009-12-08 00:57:14 +00:00
Benoit Bolsee
1dcca75e04 Update MSVC9 project files 2009-12-04 10:45:23 +00:00
Benoit Bolsee
6bfb3cf6ef Update MSVC9 project files 2009-12-04 10:37:24 +00:00
Benoit Bolsee
b6ea979690 MSVC project files: enable Blender Game renderer. 2009-11-26 20:44:55 +00:00
Benoit Bolsee
5b722b1e87 BGE: replace mesh works for Soft Body (including reinstantiation of physics soft body mesh).
Even a static mesh can be used as replacement: the mesh
will be instantiated with the soft body settings of the
object. The position and orientation of the soft body
is preserved after the replacement.

Known limitation: the velocity of the soft body is reset
aftet the replacement. This is because soft body don't
have a well defined velocity.
2009-11-24 22:44:29 +00:00
Benoit Bolsee
ab6b1a363f Fix MSVC project files for blenderplayer: the player compiles and runs properly in debug and release mode. Still a problem with scons: the player compiles but crashes on startup. 2009-11-22 21:55:59 +00:00
Andrea Weikert
8fdaa263c0 MSVC 9 projectfiles
* Added GLEW_STATIC where necessary to make Blender compile again
* First attempt at compiling blenderplayer again - compiles, but doesn't link yet 
* removed deprecated SND_ functions from blenderplayer
2009-11-22 13:15:36 +00:00
Andrea Weikert
8522b4ede0 MSVC 9 projectfiles
* re-enabled collada now with hopefully correct debug libs
* python API IDProps added
2009-11-19 20:58:09 +00:00
Benoit Bolsee
fb4e3a13fc Update MSVC project files: disable COLLADA in debug build => runtime crash. 2009-11-15 23:46:13 +00:00
Benoit Bolsee
2646558079 Update MSVC project files 2009-11-13 13:06:26 +00:00
Andrea Weikert
12ee852c11 MSVC 9 projectfiles
* small maintenance: rna_fcurve_api.c added
2009-11-08 10:07:37 +00:00
Benoit Bolsee
d315af74f0 Update MSVC project files for openCollada. 2009-11-05 21:34:47 +00:00
Benoit Bolsee
e4617d8a5f MSVC project files update for collada. It won't compile yet, waiting for lib/windows/collada to be updated. 2009-11-01 17:12:09 +00:00
Andrea Weikert
059d4f181c file browser
* the code for BLI_is_dir can be shared on Windows, no need of extra implementation - error was usage of BLI_exists instead of BLI_exist! 
* left BLI_is_dir in since it's nicer to read and understand
* also removed deprecated outliner_header from MSVC projectfiles.
2009-10-19 19:26:28 +00:00
Benoit Bolsee
94d81336f1 Update MSVC project files 2009-10-11 21:13:32 +00:00
Andrea Weikert
ab287786b1 2.5 MSVC projectfiles_vc9
eek, forgot to add file in last commit
2009-10-08 12:13:23 +00:00