3D object rendering #11
Replies: 1 comment
-
Good question! I'll try to be brief as this eventually will (and should be) in the docs 😅 We absolutely can render 3D stuff in shaderflow, but not in the "traditional"/blender meshes sense. The scope of the project is rendering a fullscreen rectangle (the two coordinates you noticed) with everything done in a fragment shader (also the reason for the lack of camera matrices, no need in this case) It's very similar to what shadertoy.com offers, in fact, these most popular demos in the link are often 3d scenes. They use a technique called ray marching, where you mathematically define the scene based on distances to project the rays There's more resources in the Camera.py file of how the modeling works, but if you run *: Run From source, as I don't bundle demo scenes on pypi/releases) See how the uniforms pipeline at the left contains the camera position, basis and aux parameters :) Let me know if you have any further question, will move the issue to a discussion! |
Beta Was this translation helpful? Give feedback.
-
🔘 Request type
General feedback
🔘 Description
Hello,
Is it possible to render a 3d object using ShaderFlow ? I can see from the code that you only consider (x, y) as vertices, also, I don't see any camera projection matrix in the code. So I assume it is only for 2 objects. Correct me if I'm wrong.
Best,
Beta Was this translation helpful? Give feedback.
All reactions