Search:

Type: Posts; User: Ivo Moravec

Page 1 of 5 1 2 3 4

Search: Search took 0.00 seconds.

  1. Re: Assertion failed Error for VG_TRUE in Open VG

    The API document I have says that vgGetError() is defined as follows:
    VGErrorCode vgGetError(void)
    and where
    VGErrorCode is an enum with values like (VG_NO_ERROR [=0], VG_BAD_HANDLE_ERROR...
  2. Replies
    3
    Views
    4,806

    Re: vgDrawImage leaving a rect around image?

    Don't think this should ever be happening - sounds like a bug somewhere (maybe in the driver). Try adding a small rotation (0.001 degrees type thing) and see if the problem goes away.
  3. Replies
    6
    Views
    7,078

    Re: How can we accelerate the vgDrawPath

    There should be no problems with doing vgCreatpath and vgAppendPathData from outside your render loop (that;s how it's supposed to be done, in fact).
    What does need to happen is the creates,...
  4. Re: how to make a specific image color transparent?

    Well, you will need to tell OVG which pixels are transparent. This means that you will need to set the alpha value (aka transparency) in the image. You can either do this yourself by modifying the...
  5. Replies
    3
    Views
    3,557

    Re: How interchangeable is OpenGL and OpenVG

    It wont work because, as you say, it is a separate state machine. Both Open GL and Open VG need to have their own contexts, and 2 contexts cannot be active at the same time. In GL contexts you can...
  6. Replies
    1
    Views
    3,365

    Re: differences between Open GL and Open VG

    You really should read the extract to the specs to get a feel for the APIs. Hard to do the topics justice in a few short sentences here.

    1) The different standards are aimed at solving different...
  7. Replies
    3
    Views
    4,589

    Re: Save image code from Desktop

    Your best bet is to download a library to do that for you.
    I recommend the FreeImage library from http://freeimage.sourceforge.net/
    or something similar.

    The alternative is to write it yourself....
  8. Replies
    2
    Views
    4,116

    Re: Coverage buffer

    Firstly, I will say the mandatory:
    The reference implementation is not made for speed. It's made for accuracy and picture quality.

    In fact, the reference implementation is about 2 orders of...
  9. Replies
    1
    Views
    3,506

    Re: Text on Image

    1)
    - Get Freetype. Use it to read ttf files.
    - make OpenVG path data out of that with Hybrid's old font2openvg.cpp code (or write your own). This will generate the glyph data in a format you...
  10. Replies
    5
    Views
    5,788

    Re: Basic help with displaying images

    Hard to say.
    Try setting the background color to something other than black before the vgDrawImage() call (like blue). That way:

    If the screen is black, something is drawing, and it's probably...
  11. Replies
    5
    Views
    5,788

    Re: Basic help with displaying images

    Several ideas...
    Well, for starters, the stride on your vgImageSubData() call is 0. I think it's probably 320 (or possibly greater?). This is causing you to load only the first line over and over...
  12. Replies
    4
    Views
    4,726

    Re: Masking problem

    If I had to guess (besides the obvious - "it's a driver bug"), I'd say you're drawing too quickly. What's probably happening is that each vgMask call is allocating a screen sized buffer for the...
  13. Replies
    2
    Views
    3,843

    Re: Directional Patterns

    You can rotate the pattern in a pattern paint through the paint matrices (VG_MATRIX_MODE).
    Generally speaking, if it's not scissoring rectangles, bounding boxes or masks, it can be rotated with VG.
  14. Replies
    3
    Views
    4,503

    Re: Perspective View

    1. the vgu functions are basically a shortcut to help create the projection matrices for you. If you made the matrices yourself [correctly], then you don't have to worry about it.

    2. As for...
  15. Replies
    3
    Views
    4,503

    Re: Perspective View

    Yeah, that's the best way to do it using OpenVG alone.
    The transformation matrix when using vgDrawPath() is always affine, so to get perspective you will have to render to a vgImage. The...
  16. Replies
    3
    Views
    4,931

    Re: Inquiry on OpenVG

    As far as I know, yes, OpenVG can support all the rendering states possible in SVG tiny (all the path styles, stroke styles, end caps, join styles, dashing, blend modes, paint types [i.e. gradients],...
  17. Replies
    3
    Views
    4,931

    Re: Inquiry on OpenVG

    SVG, as you probably know, is an XML based description language.
    OpenVG is a programming API.
    The OpenVG 1.0 spec was designed to easily implement applications which display SVG files which follow...
  18. Replies
    1
    Views
    3,930

    Re: What is the current state of OpenVG?

    Best to ask those vendors what their status is.
    Mesa has released an OpenVG driver recently.
    The Amanith driver may not have been updated recently (neither has the spec), but their implementation...
  19. Replies
    1
    Views
    3,764

    Re: vgDrawGlyphs behavior

    Ideally, you should expect the behavior stated in the spec. That being, the text positions being updated as if drawing had occurred, but no drawing took place.

    In reality... well... I have no...
  20. Replies
    5
    Views
    5,067

    Re: How to get lines of different colors?

    I've said this before (as recently as in the answer to your last post), but cramming everything in one giant vgPath is not a way to make things run faster. In fact, the opposite can easily happen.
    ...
  21. Replies
    5
    Views
    5,067

    Re: How to get lines of different colors?

    No. Use multiple paths (at least one per each color).
    I suppose if your lines are in a very regular pattern and not touching, it might be possible to construct a linear gradient to color them...
  22. Thread: CPU Usage

    by Ivo Moravec
    Replies
    2
    Views
    3,819

    Re: CPU Usage

    I don't know the amount.
    I do know it will probably depend greatly on a whole bunch of factors including:
    - line width
    - join styles
    - cap styles (especially if dashing is enabled)
    - number of...
  23. Replies
    1
    Views
    3,597

    Re: Global belnd with DrawImage

    To get that effect for images, use vgDrawImage() with mode VG_DRAW_IMAGE_MULTIPLY with the paint set to solid color (1,1,1,opacity).

    Alternatively, in VG 1.1, using VG_COLOR_TRANSFORM could also...
  24. Re: Need some input regarding drawing glyphs using vgdrawglyph

    A VGImage used as a glyph, is still an image, and works exactly the same way as a vgDrawImage(). [A VGFont just takes care of the placement details for you - the rendering is done internally...
  25. Replies
    15
    Views
    12,932

    Re: OpenGL + OpenVG

    No you can't share a context across different APIs. Internally, what a context is an instance of the current API state (everything from what paints are created and bound, to attributes like...
Results 1 to 25 of 115
Page 1 of 5 1 2 3 4