Raydium 3D Game Engine

Official forum for everything about Raydium, ManiaDrive, MeMak, ...
It is currently Thu Mar 28, 2024 8:37 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: LOD (need comments)
PostPosted: Thu Jul 17, 2008 1:00 am 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
I already have a first version of LOD(Level of Detail) working with raydium. But it's a bit "custom".
How do you think the LOD system should work?

Curently it works as this:
Everytime you load a model (named example.tri for example) then lod versions are search with names as ( LOD1-example.tri). If it exists, then is loaded and linked to the "base" model.
UGLY PART: At render time the system checks if the camera(the freemove camera in fact) is at more than 5 units in each axis from the element. If it's, then the LOD1 mesh is loaded.


Top
 Profile  
 
 Post subject: Experiment 1
PostPosted: Sun Jul 20, 2008 8:17 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
An screenshot over here:
Image

Well I have created an improved version of wania1.tri piece (accidentally a bit darker and with an sphere to increase the polygon count). The standar wania1.tri has passed to be the LOD1 and also i've done a LOD2 with just a plane.
(new)wania1 -> 140 polygons
LOD1-wania1 -> 12 polygons
LOD2-wania1 -> 2 polygons

I've created a 250 pieces highway.
Using the common rendering (and so rendering 250 (new)wania1's): 100fps
USing the LOD with just LOD1: 130fps
USing the LOD with LOD1 and LOD2: 200fps

So it's working and (look's like) it improves the perfomance.

Note: LOD is NOT WORKING with Maniadrive, that screenshot just use one piece of track. Looks like MD is using a custom way to load objects and LOD system only works with elements loaded with raydium_ode_object_box_add (right now)


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: Google [Bot] and 34 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