Raydium 3D Game Engine

Official forum for everything about Raydium, ManiaDrive, MeMak, ...
It is currently Wed Apr 24, 2019 4:25 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: terrain generator
PostPosted: Wed Oct 25, 2006 10:51 am 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
Ok, i go to open a new thread here, cause the previous post was in rapid questions and this looks like a non rapid thread.

Well, raydium needs a terrain generator. Should it be a common terrain generator or a clone/evolution of the system used with the megatextures in quake wars?

Currently i'm giving my vote for the megatextures.

Here there is a good explanation in the wikipedia: http://en.wikipedia.org/wiki/MegaTexture

To summarize, the mesh is maped with a huge texture map (32000x32000) in a new format file that includes the bitmap as well as the friction of the terrain, the type(aaplied to the sound when ou walk over it) and so.

Ideas and comments, please.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 27, 2006 12:12 am 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
ok, i go to follow analysing a bit the main idea.

OBJECTIVE: we want a system that allows raydium create automatically, load and render terrains.

To create automatically terrains we can use usual terrain generators code. However i'd like to make it better with a few improvements like precipices, undergrounds, rivers, and so.

The loading and rendering methods are in the same block.
According the idea of megatextures we should:
1-generate a huge mesh
2-generate a huge bitmap
3-add extra info(sounds applied, friction) to the bitmap
4-use that mix-up.

People say that megatexture is really a implementation of clip-mapping, in other words, the game only uses a part of a bigger container of data. But this is not completely true since in Quake Wars is promised that (in certain places) you can see all the map from horizon to horizont(in the other side).
So, if this is true i have to think that:

The megatexture includes auto mipmaping + auto clipmapping
So:
If we can a texture of 32000x32000, it will have mipmapings from 16000x16000 to 1x1. And each level of mipmaping is realated to a level os clipmaping. If we fix a "part" with a size of 10 pixelsx10.
32000x32000 -> 3200x3200 parts
8000x8000 -> 800x800
10x10 -> 1 part
The intermediate parts could be usefull to draw far terrain sections. Obviously the 10x10(1 part) won't be of use in the game, you never will go to be enoguh away to see the full map like only 10x10 pixels.
The use of parts with mipmaps allow the engine a really high framerate avoid writind unneded data.

But, the thing is: Will ODE be comfortable with this?

Well, this is my particular vision of megatextures... Surely i'm completely wrong :P


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group