radiatoryang / hedera

paint 3D ivy in the Unity Editor, watch procedurally generated meshes simulate growth and clinging in real-time
GNU General Public License v2.0
783 stars 64 forks source link

Export to OBJ not working #17

Open Leonidas300 opened 2 years ago

Leonidas300 commented 2 years ago

Hi, At the start I wannt to say that this plugin is awesome. I have an issue with exporting to obj. Don't know why, when I press that obj button it ask to hide/delete or not instantiate but when I pressed any of them it saves empty object. Maybe I'm missing something here. My Unity version is 2020.3.4f1.

radiatoryang commented 2 years ago

Sadly I can't reproduce this on Unity 2021.2.0f1 ... OBJ export still seems to work OK for me. I was able to paint new ivy and export + import to OBJ successfully.

Leonidas300 commented 2 years ago

There is no error and the file is created, message is showing in console like you mention it, but when i put it to the scene by hand or when it asks to replace current instance with obj file the object is just an empty gameobject.

radiatoryang commented 2 years ago

Can you upload some kind of project folder or small minimal repro project so I can download and investigate? Sorry I have no idea what's wrong.

Leonidas300 commented 2 years ago

Ok, I will do it this evening.

Leonidas300 commented 2 years ago

Ok so I created empty project and there is the same thing. I uploaded it to box.com, here is the link: https://app.box.com/s/a92uym4wdliycdtivmtjy2t2ben7umdk

radiatoryang commented 2 years ago

Thanks. I've downloaded it but I'm currently busy with other work, hopefully I'll get around to this in a week or two.

I do have one suspicion though: if your OS is set to a locale or region that uses comma separators for decimal numbers, there might be a problem with serialization / numbers. In English-speaking countries / US region (which is what I dev on), it would use periods for decimal separators. When I have time, I'll investigate this.

image

Leonidas300 commented 2 years ago

OK, thanks. I will check that setting.