gl question - editing large objects

Kurt Akeley kurt at cashew.asd.sgi.com
Tue Jul 31 01:48:12 AEST 1990


In article <9007290220.AA17536 at mcirps2.med.nyu.edu>,
karron at MCIRPS2.MED.NYU.EDU writes:
|> Thanks for your considered reply.
|> 
|> >however, the editing performance of objects is poorer than ever, as
|> >a result of some arcane interactions between shared libraries and
|> >code caches.  thus (for now) rule one:
|> >
|> >    if performance is an issue, use GL objects only for data that
|> >    never change.
|> >
|> 
|> What do you mean, exactly, by "data that never change"s ?

i don't have an exact definition, so i'll try a different tact.  what i
mean is:

    1.	don't ever call editobj().

    2.	don't repeatedly call makeobj() to accomplish object editing.

|> 
|> What about a fixed geometry object that will have different reflectance
|> properties, or a moving light source ?
|> 

if the fixed geometry object has only a single reflectance property, that
property can be changed outside the GL object definition itself, and it's ok
to use a GL object.  if the geometric object requires multiple reflectance
properties, however, it should either be broken up into multiple GL objects
or drawn in immediate mode.

same goes for the light source, which is positioned by the ModelView matrix
that exists at the time the light source is bound.  it's ok to include the
lmbind call in an object, but not the code that changes the ModelView matrix.

-- kurt



More information about the Comp.sys.sgi mailing list