Planetside Software Forums

General => Terragen Discussion => Topic started by: GFB on May 17, 2010, 07:09:59 PM

Title: Help with jagged ground.
Post by: GFB on May 17, 2010, 07:09:59 PM
I have been following a tutorial to the letter, but despite that I am still getting a rough, polygon type ground while the one in the tutorial is smooth. How should I go about fixing this. Also I only have had this program for two days so go easy on me. :D I posted a screen shot of what I have and what I desire too. Thanks for helping.
Title: Re: Help with jagged ground.
Post by: TheBlackHole on May 17, 2010, 07:49:38 PM
Turn off Ray Trace Everything. You only need Ray Trace Objects. If you took a screen shot from the 3D Preview, render it. If it's a render, saved with the [Save] button in the Render Window, turn off Ray Trace Everything.
Title: Re: Help with jagged ground.
Post by: GFB on May 17, 2010, 08:38:13 PM
Quote from: TheBlackHole on May 17, 2010, 07:49:38 PM
Turn off Ray Trace Everything. You only need Ray Trace Objects. If you took a screen shot from the 3D Preview, render it. If it's a render, saved with the [Save] button in the Render Window, turn off Ray Trace Everything.
How do I turn off Ray Tracing?
Title: Re: Help with jagged ground.
Post by: shadowphile on May 17, 2010, 09:40:52 PM
hah, a question I can answer with confidence!

select whatever your Render is (where the size and such are set), go to the Extra tab.  Bottom checkbox, uncheck.

good luck
Title: Re: Help with jagged ground.
Post by: TheBlackHole on May 17, 2010, 10:15:01 PM
Click the Renderers button. It's like the Terrain and Shaders buttons. Click the "Full Render" entry and go to Extra. Is it (Ray Trace Everything) unchecked?
Title: Re: Help with jagged ground.
Post by: GFB on May 17, 2010, 10:28:52 PM
Yes, Ray Trace everything is unchecked. It isn't just the final render.
Title: Re: Help with jagged ground.
Post by: TheBlackHole on May 17, 2010, 11:02:14 PM
Is this a screenshot of the 3D preview? If it is, render it with the same settings you'll use for the full render. Hope it helps.
Title: Re: Help with jagged ground.
Post by: Oshyan on May 18, 2010, 02:14:34 AM
Detail in the Renderer may also be low. Make sure it's at least 0.5.

- Oshyan
Title: Re: Help with jagged ground.
Post by: GFB on May 18, 2010, 04:12:57 PM
Quote from: Oshyan on May 18, 2010, 02:14:34 AM
Detail in the Renderer may also be low. Make sure it's at least 0.5.

- Oshyan
Were would I find this option.
Title: Re: Help with jagged ground.
Post by: domdib on May 18, 2010, 04:48:06 PM
Read this thread, for a basic intro: http://forums.planetside.co.uk/index.php?topic=6831.0
Title: Re: Help with jagged ground.
Post by: GFB on May 18, 2010, 09:09:04 PM
Couldn't find anything in that link.
Title: Re: Help with jagged ground.
Post by: Oshyan on May 19, 2010, 02:09:11 AM
Go to the Renderers layout (button at the top of the UI). Click the name of the renderer node you are using in the list on the left. There is a Detail slider in the Quality tab below. It should be at least 0.5.

- Oshyan
Title: Re: Help with jagged ground.
Post by: GFB on May 19, 2010, 07:34:38 PM
Changing the detail setting did not fix it.
Title: Re: Help with jagged ground.
Post by: domdib on May 20, 2010, 04:50:44 AM
Post the TGD file so someone can have a look.
Title: Re: Help with jagged ground.
Post by: Kevin F on May 20, 2010, 05:43:08 AM
Quote from: GFB on May 18, 2010, 09:09:04 PM
Couldn't find anything in that link.

Well you didn't try hard enough did you?
I've just used that link and found the information in about 40 seconds!
Title: Re: Help with jagged ground.
Post by: GFB on May 20, 2010, 03:56:23 PM
Here is the project file.
Title: Re: Help with jagged ground.
Post by: dandelO on May 20, 2010, 04:39:49 PM
I'm having a look... This doesn't resemble the images you put in the first post.

The heightfield generate node - is it supposed to be used? Once the terrain is generated you are 188 metres beneath the surface of the terrain.

