kawasakis900
02-18-2003, 05:20 AM
hello.
i am thinking of implementing a rendering queue. i wonder:
1) for opaque objects which is the best way for sorting? first by lighting attributes and then by texture or vice versa? in other words should i have more glLightf...() calls or glBindTexture() calls?
i use vertex arrays for rendering the objects.
2) for blended objects: i should sort them from far to near. so i can't avoid reducing glBindTexture and glLight calls. is this correct or am i mistaken?
3) is there a link related to this topic?
thanx in advance for your time.
i am thinking of implementing a rendering queue. i wonder:
1) for opaque objects which is the best way for sorting? first by lighting attributes and then by texture or vice versa? in other words should i have more glLightf...() calls or glBindTexture() calls?
i use vertex arrays for rendering the objects.
2) for blended objects: i should sort them from far to near. so i can't avoid reducing glBindTexture and glLight calls. is this correct or am i mistaken?
3) is there a link related to this topic?
thanx in advance for your time.