View Full Version : Help with creating sponge out of cube
10-02-2011, 07:02 PM
I'm required to generate menger sponge in OpenGL 3.1 since it not longer supports GL_QUADS how can I subdivide triangle to get the look of menger sponge.
Any help would be appreciated
10-02-2011, 07:05 PM
Just draw two triangles where you would have drawn a QUAD. Or just use a compatibility profile.
10-02-2011, 07:07 PM
Thanks for the quick response. I have already generated the cube but don't know how to make it look like menger sponge
10-02-2011, 07:30 PM
Could you also explain what compatibility profile is and how can we include it
10-03-2011, 11:57 AM
If you are on Windows, and you will be using Win32 code or MFC code or something of the sort, you check if WGL_ARB_create_context is present like this guy is doing.
and instead of WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB, you use WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB.
Then everything from GL 1.0 up to GL 3.1 will be available to you.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.