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

Issue 5528108: Displace Node (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by dfelinto
Modified:
12 years, 3 months ago
Reviewers:
xavier.thomas.1980, jbkkavt, bf-codereview
Base URL:
https://svn.blender.org/svnroot/bf-blender/branches/tile/blender
Visibility:
Public.

Description

I had to make it into a Complex node to allow the readEWA to be used. (the other alternative is to expose readEWA to all node types when dx and dy are passed as parameter to read). The result is almost perfect (comparing to trunk). The only problem is a glitch in the middle: trunk: http://www.pasteall.org/pic/show.php?id=24506 tile: http://www.pasteall.org/pic/show.php?id=24505 I'm yet to investigate the reason. It may be the readEWA code (which is also used by the MapUV node, but works fine there). edit: committed

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+301 lines, -4 lines) Patch
source/blender/compositor/CMakeLists.txt View 2 chunks +4 lines, -0 lines 0 comments Download
source/blender/compositor/intern/COM_Converter.cpp View 3 chunks +7 lines, -4 lines 0 comments Download
source/blender/compositor/nodes/COM_DisplaceNode.h View 1 chunk +36 lines, -0 lines 0 comments Download
source/blender/compositor/nodes/COM_DisplaceNode.cpp View 1 chunk +39 lines, -0 lines 0 comments Download
source/blender/compositor/operations/COM_DisplaceOperation.h View 1 chunk +63 lines, -0 lines 0 comments Download
source/blender/compositor/operations/COM_DisplaceOperation.cpp View 1 chunk +152 lines, -0 lines 2 comments Download

Messages

Total messages: 8
dfelinto
12 years, 4 months ago (2012-01-16 20:53:08 UTC) #1
xavier.thomas.1980_gmail.com
It might be a "Off by one" bug less noticeable in the non tiled pipeline. ...
12 years, 4 months ago (2012-01-17 22:44:54 UTC) #2
dfelinto
If I change the render output to 200% I see the 'problem' happening again in ...
12 years, 4 months ago (2012-01-17 23:04:15 UTC) #3
jbkkavt
I have no comments on the code structure. soo when the functional part is solved ...
12 years, 4 months ago (2012-01-18 13:56:08 UTC) #4
dfelinto
Any clues on what can cause that problem? Or any tips on when to use ...
12 years, 4 months ago (2012-01-18 16:18:04 UTC) #5
jbkkavt
I haven't look at the issue (or even) what the issue is about. InitializeTileData is ...
12 years, 4 months ago (2012-01-18 18:23:12 UTC) #6
jbkkavt
Dalai, please check. Using you example file I couldn't reproduce it anymore. It is a ...
12 years, 4 months ago (2012-01-24 15:34:17 UTC) #7
dfelinto
12 years, 4 months ago (2012-01-24 17:03:52 UTC) #8
It seems to be good now. If we have other reports in the future we know where to
tweak at least (and I'm glad the algorithm is working).

thanks Jeroen, I just committed.


On 2012/01/24 15:34:17, jbkkavt wrote:
> Dalai, 
> 
> please check. Using you example file I couldn't reproduce it anymore. It is a
> rounding issue with the +0.5f isplaced pixel in uv coords, for image sampling
> 
> I tested with values from -100 to +100 for Xscale and Yscale.
> 
> Regards, 
> Jeroen
> 
>
http://codereview.appspot.com/5528108/diff/1/source/blender/compositor/operat...
> File source/blender/compositor/operations/COM_DisplaceOperation.cpp (right):
> 
>
http://codereview.appspot.com/5528108/diff/1/source/blender/compositor/operat...
> source/blender/compositor/operations/COM_DisplaceOperation.cpp:130:
> vectorInput.xmax = input->xmax + 1;
> Change +1 to +2 solves some rounding issues in determination of the uv
> coordinates
> 
>
http://codereview.appspot.com/5528108/diff/1/source/blender/compositor/operat...
> source/blender/compositor/operations/COM_DisplaceOperation.cpp:132:
> vectorInput.ymax = input->ymax + 1;
> Change +1 to +2 solves some rounding issues in determination of the uv
> coordinates
Sign in to reply to this message.

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