We have a project that is using Chandler Prall’s CSG Plug-in ( https://github.com/chandlerprall/ThreeCSG ) however, this plug-in has not been updated in years. We would like to update all of our code to use BufferGeometry, however, the CSG Plug-in does not support it.
Has somebody already updated this plug-in to use BufferGeometry or is there an alternative plug-in for ThreeCSG, or would somebody like to fork that project and create a new one updated one with BufferGeometry support?
Or even better, how about adding CSG to Threejs … Babylon.js comes with CSG…
there’s nothing to it, honourable , just check out an earlier version of three.js, and copy the Geometry → BufferredGeometry conversion code from there.
Regarding your proposal of integrating CSG(Constructive Solid Geometry) into three.js - I don’t really believe it belongs in three.js, at least not in the main build. If you’re interested in contributing an example though - I would love to to see that, many people would find that useful!
There are a lot of earlier versions of ThreeJS… would you happen to know what version I should look at to find this? Would you be interested in updating the plug-in… I would even be willing to provide some compensation for the update and make the updated plug-in public… It doesn’t need to be part of the main build of ThreeJS, but if you could get it included as part of the official build, maybe as part of the official examples, or like the optional loaders, I do think it should be somehow connected to the official build so that it gets maintained. This is a very important feature… and something that Babylon.js has built-in ( which I just found out when I was searching for an updated solution for ThreeJS.)
Ha, you’re right! I mean that… if you have a piece of code that does CSG on Geometry (old three.js data) and you have a converter from Geometry to BufferGeometry - you’re golden
But to be honest, I see CSG everywhere, when I walk outside in the morning and see a tree - I immediately start thinking about how many smaller cubes needed to be subtracted from a very large cube to result in this marvel of nature, and then I go back home in the evening, since I tend to get pretty hungry at that point.
Here’s a list of the projects that have been suggested so far:
It doesn’t look like any of these support BufferGeometry currently (unless I missed something).
@3DFish, I’d say your best bet is to ask on the repos for those projects, and see whether the owners would consider converting them to use BufferGeometry. If you offer them a small fee they may be receptive, or they may even do it for free.
If that doesn’t work out, I would put the conversion of BufferGeometry in your app on the backburner for a month or so and see if there are any further developments. If not, then you will need to pay someone to convert one of these libraries.
I did another conversion of the madebyevan CSG library that ya’ll may find useful… it works with current three (103) and fixed some issues I had with the older module out there. It allows buffergeometries but only by converting them to geometries internally.
Hope this helps someone and feel free to give feedback/suggestions.