Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Generator not drawing along spline
#1
I based my scene on the 21_CGExtrusion example included with the package. I'm trying to extrude a closed 2D/Circle input spline along a spline path. Everything is connected correctly in the Generator and the circle spline is on the XY plane but it doesn't extrude along the path it just seems to spin right around where the circle is placed (0, 0) relative to the parent plane everything is attached to. How do I get the mesh to generate along the spline attached as the input spline path?

(see attached images for reference)


Attached Files Thumbnail(s)
           
Reply
#2
From what I see from the images it should work this way. As no external input is involved, would you mind to attach the scene file? I'll have a look then.

Thanks
Jake
Reply
#3
(11-04-2015, 06:36 PM)Jake Wrote: From what I see from the images it should work this way. As no external input is involved, would you mind to attach the scene file? I'll have a look then.

Thanks
Jake

Thanks for the reply.

I actually figured it out by just digging into every setting. The path spline was scaled up when I moved it under the Unity Plane object (before creating the Generator), meaning the CPs were actually really close together but scaling made them look spread out. Apparently the spline translation isn't taken into account when generating verts, so it was using the local positions as if they were world space and creating a really tiny mesh. I can get around this by just creating the splines and meshes before moving them under Unity GameObjects but it would be nice if you could make it work both ways. Probably wouldn't take much to include the spline translation matrix when generating verts for the mesh. Actually, come to think of it, you might have to do a full parent matrix translation both ways.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Method of scattering objects along spline joebain 1 3 11-26-2024, 03:20 PM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 5 13 10-29-2024, 10:19 AM
Last Post: _Aka_
  I have to refresh generator manualy :( GameDeveloperek4123 4 13 10-07-2024, 05:36 PM
Last Post: _Aka_
  Bug: Save Generator Outputs still saves outputs if object is disabled curvymesher 1 3 08-30-2024, 09:19 AM
Last Post: _Aka_

Forum Jump: