fix for linux zbuffer issue
Archives Forums/Linux Discussion/fix for linux zbuffer issue
| ||
in blitzgl.linux.c find int myspec[]={GLX_RGBA,GLX_DOUBLEBUFFER,None}; and change it to int myspec[]={GLX_RGBA,GLX_DOUBLEBUFFER,GLX_DEPTH_SIZE,16,None}; I tried 32 bit but it didnt seem to like it, anyone happen to know how to force X to use a 32 bit zbuffer by default? Is 16bit enough??? linux compiled max apps are still running significantly slower than C or win32 compiled running under wine, so I assume theres still an error in the context creation thats causing it to fallback to software rendering |
| ||
If it can only run in 16bit then it will mean there will be color banding where there isnt enough colors to make a smooth image. I hope that some of the linux issues are corrected in the next update, |
| ||
thats zbuffer, not colour buffer.... ;) not sure why this bug report got moved here... |
| ||
cool... milion thanks man... i owe u big time.. |
| ||
Oops, now I see what your talkin about, ill blame it on the lack of sleep lately. I think a 16bit z buffer will just mean it will be slightly less accurate when two poly's are close together, that whole z buffer fighting thing |
| ||
Cool, my GLHead from TeraBit is healed. Thx! |
| ||
"I tried 32 bit but it didnt seem to like it, anyone happen to know how to force X to use a 32 bit zbuffer by default?" You can set it to 24 bits though. The rest (8 bits) is used for stencil buffer. EDIT: There's more to it though. I read it's best to use 16 bit zbuffer with 16 bit color buffer and 24 bit with 32 bit color buffer, else there might be slowdowns. Anyways, best to google it and find out more. |
| ||
btw guys... do u guys have this problems?? my machine cant show stencil buffer right... do u guys try with this NeHe tutorial 27 for shadows - the shadow doesnt show at all... n NeHe tutorial 26 for reflections - the reflection seems not clipping below the plane, thats mean its fake reflection just like mirror command in B3D.. is that anything to do with blitzgl.linux.c again? |