16160f5fcc
GLSL shader part
...
bump-mapping update to properly support
multiple textures in different bump-spaces.
2011-02-07 21:57:40 +00:00
1b28e8c162
moved texture_space scaling factor from glsl to C.
2011-01-30 16:57:28 +00:00
d5da54e1e6
bugfix #25867
...
fix for objectspace bumpmapping
2011-01-30 16:24:23 +00:00
89c617a116
remove nan-makefiles
2011-01-30 15:29:22 +00:00
9400f4309a
Fix for object-space bumpmapping in GLSL. Fix provided
...
by Morten Mikkelsen in IRC.
2011-01-30 14:43:24 +00:00
bcacaa3901
Fixes for GLSL bump code; it was using calls not supported for
...
older GLSL versions (< 1.3)
Thanks Matthew M:
- adding mat3 from ma4 function
- removal of transpose()
And I've hacked in myself a textureSize() replacement, the image
size gets passed on to function now.
2011-01-29 16:13:15 +00:00
50d434f2f4
matching 3Dview GLSL shaders for the new bumpmapping methods
2011-01-29 12:01:11 +00:00
eac31a2ece
remove unused vars & avoid some clang warnings.
2011-01-14 21:06:28 +00:00
8227b3d463
remove/comment unused vars
...
also removed unnecessary NULL checks (where the pointer was used later without checking).
2011-01-13 04:53:55 +00:00
c35db522da
variable 'pool' could be accessed as NULL, globalPool was allocated but not assigned before use.
...
also remove unused vars.
2011-01-08 10:13:59 +00:00
89c9aaaa25
remove references to BKE_utildefines where its not needed.
...
- move GS() define into DNA_ID.h
- add BLI_utildefines as an automatic include with makesrna generated files.
2011-01-07 19:18:31 +00:00
8f21a43535
split BKE_utildefines.h, now it only has blender specific defines like GS() MAKE_ID, FILE_MAXDIR, moved the generic defines to BLI_utildefines.h.
...
no functional changes.
2011-01-07 18:36:47 +00:00
b067a85aa3
Todo item:
...
Object color option now is incorporated in preview render, and
in display in 3D window.
Note that Object-color is "modulating" the render result, it just
multiplies... which is very limited for practical use. This was
added for Apricot game project. The original meaning however was
to replace diffuse only... so specular and light work still correct.
ALso made header for properties editor start on top, to reflect
default (report in tracker).
2011-01-05 15:10:35 +00:00
5e382eb8e5
rename blenderlib to blender_add_lib
2010-12-22 23:09:30 +00:00
902b239aa8
no functional changes: SETLOOPER macro assumed a scene was defined called 'sce' used to loop over, now make this an argument, helps to make it clear what's going on.
2010-12-17 15:37:59 +00:00
afacd18498
use lowercase for cmake builtin names and macros, remove contents in else() and endif() which is no longer needed.
2010-12-08 08:43:06 +00:00
263830f000
Enabled GCC -Wwrite-strings warning for CMake and replaced many 'char's for 'const char's,.
...
Only one functional change where Transform orientations passed "" to BIF_createTransformOrientation() which could then have the value written into.
2010-12-03 17:05:21 +00:00
cd97253502
- added GCC warning -Wstrict-prototypes
...
- fixed bug in paste material, exposed by stricter warnings.
- removed/renamed various shadowed vars.
- removed BGE lamp.colour, only allow lamp.color attribute.
2010-12-03 12:30:59 +00:00
e8397e6193
include headers in cmake source, added a script to check for consistency, reporting missing headers & C files.
...
this is important so IDE's using CMake integration always get blender headers. - QtCreator & MSVC for eg, probably others too.
2010-11-29 04:35:56 +00:00
9d3a17922c
Detect Gallium driver. Extend NPoT workaround to opensource drivers.
2010-11-27 19:59:00 +00:00
d3ec9753c4
freeing all free GPU buffers every frame could be a performance issue and is not necessary
2010-11-26 11:20:03 +00:00
b0df3a29f2
ATI X1xxx gfx cards (R500 chipset) lack full support for npot textures although they report the GLEW_ARB_texture_non_power_of_two extension.
2010-11-25 22:15:04 +00:00
b9b9ac75bc
fix for https://projects.blender.org/tracker/index.php?func=detail&aid=24442&group_id=9&atid=498
...
[#24442 ] GLSL + VBOs
2010-11-25 17:36:03 +00:00
32eba0898b
Reverting revision 33120, which added vram monitoring. The method used had some problems (especially in the freeing function). I will research an alternative solution and submit it to the tracker.
2010-11-24 06:27:07 +00:00
cd2ab75b73
- include pthreads for win32 globally (as with opengl).
...
- MSVC CFLAGS were being set by only checking WIN32, (breaking non-msvc win32 builds)
2010-11-21 09:10:50 +00:00
aef3e99eab
Bugfix #22052
...
OpenGL viewport render gave squeezed results in cases.
Reason: some graphics cards only give offscreen buffers in multiples
of 256 or 512 (my case).
Current fix uses the actual size returned by graphics card, which
is also safe for too large renders.
More elaborate cropping or matching is for another time.
(Added printf for feedback on this, might disappear)
2010-11-18 19:11:05 +00:00
1bb98b4194
Adding monitoring for (approximate) VRAM used by textures. The information is currently only used in the profiling data of the BGE.
...
Here is a image of it in action:
http://www.pasteall.org/pic/show.php?id=6351
What it monitors:
* VRAM used by textures created via bf_gpu and BL_Textures
What it does not monitor:
* VRAM used by the Blender ui
* VRAM used by 2d filters
* VRAM allocated by the user via KX_Scene.pre_draw and KX_Scene.pre_draw
2010-11-17 05:28:25 +00:00
4661fb03a9
bugfix [ #24704 ] UV editor: [x] modified does not update on change of modifiers
...
- VBO UV Edge display wasn't allocating a large enough array for drawing.
- VBO UV Edge drawing was using an edge flag with faces.
- notifier for modifiers updating the UV window.
2010-11-15 08:03:20 +00:00
369a5cc29e
fix for compiling with the c90 standard, support for non-static variable initializers is a c99 feature.
2010-11-02 13:12:30 +00:00
3367ef8b65
initialize structs to zero rather then using memset().
2010-10-31 15:39:37 +00:00
2777ba74b0
remove include paths which dont exist, fix for doc upload script which was getting the blender version twice and not working sometimes.
2010-10-27 13:52:12 +00:00
c6976e7351
use explicit file paths for CMake rather then globing, This is recommended by cmake devs.
...
globbing vs explicit is discussed here.
http://www.cmake.org/pipermail/cmake/2008-December/025694.html
Practical implications are:
- developers need to keep CMakeLists.txt files up to date.
- Users wont get strange linking errors if they build after a file is added, since CMake detects CMakeLists.txt is modified and automatically reconfigure.
2010-10-23 04:05:55 +00:00
97784a7186
fix for warnings & detecting opensource nouveau drivers.
2010-10-22 01:06:21 +00:00
e51bb1fb0e
bugfix/workaround for ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion `boi->space_accounted' failed. [ #656100 ]
...
reported on launchpad.
calling glClear(GL_COLOR_BUFFER_BIT); was crashing blender,
since this is only used to blank the window before its drawn, disable for opensource ATI drivers.
2010-10-22 00:29:56 +00:00
db09ca106d
remove/tag unused args for view*.c, gpu*.c & image*.c
2010-10-15 12:29:02 +00:00
8a4fe62843
misc fixes found with clang's static checker.
2010-10-07 10:04:07 +00:00
a7258c9651
- fix for crash when drawing a subsurf after a modifier that lost original indices (bevel/screw/decimate)
...
- fix for own mistake used madd_v3_v3fl rather then mul_v3_v3fl, r32241.
2010-10-05 11:16:07 +00:00
db1b74654b
- spec hardness was missing redraw update
...
- missed rna rename in image ui
- use BLI_math functions in gpu_draw.c (no functional changes)
2010-10-02 06:34:04 +00:00
677b9a194f
need to set GL_SHININESS to the default value for weight painting.
2010-09-28 11:08:45 +00:00
dbd5524970
show material hardness in solid shaded mode
2010-09-27 07:01:08 +00:00
62c7786cd9
use a struct for fixed materials rather then float[2][4], easier to follow (no functional change)
2010-09-27 06:49:27 +00:00
dea59cc5eb
warning fixes and minor cmake changes.
2010-09-18 03:55:56 +00:00
82432d0d99
merge from trunk at r31523
2010-09-07 05:47:34 +00:00
bb7339a7ae
merge with trunk at r31523
2010-09-04 05:31:25 +00:00
a992fec4e7
bugfix
...
- image filepath in the image view would only be set when first loading a frame.
- check to free animated image buffers on opengl render was comparing against the wrong value.
2010-08-25 02:32:02 +00:00
9b685a4b78
Fix quasy systematic crash at Blender exit: globalPool was released twice
2010-08-23 21:31:57 +00:00
d1759639dc
- remove unused includes IMB_*, BIF_* & MEM_*
...
- remove MEM_guardedalloc.h from header files (include directly)
2010-08-16 05:46:10 +00:00
60a8fc3759
Fix #23303 : glsl color correction not working correct for image textures.
2010-08-15 09:34:18 +00:00
95aa8cfa4a
Update address in license block.
2010-08-10 21:22:26 +00:00
9db1f87531
remove unused includes
2010-08-08 13:11:13 +00:00