Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(118)

Issue 5444047: Separate RGB Node for Cycles (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 5 months ago by dfelinto
Modified:
12 years, 4 months ago
Reviewers:
brechtvl, bf-codereview
Base URL:
https://svn.blender.org/svnroot/bf-blender/trunk/blender/
Visibility:
Public.

Description

Hi, I'm trying (and trying, and trying) to get my hands on cycles. As a first exercise I decided to try to bring the Separate RGB node into it. I believe I got pretty far (given that I couldn't find any documentation and grep/copy+paste was the way to go). But the node is breaking Blender: Assertion failed: (input), function add_nodes, file /Users/dfelinto/blender/bf/intern/cycles/blender/blender_shader.cpp, line 476. The strange is, I get the same error regardless of using CPU or OpenCL. Although, to be honest my OSX doesn't support OpenCL. But the OSL code is so simple I don't think the problem is there. *** 1) remember to run `make install` after applying the patch so the svm_*.h are copied to the addon 2) the crash only happens when I render or enable Rendered in the 3d view 3) it may be better to name the new files more generic to accommodate at least the combine node. *** Thanks, Dalai

Patch Set 1 #

Total comments: 2

Patch Set 2 : Final patch - separate + combine RGB nodes. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -5 lines) Patch
intern/cycles/app/cycles_xml.cpp View 1 1 chunk +6 lines, -0 lines 0 comments Download
intern/cycles/blender/blender_shader.cpp View 1 3 chunks +8 lines, -2 lines 0 comments Download
intern/cycles/kernel/CMakeLists.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
intern/cycles/kernel/osl/nodes/CMakeLists.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
intern/cycles/kernel/osl/nodes/node_sepcomb_rgb.osl View 1 1 chunk +40 lines, -0 lines 0 comments Download
intern/cycles/kernel/svm/svm.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
intern/cycles/kernel/svm/svm_sepcomb_rgb.h View 1 1 chunk +38 lines, -0 lines 1 comment Download
intern/cycles/kernel/svm/svm_types.h View 1 1 chunk +3 lines, -1 line 0 comments Download
intern/cycles/render/nodes.h View 1 1 chunk +10 lines, -0 lines 0 comments Download
intern/cycles/render/nodes.cpp View 1 1 chunk +68 lines, -0 lines 0 comments Download
source/blender/nodes/shader/nodes/node_shader_sepcombRGB.c View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 5
dfelinto
12 years, 5 months ago (2011-11-28 20:24:23 UTC) #1
dfelinto
On 2011/11/28 20:24:23, dfelinto wrote: Backtrace: ********** Assertion failed: (input), function add_nodes, file /Users/dfelinto/blender/bf/intern/cycles/blender/blender_shader.cpp, line ...
12 years, 5 months ago (2011-11-28 20:25:39 UTC) #2
brechtvl
http://codereview.appspot.com/5444047/diff/1/intern/cycles/render/nodes.cpp File intern/cycles/render/nodes.cpp (right): http://codereview.appspot.com/5444047/diff/1/intern/cycles/render/nodes.cpp#newcode1636 intern/cycles/render/nodes.cpp:1636: add_input("Color", SHADER_SOCKET_COLOR); Socket names should match Blender node. http://codereview.appspot.com/5444047/diff/1/intern/cycles/render/nodes.cpp#newcode1648 ...
12 years, 4 months ago (2011-11-29 10:16:57 UTC) #3
dfelinto
Final patch - separate + combine RGB nodes.
12 years, 4 months ago (2011-11-29 17:18:08 UTC) #4
dfelinto
12 years, 4 months ago (2011-11-29 17:21:06 UTC) #5
I don't know if we need to wait for next release for this kind of patch. but I
will leave to you (Brecht) to ponder on that, ok?

If you think the patch is good please go ahead and commit (or let me know and I
commit it myself).
Thanks

http://codereview.appspot.com/5444047/diff/6002/intern/cycles/kernel/svm/svm_...
File intern/cycles/kernel/svm/svm_sepcomb_rgb.h (right):

http://codereview.appspot.com/5444047/diff/6002/intern/cycles/kernel/svm/svm_...
intern/cycles/kernel/svm/svm_sepcomb_rgb.h:26: stack_store_float(stack,
out_offset+color_index, color);
I'm using 'old fashion' + to write to the right element of my array. I hope this
is fine. It works great here.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b