LukasKuppers / unity-spline-extrusion

A simple script that extrudes a mesh along a Spline in Unity
12 stars 1 forks source link

somehow doesn't work ... #1

Open RensbourroTaki opened 4 months ago

RensbourroTaki commented 4 months ago

Hi!

I tried to use your spline extrusion scripts, but it somehow doesn't work with the latest Unity 2022.x LTS and Spline Package version 2.5.2 I added the spline container, created a spline, added your script, then a mesh filter and mesh renderer but no extrusion is happening. The mesh filter doesn't make sense at all, because it doesn't recognize anything given by the extrusion script. Btw the axis would not be a problem, because you would see anything anway. However, you have a axis switcher integrated too, but no effect at all.

I found a different solution at the asset store.

LukasKuppers commented 4 months ago

Hey, sorry about the late reply.

If you want I can share an example project that uses the script so you can see how it works. I didn't thoroughly test the script, so there's definitely a chance that it includes a bug.

LukasKuppers commented 4 months ago

Hey,

Glad you got it working!

I threw that script together pretty quickly, so I'm not surprised if it has some issues haha.

I'm open to improving this, adding more features, and releasing it for free on the asset store - based on your experience do you think there would be significant interest in that?

On Sat, Apr 6, 2024 at 9:04 AM RensbourroTaki @.***> wrote:

I got it! xD Now the best is.. I rotated it many times again, and came to the same rotation, but this time it worked? xD Idk why! Thank you for this script! It helps me to get along with the development of the game!

3dsmaxShape.PNG (view on web) https://github.com/LukasKuppers/unity-spline-extrusion/assets/123490511/4e4d2a4d-f040-4b23-9e55-add3bc0d46d6 splinemesher.PNG (view on web) https://github.com/LukasKuppers/unity-spline-extrusion/assets/123490511/16db0ad7-cf08-4f8b-bd67-9dcfe35aa23a

— Reply to this email directly, view it on GitHub https://github.com/LukasKuppers/unity-spline-extrusion/issues/1#issuecomment-2041126151, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANOBY4AJYMKAHJPOI74WAWDY4AMITAVCNFSM6AAAAABFU6ZTN6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGEZDMMJVGE . You are receiving this because you commented.Message ID: @.***>

RensbourroTaki commented 4 months ago

I'm sorry for deleting all my comments here, I didn't mean to bother you any further. 😬

However, regarding your question:

There is actually no spline mesh extrusion tool in the asset store that doesn't cost something. Most of them even a fortune! 50 to 80,-. I own them all. 🙄 And only one of them supports Unity's official spline system and that is spline mesher for Euro 19,-. And regarding the fact that you want to enhance the tool and give it away for free would be definitely be a reason for the people to download yours. I would just call it something like Unity's Spline Custom Mesh Extruder, so that it's clear that the Unity spline system is supported! I for example don't like external spline solutions. Some of them are pretty complicated. For example Mega Shapes & Dreamteck Splines, and these are expensive packages. So I'm pretty sure your free and improved solution can lead to a large number of downloads over time.

And I don't know how far you want to improve it, but there is a lot that can be done, and its even that hard for someone like you, I guess. If you need a few tips for improvements, I'm always happy to help. Just let me know.

pevas commented 4 months ago

Hi Lukas, I was looking for a script that just adds the extrusion to Unity Splines so the way you did it is perfect. It lets people stick with the core package and just adds a useful functionality on top rather than migrate to a new and complicated 3rd party asset. Unfortunately also for me it is not displaying anything. Would be greatful for the demo project! Thanks.

LukasKuppers commented 4 months ago

Did you enter play mode? The script only generates the mesh on Awake, so it won't be visible in edit mode.

pevas commented 4 months ago

Yes of course, I also tried different meshes (like tracks and fences) and settings but to no avail. If the demo scene would be too much work maybe if you could upload just the example mesh and I'll try with that and report. Thanks.

On Fri, Apr 26, 2024, 01:29 Lukas Kuppers @.***> wrote:

Did you enter play mode? The script only generates the mesh on Awake, so it won't be visible in edit mode.

— Reply to this email directly, view it on GitHub https://github.com/LukasKuppers/unity-spline-extrusion/issues/1#issuecomment-2077579642, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC5AMSGCOTCBUJ5RRVNAM7TY7EONXAVCNFSM6AAAAABFU6ZTN6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZXGU3TSNRUGI . You are receiving this because you commented.Message ID: @.***>

LukasKuppers commented 4 months ago

I should be able to provide a demo scene in reasonable time. Ill comment here when I do.

pevas commented 2 months ago

Any chance for this? At least the mesh that was used would be good to see if I'm just making an error when creating that. Thanks

LukasKuppers commented 2 months ago

Hey! Sorry, totally forgot about this!

I have a little prototype project that uses the scirpt: unity-rts-logging-game There's other stuff in there too but if you look around you should find it. Keep in mind that the mesh will only be generated once you enter play mode.