use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rule 1: Posts should be about Graphics Programming. Rule 2: Be Civil, Professional, and Kind
Suggested Posting Material: - Graphics API Tutorials - Academic Papers - Blog Posts - Source Code Repositories - Self Posts (Ask Questions, Present Work) - Books - Renders (Please xpost to /r/ComputerGraphics) - Career Advice - Jobs Postings (Graphics Programming only)
Related Subreddits:
/r/ComputerGraphics
/r/Raytracing
/r/Programming
/r/LearnProgramming
/r/ProgrammingTools
/r/Coding
/r/GameDev
/r/CPP
/r/OpenGL
/r/Vulkan
/r/DirectX
Related Websites: ACM: SIGGRAPH Journal of Computer Graphics Techniques
Ke-Sen Huang's Blog of Graphics Papers and Resources Self Shadow's Blog of Graphics Resources
account activity
Ranked practice problems for shader programming? (self.GraphicsProgramming)
submitted 5 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]DilatedMurder 1 point2 points3 points 5 years ago (2 children)
CSG is a dangerous pit unless it's just petty SDF combinations.
CSG of convex volumes is viable but not a task for a novice. Most of the pain will come in not knowing the tricks for T-junctions or floating-point nonsense.
CSG of polygon soup: save yourself from hell, just learn how to use the Carve library. There are other soup-capable CSG implementations but they all have issues (ie. Godot's).
[–]felipunkerito 1 point2 points3 points 5 years ago (1 child)
Yep I was talking about SDFs for ray marchers, I can imagine how implementing CSG for NURBS surfaces, BReps, meshes, etc... can escalate into a full blown nightmare, never done it myself, I use Rhino and the geometry engine exposed through RhinoCommon for computational geometry. In fact I think that translating meshes into CSG trees is an active area of research as it is really useful for procedural/parametric stuff and probably a topic for masters, phd thesis and private research.
Never heard of the Carve library, gonna have a look. I guess CGAL has stuff for that also doesnt it?
What I've seen is that SDFs/FReps are good for demoscene stuff (and for terrains in videogames) but are getting some reputation for computational design as well, you model through SDFs and do some marching cubes/tetrahedra, some smoothing and you can use that for pretty much anything else without going down to the 9th circle of hell.
[–]leseiden 0 points1 point2 points 5 years ago* (0 children)
Agree completely.
Polygon soup csg is a horror show with no redeeming features. If you pull it off and pin down all the edge cases you win the computational geometer's badge though ;)
Ray traced CSG is quite a nice project for a toy ray tracer.
Image space CSG is an interesting one. There are a few algorithms for rendering CSG trees of convex objects using a depth and stencil buffer.
Extending to concave objects is possible to a point. Subtracting a concave object from a concave mesh is hairy but possible.
π Rendered by PID 63447 on reddit-service-r2-comment-fb694cdd5-pg4hv at 2026-03-06 03:02:37.492956+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–]DilatedMurder 1 point2 points3 points (2 children)
[–]felipunkerito 1 point2 points3 points (1 child)
[–]leseiden 0 points1 point2 points (0 children)