Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Entire Terrain BMP not rendering

Author
Message
TheeLord
16
Years of Service
User Offline
Joined: 23rd Jan 2008
Location: Chicago
Posted: 18th Mar 2008 23:04
I did searches and could not find any info on this.. Basically I have a 512x512 terrain heightmap bmp.. It is being cut off by about 15 pixels on the top and right sides. Is there any way to correct this?
I am attempting to butt multiple terrain blocks up next to eachother and this is causing all sorts of issues.

thanks!
TheeLord
16
Years of Service
User Offline
Joined: 23rd Jan 2008
Location: Chicago
Posted: 19th Mar 2008 20:49
Maybe what I posted didn't make sense.. When the BMP is being rendered it is being cut off in the rendering by about 15 pixels on the top and right edge. I'm sure others must have seen this problem.
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 20th Mar 2008 03:02
Does it have a black strip on the opposite edges that corresponds to the missing section? (Alignment issue?)

What are the other particulars....scaling, tiling, etc.?

What type of terrain are you referring to? Normal terrain, or advanced terrain?
TheeLord
16
Years of Service
User Offline
Joined: 23rd Jan 2008
Location: Chicago
Posted: 20th Mar 2008 06:36
If I use a BMP that is not 512x512 it puts a strip on one end of the map.. Normal terrain with Dark GDK.. The scaling can be 1.0 or 2.0 or 3 it doesnt matter. I've tried tiling of 8, 10, 12.. that doesnt make a difference either.
TheeLord
16
Years of Service
User Offline
Joined: 23rd Jan 2008
Location: Chicago
Posted: 21st Mar 2008 23:36
No one has any idea why this is doing this?? I really cannot figure this out for the life of me.. I'm starting to think it's a bug in the GDK..
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 24th Mar 2008 19:48
I personally don't bother with Tiling DBPRO/GDK stock Terrain. It has decent culling, just make a bigger one or make your own terrain system.



TheeLord
16
Years of Service
User Offline
Joined: 23rd Jan 2008
Location: Chicago
Posted: 26th Mar 2008 17:12
I guess just creating terrain meshes externally and then using them in the game wouldnt be any slower than using the GDK rendered terrain huh? I still wish I could figure this out..
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 26th Mar 2008 17:56 Edited at: 26th Mar 2008 17:57
Quote: "The following reply was posted by TheeLord into Dark GDK to a thread you are watching:

I guess just creating terrain meshes externally and then using them in the game wouldnt be any slower than using the GDK rendered terrain huh? I still wish I could figure this out.."


No. It can be close - but requires more work... BUT not ALWAYS! Confused yet? I WAS! Still am!!

Here's the deal: The built in terrain does an AWESOME job CULLING - and that just means that ANYTHING that DOESN'T need to be RENDERED and can be "removed" from the GPU's task list of things to do without killing the end result - it does for you automatically! Why? In short - keeping poly count down = higer frame rates.

Making your Own Terrain - gives you individual VERTICE control, Individual VERTICE COLOR control (in most cases... there are more than one mesh format - some don't have the color thing) You have more control of how its textured.... and if you add a decent shader you can get the same and better looks than the stock terrain.

The trouble is your POLY COUNT. If you mesh isn't to complicated and the poly count is reasonably low - WIN WIN!!!!! If you start wanting TILED huge terrains, then you need to learn how to do frustrum culling - so you can EXCLUDE objects from the GPU's TASK LIST when they aren't visible anyways. (To speed things up)

Depending on the size of the terrain - even this might not help enough (like if you have a ton of tiles - you're looping through and doing a lot of FRUSTRUM checking which isn't the BEST use of your time if the COUNT of tiles is this high).... That's when you need to optimize HOW you frustrum cull.. like put FOUR "TILES" in a "empty BOX" - if the "Empty Box" is on the screen - then you should check each of the tiles in the BOX to see if they are on the screen - BUT if the BOX is not on the screen then you can SKIP 4 checks simply ignoring those tiles in the box.. because the box isn't on the screen anyway!

This is how you need to go about it.

there is another technique called occlusion culling - which I don't know how to do yet - but that would allow ANYTHING obsured by... say a mountain - to be considered "OFFSCREEN"... because you wouldn't see it anyways even when its drawn.... I really need to learn this ( It THINK it has to be something about checking VERTS or GROUPS of VERTS... if they obscure or not based on camera position and angle and frustrum but I'm guessing)

Frustrum is the AREA you can see.... Its often described as a "View port" or a view projection matrix... I think of it as a SQUARE CONE kinda... the tip being the camera - the big end being where the camera range STOPS.

Login to post a reply

Server time is: 2024-09-29 15:25:00
Your offset time is: 2024-09-29 15:25:00