Example 12 - increase quality of terrain

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
RainBoy
Posts: 16
Joined: Wed Jun 01, 2011 8:08 pm
Location: United States

Example 12 - increase quality of terrain

Post by RainBoy »

Hi there,

I'm trying to use example 12 (TerrainRendering) to show pavement of road;
I have a problem with quality,
My project has big texture (2000x2500 pixels) and the Height map with the same dimensions. I need to create high-quality 3D output for it, high FPS is not necessary.

Could you help me with that?

Thank you,
Alex.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Well, just create the terrain then, what is the problem?
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Post by Radikalizm »

For creating something like a road you don't want to use one massive texture
You'd get the best results by using something like texture splatting (I've seen a texture splatting shader around here the last couple of days, check the code snippets forum)

Also, try to stick with power-of-two textures at all times, and power-of-two + 1 textures for heightmaps (eg. 257x257, 513x513, etc.)
RainBoy
Posts: 16
Joined: Wed Jun 01, 2011 8:08 pm
Location: United States

Post by RainBoy »

I've tried to load texture 2048x2048 and height map as 1024x1024

All works pretty good on ATI 5850 with MaxLOD = 255 and patchSize = 65 or 129
KP84
Posts: 44
Joined: Thu Feb 24, 2011 5:08 am

Post by KP84 »

Why are you using an lod of 255? Seven is tops in any case but 6 for a patch size of 65

Code: Select all

// if you think real code is always interresting, read this line again
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Post by Radikalizm »

RainBoy wrote:I've tried to load texture 2048x2048 and height map as 1024x1024

All works pretty good on ATI 5850 with MaxLOD = 255 and patchSize = 65 or 129
To let the LOD algorithm work correctly your heightmap should always be POT + 1 (so in your case 1025x1025)

You should check this page under 'Detailed Description' http://irrlicht.sourceforge.net/docu/cl ... _node.html
RainBoy
Posts: 16
Joined: Wed Jun 01, 2011 8:08 pm
Location: United States

Re: Example 12 - increase quality of terrain

Post by RainBoy »

Thank you for the answers, guys )
Also i have an another question - http://irrlicht.sourceforge.net/forum/v ... =1&t=44877
I will be very appreciate to you if you can help me in that case too.
Post Reply