Planetside Software Forums

Support => Terragen Support => Topic started by: paross20 on August 22, 2011, 02:30:38 PM

Title: Ocean Artifact
Post by: paross20 on August 22, 2011, 02:30:38 PM
Hi,

So anyone know what's causing these lines to appear on the horizon of my ocean?
I'm using Terragen 2 and tweaking the lake object to make it look like an ocean.
Also, if anyone knows the best way to get rid of/soften the hot specular hits that'd
be awesome too.


-patrick

[attachimg=#]
Title: Re: Ocean Artifact
Post by: Henry Blewer on August 22, 2011, 02:56:05 PM
The lines are the seams in the object which is used to create the lake object. Try adding a power fractal to break this up.
Title: Re: Ocean Artifact
Post by: Tangled-Universe on August 22, 2011, 04:49:33 PM
Quote from: njeneb on August 22, 2011, 02:56:05 PM
The lines are the seams in the object which is used to create the lake object. Try adding a power fractal to break this up.

Hmmm...I never heared of this before, nor did I ever run into something like this?


Are you using multiple lightsources/sunlights?
Usually when artefacts show up in the form of lines it is because "microvertex jittering" in the renderer isn't enabled.
Perhaps you can check that?

Cheers,
Martin
Title: Re: Ocean Artifact
Post by: paross20 on August 22, 2011, 05:11:27 PM
Thanks for the replies. Does seem a bit odd to me, especially since i'm using a default
lake. Haven't been able to figure it out. I've tried breaking it up with a fractal as well
as trying that render setting, no luck. If anyone cares to give a crack at it I've
attached the file. Thanks again.


-patrick
Title: Re: Ocean Artifact
Post by: Tangled-Universe on August 22, 2011, 05:35:22 PM
Hi Patrick,

I have found the culprit and probably need to pass it on to Matt to see if this is worth looking at to fix.
To prevent the lines from showing up you need to access a hidden node inside the renderer.
It seemed that the adaptive subdivision algorithm causes the lines, but don't ask why exactly (see link below).

To access the hidden node do the following:
Go to your shader network and click on the "+ symbol" at the right of the rendernode.
You're now inside the internal network of the rendernode, click once on the gray background to make sure you "activate/focus" it.
Copy the code at the bottom of this message and paste it in the internal network of the rendernode. A new grey shader should show up called "render_subdiv_settings 01".
Double-click on it to see the new advanced settings. Everything is default, except that I disabled "fully adaptive".

Here's Matt on these new advanced settings:
http://forums.planetside.co.uk/index.php?topic=9321.msg128311#msg128311 (http://forums.planetside.co.uk/index.php?topic=9321.msg128311#msg128311)

Happy TG'ing dude :)

Cheers,
Martin


<terragen_clip>
   <render_subdiv_settings
      name = "Render subdiv settings 01"
      gui_use_node_pos = "1"
      gui_node_pos = "900 -80 0"
      gui_group = ""
      fully_adaptive = "0"
      force_all_edges = "0"
      jitter_shading_points = "1"
      ray_detail_multiplier = "0.25"
      stabilise_ray_detail_in_motion = "0"
      ray_detail_stabilisation = "3"
      >
   </render_subdiv_settings>
</terragen_clip>
Title: Re: Ocean Artifact
Post by: paross20 on August 22, 2011, 06:06:01 PM
haha, that's awesome. Thanks man, I really appreciate it. I would of had to blur it out or
something in post.  :)


-patrick


Title: Re: Ocean Artifact
Post by: Oshyan on August 23, 2011, 12:24:35 AM
Actually that's a really old issue that should be fixed by enabling Microvertex Jitter in the renderer settings. Try that and see if it helps (without using Martin's instructions yet). If not, then Martin's solution could be used.

- Oshyan
Title: Re: Ocean Artifact
Post by: Matt on August 23, 2011, 01:27:31 AM
Microvertex jittering was ON when it produced this artefact, so it's something else.

Good find, Martin.

Matt
Title: Re: Ocean Artifact
Post by: Oshyan on August 23, 2011, 01:33:22 AM
Ah, missed the TGD that was posted, hehe.

- Oshyan
Title: Re: Ocean Artifact
Post by: alank on November 21, 2023, 08:24:04 PM
This came up recently for me (in 2023), and was fixed by unchecking the "Fully adaptive" checkbox in the "Render Subdiv Settings". See screenshot. Please note that this only occurs when you add a power fractal shader v3 to the water shader.
Title: Re: Ocean Artifact
Post by: Dune on November 22, 2023, 01:56:14 AM
It's better anyway to use a sphere (shadows off), same size as planet for water. Raise level by surface layer offset (or displacement shader and white/zero constant).