Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.6 Bug Tracker: Browse

[#25967] Geometry node "Front/Back" output doesn't work with "Full Oversampling" on

Date:
2011-02-07 20:39
Priority:
3
State:
Closed
Submitted by:
Johannes Schriewer (dunkelstern)
Assigned to:
Ton Roosendaal (ton)
Category:
Rendering
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
 
Summary:
Geometry node "Front/Back" output doesn't work with "Full Oversampling" on
Detailed description
Geometry node "Front/Back" output doesn't work if you force full oversampling for the material. I used it to put different materials to either side of a plane. Let's take a book page for example, front side has to be differently textured than back side. So i set up 2 textures and feed the "Front/Back" output of the geometry node into a mixer and that output is used as texture. Worked at least in 2.53beta from July 2010. Does not work in current beta release, and in svn from today i observe the same bug.

Test case:

1. Empty the scene
2. Create a simple plane
3. Set the plane material to be a node material
4. Force "Full Oversampling" on the material
5. Switch to the node editor, empty out all nodes
6. Create a geometry node
7. Create an output node
8. Connect the "Front/Back" output of the geometry node to the "Color" slot of the output node
9. Deform the plane somehow so you can see the front and the back

Expected behaviour: One side white, one black (as "Front/Back" outputs an integer depending on the side of the polygon)
Observed behaviour: Both sides white, one has polygon "seams" visible

See attached the correct rendering behaviour, the bad one, a screenshot from the node setup and a test scene.

Followup

Message
  • Date: 2011-02-08 18:03
  • Sender: Ton Roosendaal
  • The test file renders OK in both current svn as in official 2.56 release of blender.org

    Please always check an official build before posting issues, and mention which OS version you use.
    Full-sample rendering depends on openExr, which has to be correctly built with right version.
  • Date: 2011-02-08 22:08
  • Sender: Johannes Schriewer
  • I can reproduce it on my iMac and the Mac Pro at work. Running OSX 10.6.6, using official Blender build 2.56 and self compiled SVN. I am using the 64 Bit build.
  • Date: 2011-02-09 11:06
  • Sender: Ton Roosendaal
  • 1) Do you have Full Oversampling render even work at all?
    2) It needs a temp directory with write permission, default set to /tmp/
    If you don't have that, set it in user prefs to anotjer dir
    3) Can you run blender from a terminal and check on the prints?
    cd to directory where blender.app is
    ./blender.app/Contents/MacOS/blender

    It should print this:

    write exr tmp file, 960x540, /tmp/untitled-1.blend_Scene.exr
    write exr tmp file, 960x540, /tmp/untitled-1.blend_Scene1.exr
    write exr tmp file, 960x540, /tmp/untitled-1.blend_Scene2.exr
    write exr tmp file, 960x540, /tmp/untitled-1.blend_Scene3.exr
    write exr tmp file, 960x540, /tmp/untitled-1.blend_Scene4.exr
    write exr tmp file, 960x540, /tmp/untitled-1.blend_Scene5.exr
    write exr tmp file, 960x540, /tmp/untitled-1.blend_Scene6.exr
    write exr tmp file, 960x540, /tmp/untitled-1.blend_Scene7.exr
    read exr tmp file: /tmp/untitled-1.blend_Scene.exr
    read exr tmp file: /tmp/untitled-1.blend_Scene1.exr
    read exr tmp file: /tmp/untitled-1.blend_Scene2.exr
    read exr tmp file: /tmp/untitled-1.blend_Scene3.exr
    read exr tmp file: /tmp/untitled-1.blend_Scene4.exr
    read exr tmp file: /tmp/untitled-1.blend_Scene5.exr
    read exr tmp file: /tmp/untitled-1.blend_Scene6.exr
    read exr tmp file: /tmp/untitled-1.blend_Scene7.exr
  • Date: 2011-02-11 15:53
  • Sender: Adam Jaworski
  • Confirmed on WinXP 32 and Ubuntu 10.04 32. It comes from 2.4x and still sits there.
    @Johannes - in your file 'Full Oversampling' is not active so it's a little confusing; also it produces object's geometry wires not seams.
    @Ton - it's not about 'Full Sample' from render panel but 'Full Oversampling' from material panel.
    Attached file test_2.blend contains corrected scene with short description. It seems code for anti-aliasing is messing the render - enable 'Full Oversampling' and 'Full Sample' options to see.
  • Date: 2011-02-13 02:22
  • Sender: Johannes Schriewer
  • @adam - i am sorry, i thought i saved the scene with it turned on. And you are right it's not about full scene full oversampling but the _material_ setting (as i wrote in my step by step list). I put "seams" in quotes to say what you meant, the words did just not come to my mind. (Not native speaker and it was late that day ;) )

    I can't use full scene oversampling in my scene as i use the outline renderer and it deactivates the full scene oversampling option, so i used it on the material to smooth the texture out a bit. In 2.53 it worked (at least for me), I did not test other versions between 2.53 and the current (2.56/SVN) so i cannot say where exactly the breakage occurred.

    For my purpose i design the scenes in 2.56 because of fewer crashes and render in 2.53 currently as that version works.
  • Date: 2011-02-13 11:38
  • Sender: Adam Jaworski
  • @Johannes - no worries, just correction for better understanding ;)
    I can confirm: 2.53 & 2.54 on WinXP works well - no errors.
    On my Ubuntu: rev.32021 works well while rev.32051 and newer doesn't. Don't have build between.
  • Date: 2011-02-18 19:40
  • Sender: Ton Roosendaal
  • Issue confirmed, I read your report badly yes :)
    Assigned to self, will check on it asap.
  • Date: 2011-02-19 17:21
  • Sender: Ton Roosendaal
  • Found the issue, fix goes to svn in a minute! Thanks :)
  • Date: 2011-02-21 23:24
  • Sender: Adam Jaworski
  • The bug still exists. In previously attached test_2.blend file turn on Transparency - ZTransparency. The problem will show up again. With RayTransparency there is no problem.
 

Attached Files:

Name Date Download
node_setup.png 2011-02-07 20:39 Download
wrong.png 2011-02-07 20:39 Download
correct.png 2011-02-07 20:39 Download
untitled.blend 2011-02-07 20:41 Download
test_2.blend 2011-02-11 15:53 Download

Changes:

Field Old Value Date By
status_idOpen2011-02-19 17:21ton
close_dateNone2011-02-19 17:21ton
StatusInvestigate2011-02-19 17:21ton
assigned_tonone2011-02-18 19:40ton
File Added14968: test_2.blend2011-02-11 15:53jawra
StatusNew2011-02-09 11:06ton
File Added14915: untitled.blend2011-02-07 20:41dunkelstern
File Added14912: correct.png2011-02-07 20:39dunkelstern
File Added14913: wrong.png2011-02-07 20:39dunkelstern
File Added14914: node_setup.png2011-02-07 20:39dunkelstern