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
2015-03-11Cleanup: styleCampbell Barton
2015-03-10Fix memory leak when using two bump maps on the same materialAntony Riakiotakis
2015-03-09Attempt to fix T43919, avoid using GPU_framebuffer_slots_bind just inAntony Riakiotakis
case a system does not support drawing to many framebuffers.
2015-03-03Another stability commit for legacy users - don't crash when togglingAntony Riakiotakis
dyntopo just notify user that their system doesn't support it.
2015-03-02cleanup: float/double promotion, redundant castsCampbell Barton
2015-02-27Get rid of gluScaleImage in our game engine as well.Antony Riakiotakis
2015-02-27Make some adjustments to the units for viewport camera dof.Antony Riakiotakis
This is still not so correct, to make it work we really have to do a blurring pass based on the real coc (currently we are just blending 3 levels of blur)
2015-02-27cleanup: double promotionCampbell Barton
2015-02-26Change samples variable for SSAO - now it is actual samples, not squaredAntony Riakiotakis
- spiral scheme is much more intuitive here. Also use float number for spirals to avoid having samples on the same radial direction when sample number is divisible by spiral number.
2015-02-26Use spiral mapping for SSAO - it reduces banding a lot, especially inAntony Riakiotakis
higher sample counts. Probably a blurring pass might be a good addition here as well.
2015-02-26SSAO: sampling coordinates go out of screen, reject the sampleAntony Riakiotakis
Previous behaviour would get occlusion at borders which could create over occlusion at edges of the screen.
2015-02-24Fix T43785 crash with border select.Antony Riakiotakis
Naming here is slightly misleading. We have: * Number of elements (objects) that can be picked * Buffer size * Number of integers in buffer. Interestingly enough, bufsize in OpenGL (as far as I could find in examples on the web) and in most of the code refers to the latter and actual buffer size is only used whenever we do allocations on the heap. Added an extra defines here to make things a bit clearer: * MAXPICKELEMS refers to the number of objects that can be picked * MAXPICKBUF refers to the number of integers in the selection buffer Also made all buffers use MAXPICKBUF where some used MAXPICKBUF * 4. That means that some parts of blender will use less space for selection now. MAXPICKBUF is set to 10000 for 2500 object selection, which can be changed at any time, but I think 10000 integers on the stack touches the borders of uglyland anyway.
2015-02-23GPU module: get rid of gluscaleimage - game engine also uses that butAntony Riakiotakis
commit to remove from there will be done separately due to issues with linking.
2015-02-23Fix compilation error after recent GPU debug changesSergey Sharybin
2015-02-23Debug GPU functionality from soc-viewport_fx by Jason WilkinsAntony Riakiotakis
patch number D706 with changes: - WITH_GPU_DEBUG just creates a debug context (and enables the debug messaging system functions) but leaves the checks we had intact. Old patch added the debug functionality only if we had the flag on to save some performance. Rationale here is that we might not want to recompile blender just to get the extra information, and having users start blender with a -d flag to get the extra information is also useful for bug reports. Those checks already existed and most expensive ones are hidden behind a debug mode check so performance should not be that bad. - Did some cleanup of existing functionality: When things go wrong blender side, just print the error, don't check for GL errors first. - Did not port changes needed for GLES to regular glew.h - Got rid of duplicate or very similar new functionality. Generally, code is more moving things around/cleanup and should work exactly as before apart from the debug context, so it's safe to add even now. It also provides a nice substitute function for glu error descriptions
2015-02-20Fix for unlikely NULL pointer dereferenceCampbell Barton
Potential crash reading freestyle modifiers from future blend-files
2015-02-19Fix minor mistake - only increase size of compositing when stencil -is-Antony Riakiotakis
set.
2015-02-17Fix crash when rendering to offscreen OpenGL, fix scons buildAntony Riakiotakis
2015-02-17Compositing works with X-Ray.Antony Riakiotakis
Basically, before drawing X-Rays, we now bind a second depth buffer. After drawing XRays, we do an extra resolve pass where we overwrite the non-XRay depth buffer in pixels where the depth is not maximum (which means background pixel, since depth is cleared before drawing X-Ray objects). This ensures both scene and X-Rays keep their depth values and are ready for compositing. Well, the odd effect due to depth discontinuities can be expected, and X-Rays are a bit more expensive (extra buffer + resolve pass) but at least X-Rays won't invalidate depth values anymore. Whee!
2015-02-16Fix T43689, viewport compositing does not respect alpha settings forAntony Riakiotakis
background. For SSAO supporting this is no problem, for DOF we would ideally do blurred alpha, but alpha channel in blurred buffers is occupied by coc field, so use original color alpha instead. It's not entirely correct but it's better than nothing.
2015-02-13Fix T43649: Geometry node breaks GLSL shadingSergey Sharybin
The issue was caused by the recently added attribute, which is to be added to the shader function even tho it's not supported.
2015-02-12Revert "Add missing trailing '}' in GLSL files"Antony Riakiotakis
This reverts commit ebd4a6e0dd3bdd511f3857dc9192df848f388200. Trailing '}' is added in C, also we add some extra code as needed.
2015-02-12Add missing trailing '}' in GLSL filesCampbell Barton
2015-02-12Viewport compositing - first codeAntony Riakiotakis
This commit introduces a few ready made effects for the 3D viewport and OpenGL rendering. Included effects are Depth of Field, accessible from camera view and screen space ambient occlusion. Those effects can be turned on and tweaked from the shading panel in the 3D viewport. Off screen rendering will use the settings of the current camera. WIP documentation can be found here: http://wiki.blender.org/index.php/User:Psy-Fi/Framebuffer_Post-processing
2015-02-11cleanup: style/indentationCampbell Barton
2015-02-06cleanup: styleCampbell Barton
2015-02-06Cleanup: styleCampbell Barton
2015-02-05Use MAX_CUSTOMDATA_LAYER_NAME for size of GPUInput.attribname arrayNicholas Bishop
Before this was hardcoded to 32, which I think was incorrect because this is used to store a customdata layer name. Reviewers: psy-fi, campbellbarton, sergey Reviewed By: campbellbarton, sergey Differential Revision: https://developer.blender.org/D1040
2015-02-04GLSL: On some cards '>' can't operate on 'float' and 'int'Sergey Sharybin
So make it so comparison doesn't imply type-cast.
2015-02-03Fix T43530 using blender on remote connection crashesAntony Riakiotakis
Issue here is that remote connection will use OpenGL 1.1. There was a call here that would free VBOs always without a check, however the VBO free function pointer is NULL on such contexts causing a crash. This must have been causing some of the crashes with old contexts. While I think supporting those systems is not such a good idea in general, they can have a few more moments of support I guess. Things might be better now for systems using OGL 1.1 though there are still things that could be done better here - for instance going to dyntopo can crash immediately because we don't have a fallback implementation there. It might be worth reimplementing sculpting with vertex arrays for the legacy case too, but I guess if we move on to OpenGL 2.1 soon this is a bit of a wasted effort.
2015-02-03Fix T43380 modulo operation in GLSL does not return negatives.Antony Riakiotakis
Make it so by checking operand sign.
2015-02-02Selection: avoid uninitialized memory read with occlusion queriesAntony Riakiotakis
2015-02-02Adjust GLSL drawing of window coordinates from camera view (use cameraAntony Riakiotakis
bounds instead of window bounds). Fixes remaining part of T43346
2015-01-31Add PIL_check_seconds_timer_i to avoid castingCampbell Barton
note, win32 casts still casts from double.
2015-01-27Fix T43250, lamp node did not use energy when used with nodes in blenderAntony Riakiotakis
internal. Similar to fix for T42074 we need to multiply with energy -after- texture application.
2015-01-26Cleanup: strcmp/strncmp -> STREQ/STREQLEN (in boolean usage).Bastien Montagne
Makes usage of those funcs much more clear, we even had mixed '!strcmp(foo, bar)' and 'strcmp(foo, bar) == 0' in several places...
2015-01-26Code cleanup: de-duplicate codegen texid assignmentNicholas Bishop
Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D1026
2015-01-26Code cleanup: use GPUDynamicType instead of intNicholas Bishop
Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D1026
2015-01-26Code cleanup: use GPUDataSource enum instead of intNicholas Bishop
Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D1026
2015-01-26Code cleanup: use bool instead of intNicholas Bishop
Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D1026
2015-01-26Code cleanup: use an enum for GPUNodeLink.imageNicholas Bishop
Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D1026
2015-01-26Code cleanup: use enums instead of definesNicholas Bishop
Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D1026
2015-01-26Code cleanup: move struct GPUFunction and related code out of headerNicholas Bishop
Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D1026
2015-01-26Code cleanup: use lowercase "gpu" prefix for static functionsNicholas Bishop
Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D1026
2015-01-26Code cleanup: remove do-nothing function `GPU_node_end`Nicholas Bishop
Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D1026
2015-01-26Code cleanup: remove some `UNUSED` parameters from static functionsNicholas Bishop
Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D1026
2015-01-26Code cleanup: retype various fields/parameters from int to GPUTypeNicholas Bishop
Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D1026
2015-01-26Code cleanup: remove parameter from GPU_node_link_create()Nicholas Bishop
In all but one call the value 0 (aka GPU_NONE) was passed in. Clearer to just default to GPU_NONE and change the one caller that sets a real type to do it explicitly. Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D1026
2015-01-26Code cleanup: minor comment improvementsNicholas Bishop
Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D1026
2015-01-26Code cleanup: give anomymous enum used for CustomData.type a nameNicholas Bishop
Used this in GPU module to clarify what some "ints" really are. Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D1026