Vectors are just a scale-invariant source of raster textures, which ship storage, wire, and render cheaper. You just render the vector before you start. With a vector format you must perform some non-zero cost intermediate step Raster images are shipped in GPU-friendly formats (DXT, ASTC, etc.)īut then in your need to teach, you went on to lecture about things that aren't even slightly related to what I actually said. You even sort of quasi-admit that I'm right, by saying That has nothing to do with the protest that I actually made - that PNG is a ridiculous format for computer graphics, because it's too time intensive to decode it Yeah, you've basically just skipped over my specific criticism of the PNG format, and substituted raster formats, which don't suffer any of my criticismsĬonsider a simple operation like texturing That being said, in general debate between raster and vector, raster formats do have benefits over vector formats. In practice regardless of whether the artist sends over a PNG or SVG you're probably going to rasterize and feed it to the GPU in a separate format anyways. There's also smaller wins like the ability to anti-alias your raster images offline, though there's nothing worth altering your asset pipeline. rasterizing your vector image before you use it, either offline or at runtime). With a vector format you must perform some non-zero cost intermediate step (e.g. Consider a simple operation like texturing - your fragment shader wants to operate pixel by pixel and it's trivial to do when sampling each pixel directly from a rasterized texture. I have never seen PNG used in production, raster images are shipped in GPU-friendly formats (DXT, ASTC, etc.) so the optimization of the source format has no impact on the final game. O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.If you can think of a time when PNG is "more optimized" than SVG, and you feel that what you say isn't going to get the response "that has nothing to do with optimization," please tell me what that time is. Get After Effects for Flash | Flash for After Effects: Dynamic Animation and Video with Adobe® After Effects® CS4 and Adobe® Flash® CS4 Professional now with the O’Reilly learning platform. For example, EPS and SWF are usually vector-based but can contain a mixture of raster and vector graphics.Īdobe Photoshop is often used to create and edit raster graphics, although it has some vector capabilities Adobe Illustrator is often used to create vector graphics. Confusing things a bit is that these formats sometimes “blend” and support both. Common vector formats are AI, EPS, SVG, and SWF. That data can be stored in two main formats: raster (sometimes called bitmap or pixel-based) and vector.Ĭommon raster formats include PSD, JPEG, PNG, MOV, GIF, and TIFF. Computers identify graphics as data stored in a file. People think of graphics as images: a company logo, a smiling child, a beautiful sunrise, and so on.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |