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
Information Common reasons why your spline gizmo is invisble _Aka_ 0 0 05-20-2022, 03:56 PM
Last Post: _Aka_
  Connect two spline at runtime Doomchecker 2 6 05-18-2022, 04:12 PM
Last Post: Doomchecker
Exclamation Runtime error when using Curvy Generator with Game Object Deform studentloan 3 10 04-22-2022, 09:00 PM
Last Post: _Aka_
Bug No demos running without exception with IL2CPP with Curvy Spline 8 studentloan 10 14 04-22-2022, 08:52 PM
Last Post: _Aka_

Forum Jump: