Abstract
Images in vector format are presented as a sequence of analytical descriptions of geometric objects. This approach allows for reproduction of the image in any resolution without loss of quality. Currently, there are no ready-made solutions for using vector images in GPU photorealistic rendering systems. This paper presents an approach to enabling such support using signed distance fields and rasterization as base methods. Analysis of the results shows the effectiveness of the approach based on distance fields for various vector images. However, in some cases, artifacts may appear, in which case it is proposed to use a rasterization-based approach.
Similar content being viewed by others
REFERENCES
Scalable Vector Graphics (SVG) Full 1.2 Specification, 2023. https://www.w3.org/TR/SVG12.
Tu, P., Wei, L.Y., and Zwicker, M., Clustered vector textures, ACM Trans. Graphics, 2022, vol. 41, no. 4, pp. 1–23. https://doi.org/10.1145/3528223.3530062
Noesis GUI, User Interface middleware for video-games and real-time applications, 2023. https://www.noesisengine.com.
Green, C., Improved alpha-tested magnification for vector textures and special effects, Proc. ACM SIGGRAPH, San Diego, 2007, pp. 9–18.
Orzan, A., et al., Diffusion curves: a vector representation for smooth-shaded images, ACM Trans. Graphics, 2008, vol. 27, no. 3, pp. 1–8. https://doi.org/10.1145/1360612.1360691
Li, T.M., et al., Differentiable vector graphics rasterization for editing and learning, ACM Trans. Graphics, 2020, vol. 39, no. 6, pp. 1–15. https://doi.org/10.1145/3414685.3417871
Reddy, P., et al., Im2vec: synthesizing vector graphics without vector supervision, Proc. IEEE/CVF Conf. on Computer Vision and Pattern Recognition, 2021, pp. 7342–7351.
Jain, A., Xie, A., and Abbeel, P., VectorFusion: Text-to-SVG by Abstracting Pixel-Based Diffusion Models, 2022. arXiv:2211.11319.
Sanzharov, V.V., Frolov, V.A., and Galaktionov, V.A., Survey of Nvidia RTX technology, Program. Comput. Software, 2020, vol. 46, no. 4, pp. 297–304.
Skia: the 2D graphics library, 2023. https://skia.org/.
Cairo, a 2D graphics library with support for multiple output devices, 2023. https://www.cairographics.org/.
Blend2d. 2D Vector graphics engine, 2023. https://blend2d.com/.
resvg, SVG rendering library, 2023. https://github.com/RazrFalcon/resvg.
OpenVG, the standard for vector graphics accelera-tion, 2023. https//www.khronos.org/openvg/.
OpenVG, conformant Products, 2023. https://www.khronos.org/conformance/adopters/conformant-products/openvg.
Kilgard, M.J. and Bolz, J., Gpu-accelerated path rendering, ACM Trans. Graphics, 2012, vol. 31, no. 6, pp. 1–10. https://doi.org/10.1145/2366145.2366191
Loop, C. and Blinn, J., Resolution independent curve rendering using programmable graphics hardware, Proc. ACM SIGGRAPH, Los Angeles, 2005, pp. 1000–1009. https://doi.org/10.1145/1186822.1073303
Ganacim, F., et al., Massively-parallel vector graphics, ACM Trans. Graphics, 2014, vol. 33, no. 6, pp. 1–14. https://doi.org/10.1145/2661229.2661274
Ray, N., Cavin, X., and Lévy, B., Vector texture maps on the GPU, Tech. Rep., Inst. ALICE (Algorithms, Comput., Geometry Image Dept. INRIA Nancy Grand-Est/Loria), 2005, no. ALICE-TR-05-003.
Qin, Z., McCool, M.D., and Kaplan, C.S., Real-time texture-mapped vector glyphs, Proc. Symp. on Interactive 3D Graphics and Games, Redwood City, CA, 2006, pp. 125–132. https://doi.org/10.1145/1111411.1111433
Chlumsky, V., Shape decomposition for multi-channel distance fields, Master’s Thesis, Czech Technical Univ., 2015. https://dspace.cvut.cz/bitstream/handle/10467/ 62770/F8-DP-2015-Chlumsky-Viktor-thesis.pdf.
Nehab, D. and Hoppe, H., Random-access rendering of general vector graphics, ACM Trans. Graphics, 2008, vol. 27, no. 5, pp. 1–10. https://doi.org/10.1145/1409060.1409088
Akenine-Moller, T., et al., Texture level of detail strategies for real-time ray tracing, in Ray Tracing Gems, Berkeley, CA: Apress, 2019. https://doi.org/10.1007/978-1-4842-4427-2_20
Qin, Z., McCool, MD., and Kaplan, C., Precise vector textures for real-time 3D rendering, Proc. Symp. on Interactive 3D Graphics and Games, Redwood City, CA, 2008, pp. 199–206. https://doi.org/10.1145/1342250.1342281
Vector images in public domain, 2023. https://www.publicdomainvectors.org.
Open Clipart, online media collection, 2023. https://openclipart.org/.
Sanzharov, V.V. and Frolov, V.A., Level of detail for precomputed procedural textures, Program. Comput. Software, 2019, vol. 45, no. 4, pp. 187–195. https://doi.org/10.1134/S0361768819040078
Author information
Authors and Affiliations
Corresponding authors
Ethics declarations
The authors declare that they have no conflicts of interest.
Rights and permissions
About this article
Cite this article
Sanzharov, V.V., Frolov, V.A. & Galaktionov, V.A. Supporting Vector Textures in a GPU Photorealistic Rendering System. Program Comput Soft 49, 131–139 (2023). https://doi.org/10.1134/S0361768823030040
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1134/S0361768823030040