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
2011-02-18fix own mistake [#26125] Command line render, absence of CRLF on certain linesCampbell Barton
2011-02-16Bugfix #26103Ton Roosendaal
Halo texture: disabling texture slot with [] button didn't work. Note: halos only allow 1 texture slot, UI allows to add more. This rna template stuff for texture slots I rather don't touch though...
2011-02-15Move mikktspace code to own library, so it is clear that it is alsoNathan Letwory
intended as a standalone library for use in other applications that want the same tangent space as Blender. This also keeps blenkernel clean(er) from extra math functions.
2011-02-14more vars made staticCampbell Barton
2011-02-14This commit will switch blender to use tangent space generated withinM.G. Kishalmi
the two files mikktspace.h and mikktspace.c. These are standalone files which can be redistributed into any other application and regenerate the same tangent spaces. The implementation is independent of the ordering of faces and the vertex ordering of faces.
2011-02-13fix for warnings from Sparse static source code checker, mostly BKE/BLI and ↵Campbell Barton
python functions. - use NULL rather then 0 where possible (makes code & function calls more readable IMHO). - set static variables and functions (exposed some unused vars/funcs). - use func(void) rather then func() for definitions.
2011-02-13enforce string limits (reported by pedantic checking tools & some developers).Campbell Barton
mostly replace strcpy with BLI_strncpy and multiple strcat's with a BLI_snprintf(). also fix possible crash if CWD isnt available.
2011-02-13Small update for billboards:Janne Karhu
* Renamed the old split uv's animate option "time" to "age" and added a new option to change the used split frame by frame. These are good changes were suggested/implied by Hannu Hoffren over 3 years ago in his tutorial video! (oh my how time flies) * Also cleaned up the billboard ui quite a bit. For example now the uv channels can be properly chosen from the existing channels.
2011-02-12fix for more warnings.Campbell Barton
- modifier code was using sizeof() without knowing the sizeof the array when clearing the modifier type array. - use BLI_snprintf rather then sprintf where the size of the string is known. - particle drawing code kept a reference to stack float values (not a problem at the moment but would crash if accessed later).
2011-02-12render stats_background() was giving clang warning about unused argument and ↵Campbell Barton
wasn't checking for buffer overrun (though this would be very unlikely). write to the stdout directly rather then building a string and writing that. (no functional change).
2011-02-09Fix for rendering procedual bump maps, mapped in world space, since the new ↵Michael Fox
bump map kernel uses direction, this bug became a real issue, with bumps suddenly changing direction Fix provided due to a long session on IRC with Morten S. Mikkelsen (sparky_)
2011-02-08add back options for loading a renderlayer to offset the image when copying ↵Campbell Barton
the buffer to a smaller renderlayer. This was reverted by Brecht r22541 because its inefficient but there is no way to work around this with povray at the moment so adding it back as optional args.
2011-02-08bump-mapping update to properly supportM.G. Kishalmi
multiple textures in different bump-spaces. kudos to M.L.Mikkelsen (sparky) for helping with the math! :)
2011-02-07Bugfix 25965Ton Roosendaal
New "auto render" now prevents calling anim-updates, that's not needed (and popped back transformed keyed objects).
2011-02-06Bugfix #25953Ton Roosendaal
Fix in crashing displacement last friday, assumed wrongly that the old 'new bump' failed for displacement too. It still did work (somewhat). This restores the situation again.
2011-02-06Bug fix: Particles in dupligroups were mostly drawn properly in 3d view, but ↵Janne Karhu
rendering them was a real mess. * After countless different bugs particles should now render correctly inside dupligroups. * Only particles with metaball visualization are still problematic, this is mostly due to the ancient metaball code. * I'll also add a test file for some of the situations, so that hopefully these cases stay fixed :)
2011-02-06- cmake was missing an inclide (IDE's wouldnt index)Campbell Barton
- made doc generation always sumlink newly built docs to static URL. http://www.blender.org/documentation/250PythonDoc/
2011-02-06SVN maintenance.Guillermo S. Romero
2011-02-05Another fix for the raytracing commit, forgot that it also included vertexBrecht Van Lommel
reordering to be consistent with the rest of the render engine. That means the self intersection issues with non-planar quads should also be gone now.
2011-02-05Raytrace modifications from the Render Branch.Brecht Van Lommel
These should not have any effect on render results, except in some cases with you have overlapping faces, where the noise seems to be slightly reduced. There are some performance improvements, for simple scenes I wouldn't expect more than 5-10% to be cut off the render time, for sintel scenes we got about 50% on average, that's with millions of polygons on intel quad cores. This because memory access / cache misses were the main bottleneck for those scenes, and the optimizations improve that. Interal changes: * Remove RE_raytrace.h, raytracer is now only used by render engine again. * Split non-public parts rayobject.h into rayobject_internal.h, hopefully makes it clearer how the API is used. * Added rayintersection.h to contain some of the stuff from RE_raytrace.h * Change Isect.vec/labda to Isect.dir/dist, previously vec was sometimes normalized and sometimes not, confusing... now dir is always normalized and dist contains the distance. * Change VECCOPY and similar to BLI_math functions. * Force inlining of auxiliary functions for ray-triangle/quad intersection, helps a few percentages. * Reorganize svbvh code so all the traversal functions are in one file * Don't do test for root so that push_childs can be inlined * Make shadow a template parameter so it doesn't need to be runtime checked * Optimization in raytree building, was computing bounding boxes more often than necessary. * Leave out logf() factor in SAH, makes tree build quicker with no noticeable influence on raytracing on performance? * Set max childs to 4, simplifies traversal code a bit, but also seems to help slightly in general. * Store child pointers and child bb just as fixed arrays of size 4 in nodes, nearly all nodes have this many children, so overall it actually reduces memory usage a bit and avoids a pointer indirection.
2011-02-05Renamed texture.c in render module, to prevent debuggers toTon Roosendaal
complain about the same named file in blenkernel.
2011-02-05Bugfix 25871Ton Roosendaal
Using displacement with new bump caused NaN values or crashes. Since displace code doesn't provide derivatives, it now falls back to "old bump" by default.
2011-02-05accidentally left scaling code commented out when testing.M.G. Kishalmi
2011-02-03Bugfix #25912Ton Roosendaal
Render bug in spothalo (weird horizontal line). Appeared to be precision error... even for doubles, before doing division a check for FLT_EPSILON works better than DBL_EPSILON (if there's an alternative).
2011-02-03Applying patch #25898 by Shinsuke Irie for rendering total external reflectionsJanne Karhu
* Tracing objects with IOR < 1.0 (like air bubbles under water) wasn't working correctly as a refraction was always assumed to be the first thing that happens for transparent materials. * This fix is ok, but the fact that the internal renderer is not a physically based one is starting to show, as for example blurred reflections in this case are not really possible nicely without some slightly heavier modifications to the ray code. * Also some cleaned up logic and better comments for my previous total internal reflection commit.
2011-02-02Bugfix #25913Ton Roosendaal
Compositor: using "read sample buffers" after load file, without render layers in composite, crashed blender (NULL read)
2011-02-02Fix for [#25899] Renderer can't trace successive total internal reflectionJanne Karhu
* This was wrong since 2006! * Raytrace code assumed refractions to go "air -> glass -> air -> glass -> air.." so actually only the first total internal reflection was calculated correctly, but everything after that was wrong. * Now after a total internal reflection there needs to be an actual refraction before the ray escapes the "glass" object.
2011-02-01Fix for [#25879] Particle Duplication issue with Linked in Objects from Groups.Janne Karhu
* Only the first object (in scene object order) that instanced a dupligroup was rendered properly, because particle instances were checked for only after creating the render object (and even this check was done wrong). * Now the actual render object is created only after both object and particle instances have been checked.
2011-01-30remove nan-makefilesCampbell Barton
2011-01-30Bugfix #25855Ton Roosendaal
New bump code: option "Texture space" only works for image textures. It appears this option is some kind of "fake normal map" actually. Needs nicer name... maybe "Image space". Now it ignores the option when no image texture is used.
2011-01-29ISO C90 fixM.G. Kishalmi
2011-01-29new bumpmapping options for the rendererM.G. Kishalmi
oldbump -> original newbump -> compatible *new* -> default (3tap) *new* -> best quality (5tap) the latter two have an option to apply bumpmapping in viewspace - much like displacement mapping objectspace - default (scales with the object) texturespace - much like normal mapping (scales)
2011-01-23correct own bad spellingCampbell Barton
2011-01-22error in own recent commit, r34445Campbell Barton
2011-01-22comment dead code and fix 2 missing NULL checks (pointer used after NULL ↵Campbell Barton
check and checking against incorrect pointer before use).
2011-01-21correct spellingCampbell Barton
2011-01-11Bugfix #25580Ton Roosendaal
Raytracing didn't show soft shadow in reflections, nor did it do any derivative even. Added a basic version for it in raytracer now, still needs improvement on heavily curved surfaces. But it's better! Examples: Glass sphere, mirror cube and sphere, look how it ignores bump and shadow http://www.blender.org/bf/derivative256.png in svn now: http://www.blender.org/bf/derivative-svn.png
2011-01-11remove misc unused vars and correct theme name for face angles.Campbell Barton
2011-01-08fixed a case with occlusion where uninitialized variable could be used.Campbell Barton
also removed unused vars. can_pbvh_draw() had a NULL check which is never needed (callers check for this), a NULL ob would have crashed the function anyway.
2011-01-07remove references to BKE_utildefines where its not needed.Campbell Barton
- move GS() define into DNA_ID.h - add BLI_utildefines as an automatic include with makesrna generated files.
2011-01-07split BKE_utildefines.h, now it only has blender specific defines like GS() ↵Campbell Barton
MAKE_ID, FILE_MAXDIR, moved the generic defines to BLI_utildefines.h. no functional changes.
2011-01-07Revert bump mapping patch for now, backwards compatibility is not good enough,Brecht Van Lommel
we may need to preserve the previous method.
2011-01-07Fix #25078: texture mapping options (e.g. size) not working correctly with bump.Brecht Van Lommel
This problem was in both new bump and new new bump. The derivatives used for bump mapping did not include the mapping, which gave mismatched offset for the taps, now just do the mapping beforehand.
2011-01-07Improved bump mapping patch by M.G. Kishalmi (lmg) and M.S. Mikkelsen (sparky).Brecht Van Lommel
Many thanks to them! For comparison, see here: http://kishalmi.servus.at/3D/bumpcode/ Based on algorithm in: Mikkelsen M. S.: Simulation of Wrinkled Surfaces Revisited. http://jbit.net/~sparky/sfgrad_bump/mm_sfgrad_bump.pdf This fixes bugs: #24591: Artefacts/strange normal mapping when anti-aliasing is on #24735: Error at the Normal function. #24962: Normals are not calculated correctly if anti-aliasing is off #25103: Weird artefacts in Normal This will break render compatibility a bit, but fixing this bugs would have also done that, so in this case it should be acceptable. Patch committed with these modifications: * Bump method Old/3-Tap/5-Tap option in UI, 3-Tap is default * Only compute normal perturbation vectors when needed * Fix some middle of block variable definitions for MSVC
2011-01-06fix for clang static check warnings.Campbell Barton
- convertblender.c, remove assignments to unused vars. - readfile.c, fix 2 possible crashes. null pointers were being checked for then used later without checking. - space_graph.c, use switch statement for automatic color assignment rather then a float array.
2011-01-06remove assignments which are unused.Campbell Barton
2011-01-05Fix #23604: external shadows for volume materials don't workBrecht Van Lommel
2011-01-03avoid int/float comparisons within a number of for loops in deep shadow map ↵Campbell Barton
compression. gives minor overall speedup.
2011-01-03fix for possible comparison of un-initialized variable.Campbell Barton
vol_get_bounds() only runs when shi->flippednor==0, but is.hit.ob was being checked afterwards irrespective.
2011-01-02- correct typos in comments.Campbell Barton
- move boxpack struct out of the public header.