LiveDB materials randomly losing sync with images

Newtek Lightwave 3D (exporter developed by holocube, Integrated Plugin developed by juanjgon)

Moderator: juanjgon

User avatar
juanjgon
Octane Plugin Developer
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

I'm trying to reproduce the problem ... I hope to have good news as soon as possible.

-Juanjo
User avatar
juanjgon
Octane Plugin Developer
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Guys, I am going to need something to reproduce this problem here, because I can't figure how it can be possible :(

A good clue could be to know the image paths after the broken links ... what can you see in the texture paths, and what path should be the right ones?

Thanks,
-Juanjo
Attachments
image-001241.jpg
vs_matt
Licensed Customer
Posts: 9
Joined: Fri Sep 10, 2010 1:05 am
Location: London
Contact:

I've done some quick tests here but haven't managed to reproduce as yet.

When it loses connection with the images the paths are completely empty in the Octane node viewer (as below). You can recreate that just by moving one of the LiveDB textures into another folder.
Attachments
screengrab2.jpg
Matt Knott / VERSUS
http://www.versus.nu
vs_matt
Licensed Customer
Posts: 9
Joined: Fri Sep 10, 2010 1:05 am
Location: London
Contact:

Thinking aloud - does LW ever move images when you save objects (either through layout or through modeler/hub)? Just wondering if it maybe LW moving them to another subfolder when you update a model...
Matt Knott / VERSUS
http://www.versus.nu
User avatar
juanjgon
Octane Plugin Developer
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Nope, LW doesn't move the images while saving the objects or the scene. The issue must be related to a change in the path reported by the LW SDK as image content folder, but I can't figure how this path can change inside a project if the user doesn't change it.

I'm going to make more tests here while working in the next plugin build, that I want to release next week, to try to reproduce the problem.

Thanks for your patience,
-Juanjo
User avatar
juanjgon
Octane Plugin Developer
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Ok. I've found a really weird behavior in LightWave that can explain the problem with the broken LiveDB texture paths.

At least here, if I load an image (using for example the image editor) from a folder outside the current content directory, LightWave changes the "Images" content folder automatically to the path of this image without notice.

This is what is breaking the LiveDB texture paths. They are stored internally using relative paths, and this change made by LightWave in the "Images" content folder without notice, destroys the texture full path.

Attached you can see what happens, and not only with the images ... loading objects from outside the content folder also changes the "Objects" directory path.

I think that the solution is going to be to use the absolute content folder as base path for the LiveDB textures ... the problem can be that after this change, the current materials available in old scenes will be broken, but I am not sure how to fix this problem without this change. Really I don't understand why LightWave has this behavior, that is not logic at all :(

Thanks,
-Juanjo
Attachments
image-001250.jpg
image-001250.jpg (28.25 KiB) Viewed 3504 times
image-001249.jpg
image-001249.jpg (30.4 KiB) Viewed 3504 times
User avatar
juanjgon
Octane Plugin Developer
Posts: 8867
Joined: Tue Jan 19, 2010 12:01 pm
Location: Spain

Ok. I've fixed this problem referencing the LiveDB textures to the main content folder, that is not changed by LW each time you load an image file.

The drawback is that the old LiveDB materials are going to lose the texture paths. I'm sorry for that, but really I cant figure how to fix this problem without break the old LiveDB material nodes. At least all should work fine from now on. It was a plugin design problem on my side due to not be aware about this weird and unwarranted LightWave behavior with the content subfolders, that IMHO should be always fixed along the project if the user doesn't change them.

Please, test it in the upcoming build and let me know if you find new problems with this feature.

Thanks,
-Juanjo
BorderLine
Licensed Customer
Posts: 291
Joined: Sun Mar 24, 2013 5:30 pm

Thanks !
vs_matt
Licensed Customer
Posts: 9
Joined: Fri Sep 10, 2010 1:05 am
Location: London
Contact:

Great thanks Juanjo.
Matt Knott / VERSUS
http://www.versus.nu
BorderLine
Licensed Customer
Posts: 291
Joined: Sun Mar 24, 2013 5:30 pm

Thanks Juanjo, work fine now !
Post Reply

Return to “Lightwave 3D”