I DID IT, 3D RENDERER IN PYTHON
Posted by REMIZERexe@reddit | Python | View on Reddit | 12 comments
My own 3D renderer that can even render faces (not textures), I did it by 0 without any libraries such as OpenGL or other things, just Pygame. Ask questions if you want, I'm really glad of what I did :)
Python-ModTeam@reddit
Greetings from the r/Python mods!
Your post has been removed as it does not adhere to our Showcase post formatting requirements. To ensure clarity and quality, we require the following sections:
Please update your post to include these elements and feel free to resubmit. Thank you for your understanding and for contributing to r/Python!
tRfalcore@reddit
No one should download that exe
REMIZERexe@reddit (OP)
soo what I have to do to prove that it isn't a virus?
ProbsNotManBearPig@reddit
Provide the source code and instructions/scripts to let people build it themselves. Pretty simple.
tRfalcore@reddit
Nothing you can do to prove it. But I imagine the people here appreciate the code and could run the code themselves maybe
the_hoser@reddit
Where is the code?
REMIZERexe@reddit (OP)
Check now, I added the .py file
the_hoser@reddit
Alright. Just so you know, PyGame uses SDL2 under the hood, and SDL2 uses OpenGL for primitive drawing.
REMIZERexe@reddit (OP)
Oh ok, thanks, I didn't know.
the_hoser@reddit
No worries. They don't exactly spell it out.
So, you can do direct, no-opengl rendering with SDL2 using the SDL_Surface APIs, but keep in mind that this is REALLY SLOW. It's almost always faster to just draw to an in-memory buffer, then upload that buffer as a texture, and render a quad (2 triangles) in OpenGL mapped to that texture.
4Sci@reddit
Am I missing the code? I just see an executable.
REMIZERexe@reddit (OP)
Oh, um how to show the code?... I don't know how to use GitHub XD