Jump to content

harold

Members
  • Posts

    366
  • Joined

  • Last visited

Posts posted by harold

  1. Is there really a tut about it? I searched but only found 'how to add new fonts' explained various times

    Uploading new fonts is a bit of a contradiction, to upload a font you must already have it (otherwise you have nothing to upload), so it wouldn't be new..

    Making a new font is something entirely different, and probably cannot be done with PDN

    Uploading a font work the same way as uploading any file, you can't usually upload them directly from Windows\Fonts though (gives "file can not be found") so you'd have to copy it to some place else (doesn't really matter where, but not in Windows\Fonts or Windows\assembly)

  2. how about drawing to a somewhat smaller render target first and then drawing (screen-aligned quad) that with pointsampling? that's a pixelation algorithm for free (well, free.. you would have to draw to a render target first..)

    simple, easy, no coding involved :)

    If you'd do it as fullscreen effect it would also require a render target - you have to sample neighboring pixels after all. It would also be harder since for each pixel you first have to find out what block they are in anyway (simply taking the average of 3 texels '1 pixel away' and the current one will only blur)

    edit: we are talking about hardware shaders here right? (not C# code)

  3. I just did a test with a 20000x10000 tiff file: I just made a white canvas of that size, saved it as tiff, and opened it again, strangely it turned into 152MB file even though the size-preview suggested it was going to be about 760MB (I guess it gets compressed). What's weirder, some random coloured vertical lines appeared on the picture, and some parts became transparent..

    I guess PDN doesn't like thing that big? (oh and it uses about 3GB RAM, on a picture that would be 763MB (10000x20000x4 / (2^20)) (where ^ is exponentiation, not xor))

×
×
  • Create New...