The Vector Transform node is a useful node which is present in the Cycles renderer.
This patch implements the Vector Transform node for GLSL mode and the internal renderer.
Example:
Alexander (Blend4Web Team)
Differential D909
Vector Transform node support for GLSL mode and the internal renderer Authored by Alexander Romanov (a.romanov) on Nov 21 2014, 5:08 PM.
Details The Vector Transform node is a useful node which is present in the Cycles renderer. This patch implements the Vector Transform node for GLSL mode and the internal renderer. Example: Alexander (Blend4Web Team)
Diff Detail
Event TimelineThere are a very large number of changes, so older changes are hidden. Show Older Changes Comment Actions
Ready for review. Comment Actions Generally doesn't look bad to me apart from the formatting issues. I would love to avoid adding view matrices to ShadeInput. It can be done if you pass Render to ntreeShaderExecTree and copy to ShaderCallData but might cause concurrency issues? @Sergey Sharybin (sergey)? What would you say?
Comment Actions Alright, discussed with @Sergey Sharybin (sergey) and we agree that it's better to pass Render to ntreeShaderExecTree and copy to ShaderCallData. That way you can avoid duplicating the matrix in ShadeInput. Comment Actions Adding some more eyes here since Antony is temporary unavailable for the reviews. Will have a closer look a bit later. Comment Actions There're quite some code style issues in the code which were reported but seems not being addressed. Please read the patch carefully and make code style matching our existing one. Also, an idea. Seems global R is always passed to ntreeShaderExecTree. In this case, can we simply make it RE_render_current_current_get_matrix(int which_matrix) which will get matrix from R? Seems it'll simplify some cases here. Also, is it really needed to get a pointer to matrix instead of having a copy semantic? If the code is only run on shader compile would prefer to have a copy semantic instead of piercing internal pointers to an external world, especially without any const qualifier.
Comment Actions Ready for review
Comment Actions Generally looks fine, with some minor feedback. Maybe @Campbell Barton (campbellbarton) would like to have some final glance over this.
Comment Actions Looks like feedback so far has been addressed, I just went over and noted some real minor issues. Otherwise seems this is ready for master.
Comment Actions Updated according to last comments
Comment Actions I've marked this as accepted, though since this isn't code I maintain, best have @Sergey Sharybin (sergey) / @Antonis Ryakiotakis (psy-fi) or @Brecht Van Lommel (brecht) do final sign-off before going into master. Comment Actions @Sergey Sharybin (sergey) checked this patch. Since the last review by @Antonis Ryakiotakis (psy-fi) the code got just minor modifications. So I think that it makes no sense to bother the developers anymore.
Comment Actions 'arc land --hold' tells me that revision is not accepted. I think there should be no rejection marks. So I will wait for @Sergey Sharybin (sergey). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||