PDA

View Full Version : Reduce polygon



bazbazus
12-01-2010, 05:47 AM
hi all :)
I want to reduce polygons of my model
is that possible in glscne ?

look at my example :
i want to do this condition :
if camera is nearness from my model then
polygons of my model:= normal ;

if camera is far from my model then
polygons of my model:= reduce ;

Please help me xx(

de_jean_7777
12-01-2010, 03:47 PM
This is done with level of detail (LOD). You'll need to have two models already prepared, one with high detail, and other with low detail, each of which is drawn depending on the distance. To reduce the number of polygons of a model in your program at rendering time would be a complex job (and often an ugly one). There is no way for glscene to reduce the number of polygons of an existing model, so therefore you'll need to have as many models as level of details you need (e.g. you'll need three models for far, medium and near levels, and in your case two for near and far).

bazbazus
12-01-2010, 09:05 PM
thank you de_jean_7777 I understood ::) ::) ::)