Freestyle integration into Blender

January 25, 2010

Weekly update January 18-24

Filed under: Update — The dev team @ 11:11 PM

During the last week, the question of how to implement the clipping of imported meshes was investigated.  Mesh clipping is necessary for two reasons.  One reason is that the internal renderer does clipping.  The camera has two properties called near and far clipping distances, which define the locations of near and far XY planes (referred to as view planes), and only the objects that reside between the two view planes are rendered.  When objects touch the view planes, part of them out of the interval is clipped and becomes invisible.  It is remarked that the clipping distance properties were previously not respected by the Freestyle renderer.  The other reason is that objects that (partially) come behind the camera cause a crash of the Freestyle renderer during the view map creation.  The near view plane can be effectively used to exclude the objects behind the camera in advance of the view map creation.

For these reasons, a straightforward clipping algorithm was implemented in revision 26233 of the branch.  Mesh objects are clipped by the near and far view planes specified with the clipping distance properties of the active camera.  When meshes are partially clipped, new edges are created at the intersections with the view planes.  These edges can result in visible strokes if they are within the camera view.

As of this writing, simple test scenes with objects behind the camera are successfully rendered.  More complex scenes pose a problem in stroke rendering and possibly result in a crash, which seems related to a lot of “strip vertex 0 non valid” warning messages often observed in complex scenes (the number in the warning may vary).  This problem is apparently independent of the instability issues we have been addressing with regard to the view map creation.  Further consolidation of the stroke rendering will be attempted in the next weeks.  Branch users are encouraged to test Freestyle with complex scenes (possibly having objects behind the camera).  Problem reports are always very welcome.

4 Comments »

  1. thanks for the code(and details) updates on the branch. I’ve noticed the improvements to the branch using a few test blends with far fewer crashes. Thanks for the continued effort on this great addition to Blender.

    Comment by Blenderificus — January 26, 2010 @ 3:29 AM

  2. thankyou for the build!

    in next offiacial release we’ll find it ?

    Comment by Max Puliero — January 26, 2010 @ 8:50 AM

    • I believe the next official release will come wihtout Freestyle, since the renderer needs further consolidation.
      Maybe we will discuss “when” after the stability has been much improved.

      Comment by The dev team — January 26, 2010 @ 11:15 PM

      • great idea.

        I really appreciate your work.
        thankyou

        Comment by Max Puliero — January 27, 2010 @ 2:21 AM


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: