You should look into Apple OpenGL examples. There is code to do that. It is not straight forward. You have to use DrawSprocket, assuming you have MacOS 9.x.
I really do not know about MacOs X.
...
Type: Posts; User: BANE
You should look into Apple OpenGL examples. There is code to do that. It is not straight forward. You have to use DrawSprocket, assuming you have MacOS 9.x.
I really do not know about MacOs X.
...
You probaly lost all acceleration though. What graphics card have you got ??
Dan.
Maybe you should try specifying a pixel size like 16 bits or 32 bits. I have no problem myself with the ATI Rage 128. I 'll post my init code if you cannot make it work.
Dan.
Is fullscreen set to 1 one 0 ?? And have you tried taking the AGL_NO_RECOVERY off the attib list ??
Dan.
Can you post your initialisation code please ??
Dan.
Did you check Apple OpenGL examples ?? They contain examples on out to set up OpenGL for offscreen rendering. As far as I know RGBA is the default pixel format for the pixel in OpenGL. There is an...
You might want to check out the gaming forum at http://www.idevgames.com/cgi-bin/UltraBoard/UltraBoard.cgi for more optimisation tips. Or you could subsribe to the apple opengl mailing list for...
Try using aglSwapbuffer(). Get the Apple OpenGL docs. Might help.
Dan.
Did you enable the option Allow Power Cycling in your Energy Saver Control Panel ?? If you did, turn it off. This created stuttering in applications I wrote. ...
Do not forget the accumulation buffer. You can do some pixels operations using that. But not many.
The ATI drivers do not support anti-aliasing of lines. So maybe you'll see something different in SW/generic mode.
Dan.
That could be one for the mac-opengl list. What you should do to debug that command is maybe call aglGetInteger with the AGL_SWAPINTERVAL to see if it is set right after you gave the command in that...
You have at least 2 types of animation : mesh based and bones based. Mesh animation is easy because you only need to interpolate linearly between different frames you have recorded and you need to...
Yep. That's it. Thanks for the link.
Dan http://www.opengl.org/discussion_boards/ubb/smile.gif.
Does anybody has any info on glLockArraysEXT ??
Thanks,
Dan.
Hi,
I am not sure but if reshape3D does what I think it does (meaning changing the size of the window) you have a problem. You either have to reshape the window first and then attach it to the...
You probably made a mistake when loading the textures and you are probably loading crap into it. Make sure that the external format information you give correspond to the way you have stored your...
I think you will find some good examples of blending in the red book (OpenGL programming guide). Or alternatively you can have a look at www.gamedev.net/hosted/nehe/opengl.asp
Dan.
I think you can simply request in the pixel format that you want to render to an offscreen buffer. It is even easier using Glut. The thing is that I am not sure if you will get HW accelaration when...
I meant did you create the OpenGL window with an AGL_RGBA or AGL_ALPHABIT 8 or GLUT_RGBA setting ??? Is that clearer ??
I think you need those settings for alpha blending to work.
Dan.
The Red Book will help you with that. Blending section.
You need to enable blending (glEnable) and then select a blending function (glBlendFunc). When rendering, draw all the opaques surfaces...
Unfortunately there aren't many books on Mac programming. What you can do is go to the Apple web site and go to the developper section. It has code samples and all the technical documentation.
And...
Thanks for the tip.
So how would you go about creating a full screen OpenGL window if you can't use DDraw ??
Dan.
When you created your application, did you link against the correct opengl library ?? I am not sure if that could affect you.
Dan.
What does your set-up looks like ?? Did you call gluLookAt or position the camera in some calls to glRotate or glTranslate beforehand ??
Otherwise, if you did not do any set-up, if you are...