Problem with density shader.

Started by Kevin F, December 21, 2008, 04:51:28 pm

Previous topic - Next topic

Kevin F

December 21, 2008, 04:51:28 pm Last Edit: December 21, 2008, 05:12:01 pm by Kevin F
I've noticed that when I used a distribution shader with specific hight and slope settings as the density shader of a population that it's not transferable between TGD's. i.e. if I save a population of TGO's with the above shaders as a TGC and then import the TGC in a new scene, then the population renders zero instances for the population with the density shader checked on. Yet populates O.K. with the shader unchecked.
I had to repopulate the TGO in the new file and assign a new density shader (with same values) and everything worked as expected.  Is this combination of shaders terrain/file specific or is this a bug?

Tangled-Universe

I can't say for sure, but as far as I know and from my experience, when you copy/paste or import a clipfile of populations the "sit on terrain" and "planet" are resetted to blank fields.
Is that also the case with you?

Kevin F

Quote from: Tangled-Universe on December 22, 2008, 05:36:12 am
I can't say for sure, but as far as I know and from my experience, when you copy/paste or import a clipfile of populations the "sit on terrain" and "planet" are resetted to blank fields.
Is that also the case with you?


That's true, but even with both reset the population is not generated. The counter starts off as if its generating but reports "0 of xxxxx",
interestingly if you invert the shader it works! but of course the settings i.e placement of objects is the reverse of what you want.
Sounds like a bug to me.

Kevin F

Could a member of the planetside team please reply to this ?

i.e.
..........Is this combination of shaders terrain/file specific or is this a bug?

FrankB

could you upload the tgd in question?

Kevin F

Frank, here's a file showing the problem (not the original but that don't matter).

Interestingly, I've noticed that the populator only fails to populate when the min slope box is checked in the distribution shader , reporting 0 of xxx instances. This is at any min value. Inverting the density shader seems to work, but what is it the inverse of?

I made this scene very quickly by first creating a TGD with a working population that uses a distribution shader as it's density shader.
I then saved the object pop as a clip file, started a new project and inserted the clip file from the first scene.
Not really a problem for me, just thought it should be reported as a bug, but no response from PS.
Thanks for your interest.

jo

Hi Kevin,

I'll check this out in the next day or two. Thanks for the file and information.

Regards,

Jo

jo

Hi Kevin,

When I tried your example file it worked if I reset populator so the "Sit on terrain" param is set to "Compute terrain" and the Planet param is set to "Planet 01". Does it work for you if you try that, using exactly those settings?

Regards,

Jo

Kevin F

Quote from: jo on January 08, 2009, 08:26:34 pm
Hi Kevin,

When I tried your example file it worked if I reset populator so the "Sit on terrain" param is set to "Compute terrain" and the Planet param is set to "Planet 01". Does it work for you if you try that, using exactly those settings?

Regards,

Jo


Hi Jo,
No joy, still the same. Only when the invert box is ticked can I get it to populate.
Regards
Kevin

jo

Hi Kevin,

That's very strange. It works fine for me on both the Mac and Windows versions. Follow these steps:

- Open the file you uploaded for us.
- Double click on the population node in the network view.
- Go to the "Terrain" tab.
- Click on the "..." button for the "Planet" param and choose "/Planet 01" from the "Assign planet" submenu.
- Click on the "..." button for the "Sit on terrain" param and choose "/Compute terrain" from the "Assign shader" submenu.
- Click the "Populate Now" button.

This works for me. The main difference between our two setups is that you have the model and I don't. I'll download it and see if that makes a difference.

Regards,

Jo

jo

Hi again,

I've downloaded the model, set it up and following the steps I outline above it still works. The only change I made was to point the object node at the model on my machine.

What version of TG2 are you using?

Regards,

Jo

jo

Hi once again,

I should also add that the behaviour you're describing with using clips is expected to the extent that clips don't maintain links to any nodes not included in the clip. In this case that would be the two nodes in the Terrain settings of the population ( i.e. Compute terrain, Planet 01 ). You would always need to reset these two parameters after inserting the clip. Obviously this is all working as expected for me on Mac and Windows, so it's a little odd why it isn't doing the same for you.

I think the reason that this "works" if you check the Invert density param is down to the slope settings in the Distribution shader. Without the Terrain params reset in the population the Distribution shader is possibly seeing the "planet" as being flat i.e. having no slope. That means that no part of the terrain is above the minimum slope setting and therefore no instances get created. However when you invert it the flat terrain is all below the minimum slope setting and that means the instances can be created. When you reset the Terrain params in the population the terrain has slope and so the non-inverted settings make sense and instances are created.

Regards,

Jo

Kevin F

Quote from: jo on January 11, 2009, 08:06:02 pm
Hi Kevin,

That's very strange. It works fine for me on both the Mac and Windows versions. Follow these steps:

- Open the file you uploaded for us.
- Double click on the population node in the network view.
- Go to the "Terrain" tab.
- Click on the "..." button for the "Planet" param and choose "/Planet 01" from the "Assign planet" submenu.
- Click on the "..." button for the "Sit on terrain" param and choose "/Compute terrain" from the "Assign shader" submenu.
- Click the "Populate Now" button.

This works for me. The main difference between our two setups is that you have the model and I don't. I'll download it and see if that makes a difference.

Regards,

Jo


Hi Jo, this is exactly what I've done and it still doesn't populate. I'm using version TG2 beta (build 1.10.23.1)

I've just noticed that if I set the min slope value in Distribution shader v4 01 to any value other that zero, it doesn't populate. If I set it to zero it does. This is regardless of any other "valid" values for other parameters.
Thanks for your help
Regards
Kevin