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-07-20OpenSubdiv: Add OpenSubdiv files which are related on the CCGSubSurf and GPUSergey Sharybin
Those files are still not in use (SCons will tyr to compile new CCGSubSurf files but no code will be in use at all because those new files are fully wrapped by ifdef WITH_OPENSUBDIV check).
2015-07-20CCGSubSurf: Split file into several smaller onesSergey Sharybin
This is a preparation commit for having OpenSubdiv integrated into Blender and new layout is the following: - CCGSubSurf.c contains implementation of common functions used by both legacy subdivisions code and by the new code in the future. - CCGSubSurf_inline.h contains internal functions which are to be inlined due to the performance reasons. Those functions are only ment to be used bu CCGSubSurf* files. - CCGSubSurf_intern.h contains declarations of private functions and data structures used by CCGSubSurf module. - CCGSubSurf_legacy.c contains legacy implementation of subdivision algorithm. - CCHSubSurf_util.c contains utility functions which are not directly related on the subdivision code (i.e. debug functions, hash implementation etc). There should be no functional changes so far.
2015-07-20Minor optimization in CustomData_update_typemap().Bastien Montagne
2015-07-20Fix (unreported) potential serious bug in CustomData_merge().Bastien Montagne
It was always only using the flags from the first source layer of a given type, not from the layer actually being handled. This was (probably) more or less harmless for the CD_FLAG_NOCOPY test, but could be really bad when checking CD_FLAG_NOFREE, and when copying the flags over to new copied data!
2015-07-20Resolve compiler warning for clangCampbell Barton
2015-07-20Use abstraction to unbind buffers, should avoid crashes in systems thatAntony Riakiotakis
don't support VBOs. Exposed by initialization error in GLEW, which should be fixed seperately.
2015-07-20Minor edits for consistencyCampbell Barton
2015-07-19Cleanup: styleCampbell Barton
Also 'com' as abbreviation for center-of-mass is a bit confusing, rename to 'center'.
2015-07-19Convert rigidbody conversion to looptri.Antony Riakiotakis
Patch D1417 by Martin Felke, with minor edits thanks!
2015-07-19Properly fix T45477Antony Riakiotakis
Code was actually skipping setting color selection indices and previous commit actually broke mask selection in texture painting. All should work now.
2015-07-18Cycles: Point density texture supportSergey Sharybin
This commit implements point density texture for Cycles shading nodes. It's done via creating voxel texture at shader compilation time, Not totally memory efficient, but avoids adding sampling code to kernel (which keeps render time as low as possible), In the future this will be compensated by using OpenVDB for more efficient storage of sparse volume data. Sampling of the voxel texture is happening at blender side and the same code is used as for Blender Internal's renderer. This texture is controlled by only object, particle system and radius. Linear falloff is used and there's no turbulence. This is because falloff is expected to happen using Curve Mapping node. Turbulence will be done as a distortion on the input coordinate. It's already possible to fake it using nose textures and in the future we can add more proper turbulence distortion node, which then could also be used for 2D texture mapping. Particle color support is done by Lukas, thanks!
2015-07-18Use gpu-buffers for UV-edge drawingCampbell Barton
2015-07-18Cleanup: whitespace & break placementCampbell Barton
2015-07-18CMake: Add option to enable -Werror cflag in some areasSergey Sharybin
It is rather annoying attitude nowadays to use const qualifier all over the place, including using it for multi-dimensional arrays. This isn't really supported in GCC prior to version 5.0 because it considers such an arrays to be a "pointer to a const pointer" which gives implicit casting errors. It's not possible to disable this particular type of warnings treated as errors in any GCC version prior to 5.0 as well, meaning currently usage of -Werror globally in Blender code is not possible at all. This commit makes it possible to use -Werror in areas which are complaint with older GCC versions. New advanced CMake options are: - WITH_COMPOSITOR_WERROR - WITH_LIBMV_WERROR - WITH_CYCLES_WERROR
2015-07-17Cleanup: wsCampbell Barton
2015-07-17Avoid getting the original index if its not neededCampbell Barton
2015-07-17Absent-mindedness...Remove testing codeAntony Riakiotakis
2015-07-17Fix GLSL code not working correctly for Macs without VBO, again reportAntony Riakiotakis
by scorpion81 on irc
2015-07-17Fix T45469: Vertex Group weight = 0.0 in scene 2.Bastien Montagne
2015-07-17Fix issue reported by scorpion81 on irc: material mode + flat shadingAntony Riakiotakis
artifacts in cycles textured mode.
2015-07-17Avoid accessing MTFace drawing subsurfCampbell Barton
2015-07-17Fix another index error, made multimaterial mapped meshes drawAntony Riakiotakis
incorrectly.
2015-07-17Change winding of looptris in subsurf so they point to the sameAntony Riakiotakis
direction as the surface.
2015-07-17Don't create MFace's when calculating normalsCampbell Barton
Instead only create MFace layer when its requested
2015-07-17Add macro BKE_MESH_TESSTRI_VINDEX_ORDERCampbell Barton
gives the index of a vertex in a looptri
2015-07-17Fix T45465Antony Riakiotakis
Easy one, we don't draw quads anymore. Also normal didn't use polygon index
2015-07-17Fix no longer being possible to display a suzanne with 8 levels ofAntony Riakiotakis
subdivision. Classic integet overflow/size_t substitution case. Machines are getting powerful enough to easily expose these kinds of error now.
2015-07-17Let's use proper helpers for debug-only vars...Bastien Montagne
2015-07-17Make strict flags happy in release buildsSergey Sharybin
2015-07-16Remove MTFace DM_paint_uvlayer_active_get funcCampbell Barton
2015-07-16Fix for error in looptri commitCampbell Barton
Sculpting w/ subsurf crashed
2015-07-16Split ray_face_intersection into quad/tri versionsCampbell Barton
Since many callers only need a single triangle
2015-07-16Add tessellation data to DerivedMesh (LoopTri)Campbell Barton
This stores loop indices into the loop array giving easier acess to data such as vertex-colors and UV's, removing the need to store an MFace duplicate of custom-data. This doesn't yet move all internal code from MFace to LoopTri just yet. Only applies to: - opengl drawing - sculpting (pbvh) - vertex/weight paint Thanks to @psy-fi for review, fixes and improvements to drawing!
2015-07-16Fix T45459: Edge Length with Separate Units Displayed As 1m 100cm.Bastien Montagne
Our 'unit epsilon' was too small, given the fact we only display up to four digits usually...
2015-07-16Fix for the previous commit: overallocation of an arraySergey Sharybin
2015-07-16Fix T45446: Crash when baking a certain objectSergey Sharybin
Issue was caused by deform vert layer existing in the mesh. Solved in quite simple way, but it still might be missing some other layers. Any custom data experts around to check if it's correct?
2015-07-16Sculpt draw code:Antony Riakiotakis
Remove legacy code completely, now dyntopo, multires et al even work on GL 1.1 for really hardcore users :p Real purpose here though is to be able to have fast multires drawing even with VBO off, since it requires using indices for vertex buffers. Also made own code elf puke an eaten normal update function which made multires not update normals in solid mode...sorry.
2015-07-15 VBO offscreen selection drawing, cdderivedmeshAntony Riakiotakis
Get rid of legacy drawing, it's only used for selection, in which case we can prepare a temporary color buffer and draw at once. Code is not complete here because we still redundantly set the draw color in the draw function and don't ommit hidden faces automatically. Still it works 100% without immediate mode now.
2015-07-15Fix T45439 crash with subsurf when many materials present.Antony Riakiotakis
Silly oversight on the viewport patch
2015-07-15Fix autosmooth with recent DM optimizationsCampbell Barton
Also avoid multiple float->short conversions for the same normal.
2015-07-15DerivedMesh: minor changes to callback useCampbell Barton
- use void instead of float for array arg (cast in the switch statement) - remove unused args - use const for poly-mapping and user_data args
2015-07-15Cleanup: wsCampbell Barton
2015-07-15Cleanup: wsCampbell Barton
2015-07-15Fix overdrawing and errors with textured and mapped drawingAntony Riakiotakis
2015-07-14Display optimizations part 1.Antony Riakiotakis
This patch changes the way we draw meshes by introducing indexed drawing. This makes it possible to easily upload and rearrange faces ad lib according to any criteria. Currently we use material sorting but textured sorting and hiding will be added to optimize textured drawing and skip per face testing. It also adds support for vertex buffers for subsurf modifiers (Except from GLSL drawing), making drawing of subsurf much faster without need for bogus modifiers. Tests show that we gain approximately 20-25% performance by that for solid mode drawing with up to 50% gains for material drawing. Textured drawing should also have a small performance gain, but more substantial optimizations are possible there. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D1406
2015-07-14Correct last commitCampbell Barton
2015-07-14Move from MTFace to MTexPoly w/ texture checksCampbell Barton
Part of moving away from MFace.
2015-07-14Match face tessellation order in edimodeCampbell Barton
add a negated version of axis_dominant_v3_to_m3
2015-07-14Data Transfer: very minor cleanup...Bastien Montagne
2015-07-14Workaround for non-bleeding edge compilers and const cast of pointer arrays.Sergey Sharybin