Results 1 to 3 of 3

Thread: vgCreatePath scale and bias

  1. #1
    Junior Member
    Join Date
    Aug 2010

    vgCreatePath scale and bias

    Regarding scale and bias, the OVG 1.1 spec says:
    The scale and bias parameters are used to interpret each coordinate of the
    path data; an incoming coordinate value v will be interpreted as the value
    (scale*v + bias).
    I interpret that to mean that appending coordinate values -5.0, 0.0, and 5.0 to a path with a scale of 1.0 and bias of 0.0 should produce exactly the same results as appending 0.0, 0.5, and 1.0 to a path with scale of 10.0 and bias of -5.0. However, normalizing my input coordinates to 0-1 with an appropriate scale (max - min) and bias (min) significantly changes what is drawing.

    Can someone explain how these are ACTUALLY used? I was just tweaking some things to see if anything improved performance, and now I'm confused by this. Did I misunderstand the spec?

  2. #2
    Junior Member
    Join Date
    Aug 2010

    Re: vgCreatePath scale and bias

    OK, setting aside any questions about how scale and bias are used by implementations... is my understanding of the INTENT of scale and bias, at least, one that is shared by others?

  3. #3
    Senior Member
    Join Date
    May 2008

    Re: vgCreatePath scale and bias

    My understanding is the same. The only spot I can see as a point of confusion, is that the transforms don't affect points being appended to a path, they only affect a path when rendered. So if you create both paths, then apply associated described transformations before draw each path, I would expect the results you described. But if by some chance, your applying transforms, building a path, applying the second set of transforms, building the second path, then rendering both paths, I would expect both paths to having the last set of transformations applied.

    If your doing things properly perhaps there's a bug in the VG implementation. ;\

Similar Threads

  1. Grey-scale image > 8 bits on iOS
    By larsimg in forum OpenGL ES
    Replies: 4
    Last Post: 01-16-2013, 04:08 AM
  2. LOD bias in opengl ES 1.1
    By underthesun in forum OpenGL ES
    Replies: 1
    Last Post: 11-03-2008, 03:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean