January 22, 2015, 09:27 (GMT) |
Cycles: Add assert check to triangle packing Handy for troubleshooting. |
January 22, 2015, 09:24 (GMT) |
Add BLENDER_VERBOSE env var check to cycles test This means you can see Blender's output if you want. also minor style edits |
January 22, 2015, 09:12 (GMT) |
Fix T43120: Cycles mapping node rotation order is different from viewport Root of the issue goes to the fact that since the very beginning Cycles was using ZYX euler rotation for mapping shader node but blender was always using XYZ euler rotation. This commit switches Cycles to use XYZ euler order and adds versioning code to preserve backward compatibility. There was no really nice solution here because either we're ending up with versioning code or we'll need to deal with all sort of exceptions from blender side in order to support ZYX order for the mapping node. The latest one is also creepy from the other render engines points of view -- that might break compatibility with existing bindings or introduce some extra headache for them in the future. This could also become a PITA for us with need of supporting all sort of weird and wonderful exceptions in the refactored viewport project. NOTE: This commit breaks forward compatibility, meaning opening new files in older blender might not give proper result if Mapping node was used. Also, libraries are to be re-saved separately from the scene file, otherwise versioning code for them wouldn't run if scene file was re-saved with new version of blender. Reviewers: brecht, juicyfruit, campbellbarton Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D973 |
January 22, 2015, 08:59 (GMT) |
Cleanup / Cycles: Code de-duplication for graph node relinking. Differential Revision: https://developer.blender.org/D1018 |
January 22, 2015, 08:52 (GMT) |
Expose shading node shading compatibility to the RNA This way it is possible to probe shading compatibility of a given node from python, making things like versioning code much easier to perform. it's only valid for shading nodes, for other nodes the property also exists but reads as an empty enum. To access this compatibilities: node.shading_compatibility |
January 22, 2015, 06:06 (GMT) |
Fix: Audaspace threw an exception for files it could not open. |
January 22, 2015, 05:20 (GMT) |
Docs: touch ups in the bge.render doc introduction |
January 22, 2015, 05:00 (GMT) |
bge.render.getStereoEye() and bge.types.LEFT_EYE/RIGHT_EYE This function allows the user to run specific code for each of the rendered stereoscopic eyes in the Game Engine. The initial use case is to set the camera projection matrix in a scene.pre_draw callback function for each eye, to be used in VR (Virtual Reality) installations. Reviewed by Mitchell Stokes and Campbell Barton, thank you guys. Sample Test Python Script: """ import bge import bgl import blf def init(): """init function - runs once""" scene = bge.logic.getCurrentScene() scene.post_draw.append(write) def write(): """write on screen - depending on the eye""" width = bge.render.getWindowWidth() height = bge.render.getWindowHeight() # OpenGL setup bgl.glMatrixMode(bgl.GL_PROJECTION) bgl.glLoadIdentity() bgl.gluOrtho2D(0, width, 0, height) bgl.glMatrixMode(bgl.GL_MODELVIEW) bgl.glLoadIdentity() eye = bge.render.getStereoEye() if eye == bge.render.LEFT_EYE: blf.position(0, (width * 0.2), (height * 0.3), 0) blf.size(0, 40, 72) blf.draw(0, "Left") else: # bge.render.RIGHT_EYE: blf.position(0, (width * 0.7), (height * 0.3), 0) blf.size(0, 40, 72) blf.draw(0, "Right") """ |
January 21, 2015, 23:56 (GMT) |
error in last commit (missed in review) |
January 21, 2015, 23:49 (GMT) |
January 21, 2015, 23:08 (GMT) |
Cycles ctests: Use hardcoded locations to idiff on osx/win The idea is to have this binary in our libs folder, so it's easy to run tests on those platforms without installing anything extra. Actual binaries are to be uploaded still tho. |
January 21, 2015, 23:03 (GMT) |
Cycles ctests: Automatically find idiff application |
January 21, 2015, 22:56 (GMT) |
Cycles ctests: Add runtime check for Cycles The idea is to check scene's render engine and if it's not Cycles report about this and stop running tests (because it's not likely Cycles will be loaded correctly). This way we'll fail Cycles tests real quick without install target and give quite nice error message about that. |
January 21, 2015, 22:30 (GMT) |
Cycles ctests: Run blender without system script override The idea is to force using Cycles tests only after running install target. More i'm thinking about ways to not require this more it's clear there is no clear way to support this. It is possible to hack something around and make tests to be running smoothly, but it's never gonna to give all the features (like GPU which required source file on linux and compiled cubin on windows, OSL which requires compiled script) without any manual tweaks anyway. So let's be damn stupid and not try to be smart and just assume install target was run which makes Cycles tests just happy without any extra setup. Would be nice to detect and report missing target install so we don't spend time on rendering Cycles scenes with Blender Internal. |
January 21, 2015, 20:36 (GMT) |
Tests: Add render tests for Cycles The idea is to use the set of really small images from the lib folder and run Cycles render on them comparing render output to reference images in the tests repository. For sure same thing could become more generic for BI or Freestyle render engines. This is not totally easy to use at this moment, basically because of a bit of voodoo mango jambo black magic happening around how we are dealing with addons for ctests. Main issue is that blender loads all the scripts from the source directory, meaning it can't pick cycles up. Once this is figured out in a clean fashion the branch will be merged to master. For until then all the tweaks are gonna to be done here. For now it's possible to set BLENDER_USER_SCRIPTS to the directory with Cycles addon so it is picked up nicely. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D1011 |
Revision 47618d0 by Sergey Sharybin (gooseberry, gooseberry_farm, temp_hair_modifiers, temp_motionpaths) January 21, 2015, 19:53 (GMT) |
Merge branch 'master' into gooseberry |
January 21, 2015, 19:41 (GMT) |
Cycles: Support tube projection for images This way Cycles finally becomes feature-full on image projections compared to Blender Internal and Gooseberry Project Team could finally finish the movie. |
January 21, 2015, 19:41 (GMT) |
Cycles: Support sphere mapping for the image texture |
January 21, 2015, 19:16 (GMT) |
Cycles: Optimization for black world backgrounds * If a Background node is set to a black color or zero strength, it now gets removed from the shader graph. * In case the graph is empty (no background node), the kernel will skip evaluating it and save some rendertime. This can help quite a bit in scenes, where the majority of the image consists of a black background. Example: http://www.pasteall.org/pic/show.php?id=82650 In this case the render is ~16% faster. Differential Revision: https://developer.blender.org/D972 |
Revision e919486 by Dalai Felinto January 21, 2015, 18:40 (GMT) |
|
|
|


Master Commits
MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021