Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Extending Curvy to make a Hallway editor.
#1
Brick 
Hello! I'm looking to make a hallway creation tool. 

I want to create as many hallways with branching paths as I want, and populate them with props and features.


I'm extruding along the splines, and flipping the triangles which forms functional hallways.

From here I'd like to have the meshes open up when intersecting, allowing me to create branching paths. (I'm connecting the CP's at the branch points)


Would you recommend making a custom node for this, or extending the core Mesh building functionality?



Pic related, I'd like the red tri's of the mesh to be gone, and a seam to be calculated between the two, and ideally rearrange the vertices to make a good hole.


Attached Files Image(s)
       
Reply
#2
Hi
What you are trying to achieve is something I would like to implement in Curvy Splines, but haven't done so so far. I didn't take the time to think about how to do it properly, but to answer your question, I would probably make a new module, that takes two volume meshes as input, and then do a boolean geometry subtraction between the two of them, and then outputs the modified meshes. I hope that there is an easy to use library to do such operations that could be included easily in a Unity's project.
Please keep me updated, privately or publicly as you prefer, about your progress. I might be interested in the results.
I hope I was helpful enough.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#3
(10-13-2021, 11:56 AM)_Aka_ Wrote: Hi
What you are trying to achieve is something I would like to implement in Curvy Splines, but haven't done so so far. I didn't take the time to think about how to do it properly, but to answer your question, I would probably make a new module, that takes two volume meshes as input, and then do a boolean geometry subtraction between the two of them, and then outputs the modified meshes. I hope that there is an easy to use library to do such operations that could be included easily in a Unity's project.
Please keep me updated, privately or publicly as you prefer, about your progress. I might be interested in the results.
I hope I was helpful enough.

Yeah! It gives me a direction to try. 

Do you have any advice, guides or gotchas on making custom modules?
Reply
#4
There is something about custom modules that will be fixed in version 8: The module template created via Project's window→Create→Curvy→CG Module does not call base.Refresh() in the Refresh method's override.

Other than that, there is no specific guide for this task. In addition to the comments in the class template, and the general tips found here: https://curvyeditor.com/documentation/extend/start , I would add the following:

Your inputs and outputs should be of type CGVolume. A module with such input type, to take as an example if needed, is the BuildVolumeMesh class. In its Refresh method, you can see how the input data is retrieved. The CGVolume class by itself is nothing crazy. Then at the end of the Refresh method, set the output data. That's basically it.

Let me know if you have more questions.
Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  What is the performance of Curvy in iOS/Android ? codehawk64 5 566 09-01-2021, 10:30 AM
Last Post: _Aka_
  Curvy 7.1.5 is live _Aka_ 0 176 08-20-2021, 03:40 PM
Last Post: _Aka_
  Curvy Spline can't export connection? Yang Yi 1 304 07-31-2021, 03:09 PM
Last Post: _Aka_
  ScanConnections() causes heavy load in play mode, even with all Curvy objects removed bennett 5 499 07-23-2021, 03:32 PM
Last Post: bennett

Forum Jump: