Planetside Software Forums

Support => Terragen Support => Topic started by: Asterlil on January 30, 2020, 06:27:57 PM

Title: Obj node attached to unrelated parts shader
Post by: Asterlil on January 30, 2020, 06:27:57 PM
Hi everybody,

I have two objects, a kayak and a motorboat in a rather large scene, lots of other objects and populations, but these two have me puzzled. You can see how they appear in the attached images. Both objects have been laundered through PoseRay. What's more, I'm not actually having any problems working with the motorboat object, adjusting its shaders, position or whatever. It just bugs me that this is happening...  :(

Advice and criticism needed.
Title: Re: Obj node attached to unrelated parts shader
Post by: Asterlil on January 31, 2020, 02:10:28 AM
I was wrong about there being no connection. If I move the kayak, the motorboat moves accordingly.
Title: Re: Obj node attached to unrelated parts shader
Post by: Dune on January 31, 2020, 02:20:56 AM
So they are two objects, and you put the boat inside the kayak... interesting. And it's on purpose, I suppose, just to have them move synchronously?
Title: Re: Obj node attached to unrelated parts shader
Post by: Tangled-Universe on January 31, 2020, 03:09:11 AM
If you click on any of the + -symbols next to kayak you will see motorboat.obj show up eventually.
In the end .tgd files are XML-files and structure/reference of elements or objects is very flexible.
It's just organised text references.
You basically told TG that the motorboat.obj is organised to be inside the kayak object, but besides the discrepancy in the way that information is presented there's nothing noteworthy happening or noteworthy of doing so. If you open this project again a few years later, this will have you puzzled again :P

Quote from: Dune on January 31, 2020, 02:20:56 AMSo they are two objects, and you put the boat inside the kayak... interesting. And it's on purpose, I suppose, just to have them move synchronously?

No unfortunately "tethering" of objects this way does not work. Tethering of objects has been requested a few times in the past.
In this setup the coordinates of motorboat.obj will still decide its position.
Title: Re: Obj node attached to unrelated parts shader
Post by: Dune on January 31, 2020, 04:49:23 AM
Quote from: Asterlil on January 31, 2020, 02:10:28 AMIf I move the kayak, the motorboat moves accordingly.
This what he says....
Title: Re: Obj node attached to unrelated parts shader
Post by: Tangled-Universe on January 31, 2020, 05:28:30 AM
Oh yes you're right... Interesting!
That would be great that I'm wrong.

So what happens if we place populations inside an object?
Title: Re: Obj node attached to unrelated parts shader
Post by: Hannes on January 31, 2020, 08:01:18 AM
Holy cow, is this really some sort of accidental grouping? I'll have to test this immediately!
Title: Re: Obj node attached to unrelated parts shader
Post by: Hannes on January 31, 2020, 08:20:26 AM
Hmm, I just tested it and imported two objects. I moved one object into the shader network of the other one. I had to reset the preview until the object inside the other one appeared in the preview again. It renders correctly, but if I move the first object, the second one stays in place. >:( 
Asterlil, is there something different in your setup?
Title: Re: Obj node attached to unrelated parts shader
Post by: Tangled-Universe on January 31, 2020, 09:45:22 AM
Quote from: Hannes on January 31, 2020, 08:20:26 AMHmm, I just tested it and imported two objects. I moved one object into the shader network of the other one. I had to reset the preview until the object inside the other one appeared in the preview again. It renders correctly, but if I move the first object, the second one stays in place. >:(
Asterlil, is there something different in your setup?

That's exactly what I thought should happen and would happen.
Would still be interesting to see I'm wrong, since I share your enthusiasm for these possibilities.
Title: Re: Obj node attached to unrelated parts shader
Post by: cyphyr on January 31, 2020, 10:26:56 AM
Yes, the first thing I tested this morning and I couldn't get the grouping/parenting/tethering to work.

One of Terragens long requested features.
Title: Re: Obj node attached to unrelated parts shader
Post by: Hannes on January 31, 2020, 11:48:07 AM
So, Asterlil, what did you do, to make the motorboat move with the kayak?
Title: Re: Obj node attached to unrelated parts shader
Post by: Asterlil on January 31, 2020, 02:05:35 PM
I did not do this on purpose, I assure you all! I imported the kayak, checked all the shaders as usual, then imported the motorboat, and found the situation as described above.

This morning I deleted them both, and imported the motorboat with no problems. Then I imported the kayak. Again, no anomalies. Then I imported another object, and lo! It got stuck in with the kayak's shaders. So the kayak is the problem. It has a strange shader called "None" that I have been unable to track down in Blender (in uvimages list, regular materials list,or orphan data). You can't delete materials in PoseRay. I'm going to throw the model obj out and start from scratch because that "None means there's something I haven't attached a material to in the blender file, and I can't find the guilty mesh.  >:(

Incidentally, I am having a wretched time with the net today, with timeouts, drop outs, and assorted other errors. I live in a nursing facility with a public wifi whose password hasn't been changed in 7 years. Seven years! We're probably being used to launch all those denial of service attacks I'm hearing about. :-\ So I apologize for any tardy responses.
Title: Re: Obj node attached to unrelated parts shader
Post by: Oshyan on January 31, 2020, 04:11:28 PM
I would guess some kind of node naming collision is occurring due to the shader(s) named "none" and it's somehow causing an odd entanglement. Surprising result though. Do both objects show up in previews and/or renders, and both move together and render in the new position once moved?

- Oshyan
Title: Re: Obj node attached to unrelated parts shader
Post by: Asterlil on January 31, 2020, 04:49:13 PM
The kayak is acting as some kind of parent to the next object to be imported. Obj #2 can be moved independently, but any translation of the kayak causes the child on to move with it.

And both objects show up in renders.
Title: Re: Obj node attached to unrelated parts shader
Post by: cyphyr on January 31, 2020, 05:35:00 PM
Could you share a stripped down tgd, we can easily replace with proxy objects,
It woulb be facinating to get to the bottom of this.

by the way if you open up the tgd file in note pad or similar and do a search for "None" you should be able to delete the offending node.
Title: Re: Obj node attached to unrelated parts shader
Post by: Hannes on January 31, 2020, 05:51:28 PM
Please keep this file!!!!!!
Even if it's all accidentally, there has to be a way to extract a way to group objects. If it works in your file, why not in others?
Man, I'm really excited !!!! ;D ;D ;D
Title: Re: Obj node attached to unrelated parts shader
Post by: WAS on January 31, 2020, 05:54:14 PM
Quote from: cyphyr on January 31, 2020, 05:35:00 PMCould you share a stripped down tgd, we can easily replace with proxy objects,
It woulb be facinating to get to the bottom of this.

by the way if you open up the tgd file in note pad or similar and do a search for "None" you should be able to delete the offending node.
I agree with Cyphyr. While this may technically be an exploit, a "parent" object could be used for object grouping if we can diagnose the reason. Though does it really preview and render right? I'd imagine with naming confliction, parts may not call right. Huh
Title: Re: Obj node attached to unrelated parts shader
Post by: Asterlil on February 01, 2020, 01:40:22 AM
The kayak and motorboat tgo files zipped down to 13 MB each; I'm assuming that you need the objects in order to properly use the tgd file in which I placed them? The tgd itself I stripped to the bone except for a couple of surface shaders and the two boats.

But the boats themselves exceed the upload limit.  :-[ Please advise.

I fixed the problem, incidentally -- finally scrubbed the blender file clean, exported the obj, put it through PoseRay, imported it into the TG file, and imported something else after it with no accidental grouping. That was kayak5; kayak3 is the troublemaker, and is the one I zipped.
Title: Re: Obj node attached to unrelated parts shader
Post by: Dune on February 01, 2020, 01:51:56 AM
Upload it to some dropbox, if not here, possibly. Or edit in Poseray, so all heavy stuff is off that kayak, just leaving the important bits.
It seems to be working like the parenting in DAZ too, where you parent an imported object, say to a horse's head and it moves along with it. Would be cool if this can be stripped down to a working solution, just adding a zero object in Poseray or whatever and linking an imported second object to it ::)
Title: Re: Obj node attached to unrelated parts shader
Post by: Asterlil on February 01, 2020, 12:43:22 PM
See if this will work for you. I created a shared dropbox last night with what I hope are all the relevant files, but my pathetic public wi-fi wouldn't let me create a link until this morning.

https://www.dropbox.com/sh/m4gsneex3foisiw/AAAY6lWlm5lhUeHjbbZh1ge-a?dl=0 (https://www.dropbox.com/sh/m4gsneex3foisiw/AAAY6lWlm5lhUeHjbbZh1ge-a?dl=0)

[moderator: fixed link]
Title: Re: Obj node attached to unrelated parts shader
Post by: Hannes on February 01, 2020, 01:03:19 PM
Thanks, but that link doesn't seem to work. If I click directly on it, nothing happens, and copying the link and pasting it leads me to Google.
Title: Re: Obj node attached to unrelated parts shader
Post by: Kadri on February 01, 2020, 01:05:53 PM
I had the same problem. I first highlighted it and then after copying and pasting into the address bar it worked.
Title: Re: Obj node attached to unrelated parts shader
Post by: WAS on February 01, 2020, 01:07:02 PM
He accidentally wrote in the URL tag for the actual URL, but the title of the URL was left as the actual link. Oops. :P

https://www.dropbox.com/sh/m4gsneex3foisiw/AAAY6lWlm5lhUeHjbbZh1ge-a?dl=0 (https://www.dropbox.com/sh/m4gsneex3foisiw/AAAY6lWlm5lhUeHjbbZh1ge-a?dl=0)
Title: Re: Obj node attached to unrelated parts shader
Post by: Hannes on February 01, 2020, 01:10:47 PM
Ah cool! Thanks. Downloaded it, and will test asap!!
Title: Re: Obj node attached to unrelated parts shader
Post by: Tangled-Universe on February 01, 2020, 01:42:06 PM
He? Be gentle to the very few women here :)
Title: Re: Obj node attached to unrelated parts shader
Post by: Asterlil on February 01, 2020, 02:17:50 PM
At my age, I wasn't going to make an issue of it. ;D We're all just entities here!

Sorry about the messed-up link. I didn't test it. The wifi was so bad earlier this morning that I was grateful to be able to post it at all.
Title: Re: Obj node attached to unrelated parts shader
Post by: WAS on February 01, 2020, 03:02:57 PM
Quote from: Asterlil on February 01, 2020, 02:17:50 PMWe're all just entities here!

Sorry about that, good note to know.

Yep, usernames do that. Gender icon is useless at my resolution. Just a gray blob. Lol Could be coloured.
Title: Re: Obj node attached to unrelated parts shader
Post by: Hannes on February 01, 2020, 03:52:43 PM
Oh boy!  ;D ;D ;D

Honestly, I wasn't aware we have gender signs here. Just didn't see it. 
However, my "Man" wasn't meant for someone particular. 
Maybe a bit like "holy cow!"



...and I don't think we have religous livestock here...  ;)
Title: Re: Obj node attached to unrelated parts shader
Post by: Kadri on February 01, 2020, 04:06:20 PM
"gender signs"...i didn't know it too  :)
Title: Re: Obj node attached to unrelated parts shader
Post by: Tangled-Universe on February 01, 2020, 06:15:23 PM
I was just teasing a bit guys :)
Title: Re: Obj node attached to unrelated parts shader
Post by: Hannes on February 01, 2020, 07:01:30 PM
;D ;D ;D 
By the way, before I went to work, I opened the file, and there were some errors about missing objs. The included objects are tgos, and I couldn't get any further, even after I replaced the missing objs by the tgos.
I didn't have more time for further testing, so any success by you, boys and girls?  ;) ;D
Title: Re: Obj node attached to unrelated parts shader
Post by: Asterlil on February 02, 2020, 12:01:23 AM
I look forward to hearing from you all as to whether my screwup with the models has led to something usable. :D
Title: Re: Obj node attached to unrelated parts shader
Post by: Dune on February 02, 2020, 01:57:15 AM
Same here.
Title: Re: Obj node attached to unrelated parts shader
Post by: Hannes on February 02, 2020, 08:06:00 AM
Maybe you could try to upload the original objs, so that the scene loads instantly without error messages?
Title: Re: Obj node attached to unrelated parts shader
Post by: Asterlil on February 02, 2020, 12:41:23 PM
They are uploaded. They will expect to be in the same folder as their respective textures.  8)
Title: Re: Obj node attached to unrelated parts shader
Post by: Hannes on February 02, 2020, 03:00:41 PM
Cool, thanks!
Title: Re: Obj node attached to unrelated parts shader
Post by: Asterlil on February 02, 2020, 11:47:11 PM
p.s. I added a few other objects for free, in the dropbox folder. All made by me, for the public domain.
Title: Re: Obj node attached to unrelated parts shader
Post by: Hannes on February 03, 2020, 12:40:38 AM
Thanks again, I'll have a look asap. :)
Title: Re: Obj node attached to unrelated parts shader
Post by: Hannes on February 03, 2020, 10:13:59 AM
I just tested your file. If I move the kayak, the motorboat (unfortunately) doesn't move accordingly. It stays where it is. Did you do anything different?
Title: Re: Obj node attached to unrelated parts shader
Post by: Asterlil on February 03, 2020, 12:27:09 PM
As I recall, I was trying to adjust the position of the kayak so that it would be resting on the  ground, and noticed that the motorboat was moving in tandem with the kayak along the Y axis. I was actually changing the numbers in the side panel, not using the manipulator directly on screen. ???
Title: Re: Obj node attached to unrelated parts shader
Post by: Hannes on February 05, 2020, 02:16:47 AM
Quote from: Asterlil on February 03, 2020, 12:27:09 PMI was actually changing the numbers in the side panel, not using the manipulator directly on screen.
Nope. The motorboat stays in place unfortunately. What a pity... :(
Title: Re: Obj node attached to unrelated parts shader
Post by: Dune on February 05, 2020, 02:21:35 AM
Terrible disappointment :(