AUDITOR DE CENAS 3D VIA SCRIPTS PYTHON
Resumo
O aumento do realismo em cenas 3D eleva o consumo de recursos de hardware, e sua otimização manual é suscetível a falhas humanas. Este trabalho automatizou o gerenciamento de memória de vídeo para a renderização no software Blender, por meio de uma extensão desenvolvida com sua API Python nativa, que descarta geometrias fora do enquadramento ou encobertas, simplifica objetos conforme sua distância à câmera e redimensiona texturas acima de um limite definido pelo usuário. A pesquisa é aplicada e explicativa, de abordagem quali-quantitativa, com estudo de caso em três cenas públicas da coleção oficial do Blender, avaliadas em sete condições, medindo-se a memória de vídeo no driver da placa, o tempo de renderização e a qualidade da imagem por PSNR e SSIM. A auditoria completa reduziu a memória entre 14,3% e 48,5% e o tempo em até 40,6%, com contribuição de cada técnica variável conforme a composição da cena. O redimensionamento de texturas não produziu perda perceptível, enquanto o descarte por enquadramento em ambiente fechado alterou reflexos e sombreamento da imagem. Conclui-se que a extensão reduz o consumo de recursos e que o diagnóstico por ativo, anterior à intervenção, é necessário para decidir o que otimizar em cada cena.
Biografia do(a) Autor(a)
Centro Universitário de Araraquara.
Graduado em Processamento de Dados pela FATEC (2009). Mestre e Doutor em Engenharia de Software pela USP (2014 e 2025). Possui MBA em Gestão de Pessoas, MBA em Gestão de Projetos e MBA em Data Science & Analytics. Atua como professor universitário há 11 anos e possui quase 20 anos de experiência na área de Tecnologia da Informação.
Economista, Bacharel em Direito, Mestre em Desenvolvimento Regional e meio ambiente pela Universidade de Araraquara-SP- UNIARA e Doutora em Alimentos e Nutrição pela FCFAr/ UNESP.
Referências
ACAMPORA, P. Python Scripting in Blender. Birmingham: Packt Publishing, 2023.
AKENINE-MÖLLER, T.; HAINES, E.; HOFFMAN, N. Real-Time Rendering. 4. ed. Boca Raton: CRC Press, 2018. DOI: https://doi.org/10.1201/b22086
ASSARSSON, U.; MÖLLER, T. Optimized View Frustum Culling Algorithms for Bounding Boxes. Journal of Graphics Tools, v. 5, n. 1, p. 9–22, 2000. DOI: https://doi.org/10.1080/10867651.2000.10487517
AZEVEDO, E.; CONCI, A. Computação Gráfica: Teoria e Prática. Rio de Janeiro: Elsevier, 2003.
BACKES, G. C.; FRASSON, A.; ENGEL, T. A.; POZZER, C. T. Rendering of Large Textures for Real-Time Visualization. In: SIMPÓSIO BRASILEIRO DE JOGOS E ENTRETENIMENTO DIGITAL, 16., 2017, Curitiba. Anais [...]. Porto Alegre: SBC, 2017. p. 638–641.
BLENDER FOUNDATION. Blender Python API Documentation. 2026a. Disponível em: https://docs.blender.org/api/current/ Acesso em: 20 maio 2026.
BLENDER FOUNDATION. Data-Blocks. Blender Manual, 2026b. Disponível em: https://docs.blender.org/manual/en/latest/files/data_blocks.html Acesso em: 29 jul. 2026.
BLENDER FOUNDATION. History. Blender Manual, 2026c. Disponível em: https://docs.blender.org/manual/en/latest/getting_started/about/history.html Acesso em: 21 jul. 2026.
BLENDER FOUNDATION. ID Datablocks. Blender Developer Documentation, 2026d. Disponível em: https://developer.blender.org/docs/features/core/datablocks/id_type/ Acesso em: 10 set. 2026.
BLENDER FOUNDATION. Demo Files, 2026e. Disponível em: https://www.blender.org/download/demo-files/ Acesso em: 10 out. 2026.
BLINN, J. F.; NEWELL, M. E. Texture and Reflection in Computer Generated Images. Communications of the ACM, v. 19, n. 10, p. 542–546, out. 1976. DOI: https://doi.org/10.1145/360349.360353
CHAOS GROUP. V-Ray for Blender – Texture Compression Documentation. 2023. Disponível em: https://docs.chaos.com Acesso em: 21 maio 2026.
CLARK, J. H. Hierarchical Geometric Models for Visible Surface Algorithms. Communications of the ACM, v. 19, n. 10, p. 547–554, out. 1976. DOI: https://doi.org/10.1145/360349.360354
CONLAN, C. The Blender Python API: Precision 3D Modeling and Add-on Development. Berkeley: Apress, 2017. DOI: https://doi.org/10.1007/978-1-4842-2802-9
COORG, S.; TELLER, S. Real-Time Occlusion Culling for Models with Large Occluders. In: SYMPOSIUM ON INTERACTIVE 3D GRAPHICS, 1997, Providence. Proceedings [...]. New York: ACM, 1997. p. 83–90. DOI: https://doi.org/10.1145/253284.253312
DUMONT, R.; PELLACINI, F.; FERWERDA, J. A. Perceptually-Driven Decision Theory for Interactive Realistic Rendering. ACM Transactions on Graphics, v. 22, n. 2, p. 152–181, abr. 2003. DOI: https://doi.org/10.1145/636886.636888
GARLAND, M.; HECKBERT, P. S. Surface Simplification Using Quadric Error Metrics. In: ANNUAL CONFERENCE ON COMPUTER GRAPHICS AND INTERACTIVE TECHNIQUES, 24., 1997, Los Angeles. Proceedings [...]. New York: ACM Press/Addison-Wesley, 1997. p. 209–216. DOI: https://doi.org/10.1145/258734.258849
GONZALEZ, R. C.; WOODS, R. E. Digital Image Processing. 4. ed. New York: Pearson, 2018.
GREENE, N.; KASS, M.; MILLER, G. Hierarchical Z-Buffer Visibility. In: ANNUAL CONFERENCE ON COMPUTER GRAPHICS AND INTERACTIVE TECHNIQUES, 20., 1993, Anaheim. Proceedings [...]. New York: ACM, 1993. p. 231–238. DOI: https://doi.org/10.1145/166117.166147
KHRONOS GROUP. NPOT Texture. OpenGL Wiki, [s.d.]. Disponível em: https://www.khronos.org/opengl/wiki/NPOT_Texture Acesso em: 3 set. 2026.
LUEBKE, D.; REDDY, M.; COHEN, J. D.; VARSHNEY, A.; WATSON, B.; HUEBNER, R. Level of Detail for 3D Graphics. San Francisco: Morgan Kaufmann, 2003. DOI: https://doi.org/10.1016/B978-155860838-2/50009-1
LUTZ, M. Learning Python. 5. ed. Sebastopol: O'Reilly Media, 2013.
MITCHELL, D. P.; NETRAVALI, A. N. Reconstruction Filters in Computer Graphics. In: ANNUAL CONFERENCE ON COMPUTER GRAPHICS AND INTERACTIVE TECHNIQUES, 15., 1988, Atlanta. Proceedings [...]. New York: ACM, 1988. p. 221–228. DOI: https://doi.org/10.1145/54852.378514
POLIJUNIOR. O que é Python: Guia Definitivo da Linguagem. 2025. Disponível em: https://polijunior.com.br/blog/oqueepython/ Acesso em: 21 jul. 2026.
PRESSMAN, R. S. Engenharia de Software: Uma Abordagem Profissional. 8. ed. Porto Alegre: AMGH, 2014.
PYTHON SOFTWARE FOUNDATION. Estendendo o Python com C ou C++. 2026a. Disponível em: https://docs.python.org/pt-br/3/extending/extending.html#reference-counts Acesso em: 28 jul. 2026.
PYTHON SOFTWARE FOUNDATION. Python Geral. 2026b. Disponível em: https://docs.python.org/pt-br/3/faq/general.html Acesso em: 26 jul. 2026.
TORRALBA, A.; ISOLA, P.; FREEMAN, W. T. Foundations of Computer Vision. Cambridge: MIT Press, 2024.
VAN LOMMEL, B. Cycles Texture Cache. Blender Developers Blog, 1 maio 2026. Disponível em: https://code.blender.org/2026/05/cycles-texture-cache/ Acesso em: 17 ago. 2026.
WILLIAMS, L. Pyramidal Parametrics. Computer Graphics, v. 17, n. 3, p. 1–11, jul. 1983. DOI: https://doi.org/10.1145/964967.801126