The problem with the .tgd you've uploaded is the first power fractal shader. The scales are way off. When you drop any scale in a fractal beneath, say, '0.005' you will get a blacked-out surface. I'd never go lower than this scale. Usually 0.01 is fine in a fractal shader. The scales in this .tgd will make the jaggies on your terrain, try disabling it completely.
Title: Re: Help with jagged ground.
Post by: dandelO on May 20, 2010, 04:55:06 PM
Here's a view with your default settings, the heightfield generated and a higher camera, so as to be above the terrain once you generate it, you'll notice the bad fractal is making the surface really blacked out:
[attachimg=#]

Here's a view, with fixed fractal scales in the problem shader from the same camera(I've disabled the water here for speed):
[attachimg=#]

Here's a view with the suspect fractal completely disabled, from the same camera POV:
[attachimg=#]

There isn't much difference between the last 2, is there? The second one is a bit more 'jaggy', yes, but generally, I think you'd get away with not using the small scaled fractal at all, especially if you're trying to reduce these jaggies. I think number 3 looks fine for general terrain shape.

Hope that's of some help for future reference, at least. :)
Title: Re: Help with jagged ground.
Post by: dandelO on May 20, 2010, 05:11:56 PM
Generally, small scale displacements will make your terrain more spiky.

I also never use the 'fractal detail' tab, you haven't got as much control over the details it adds as you do with using normal power fractals after the heightfield.
In this case, the fractal detail isn't adding anything to your terrain but, in general, I'd disable it and follow the heightfield generate with smaller scaled power fractals, that you can control a lot better(if you do indeed generate the terrain, that is).

Here's another preview and an edited .tgd with your original settings but with better scales in the first fractal shader(I haven't clicked 'generate' in the heightfield for this preview image, I think that it isn't actually required for this scene, other than to raise your ground level, is this correct?):
[attachimg=#]

[attachimg=#]
Title: Re: Help with jagged ground.
Post by: dandelO on May 20, 2010, 05:48:57 PM
And, sorry for hijacking the thread but, to take this a little further and with all nodes removed that really weren't affecting the scene(heightfield generate, strata, power fractals, etc.) here's something really quick that pretty much retains your original layout without all the clutter, it's not pretty but it should give you something to go on.

I've stripped the unneeded nodes, edited the water shader scales, unchecked 'cast shadows' on the lake object(so you don't have that abrupt black line where there should be transparency), added a sand-coloured layer and enabled 'smoothing' on it, and put a couple of surface layers in for colour. Also, the quick render settings are what I used, I've edited these, too, to give a better overall idea of what the scene will look like. Probably not what you intended the scene to look like yourself but, there you go...

[attachimg=#]

And: [attachimg=#]
Title: Re: Help with jagged ground.
Post by: GFB on May 20, 2010, 10:47:56 PM
Thanks :D, I'll be sure to look at what I did and what you changed so I can get a first hand experience of what you are talking about. Oh and I put In those other terrain modifiers (like strata) is so I could flatten out some land i didn't want. What should I have done to do that?
Title: Re: Help with jagged ground.
Post by: dandelO on May 21, 2010, 10:07:28 AM
I think you must mean the terrain in the distance. That's really the only visible terrain in the above edit that isn't in the original file. You can take a 'distance shader' and use it as the blend shader to the fractal terrain. Apply 'near colour'(as white) and set the distance in metres to how far you want the terrain to be applied to the scene. You can leave 'far colour' unchecked or, make it black. Terrain will now appear only where the white(near colour) is applied by the distance shader.
The distance between near and far colour is like the gradient's drop-off area so, if white is set to '10,000m' and black is set to '0', there will be a gradual decline in the terrain over 10,000m. To make a sharper cut-off, make the 'far distance' higher than '0', but not exceeding the 'near distance'. I don't know the actual distances from your file as I don't have it any more but you get the idea I hope. :)
Title: Re: Help with jagged ground.
Post by: GFB on May 21, 2010, 10:23:18 PM
I hope you don't mean like this because it isn't working for me. I linked it to the camera and the blend input of the fractal terrain.
Title: Re: Help with jagged ground.
Post by: dandelO on May 21, 2010, 11:30:03 PM
After plugging in the distance shader, did you hit the checkbox in the fracal terrain to 'blend by shader'? Some shaders don't autoswitch when you plug-in/unplug a blend shader, for some reason. The power fractal is one of those shaders.

[attachimg=#]
Title: Re: Help with jagged ground.
Post by: GFB on May 22, 2010, 12:04:20 AM
Yes but all of the landscape disappeared.
Title: Re: Help with jagged ground.
Post by: TheBlackHole on May 22, 2010, 12:41:18 PM
Increase the Near and Far Distances on the Distance Shader.