i am working on a cad-application looking like 3ds max using opengl. i use visual c++ 6.0; on startup, the mainframe creates 4 views (opengl-views derived from class cview) inside his oncreateclient-method. i use an object of the class csplitterwnd to position the views. The method onsize of the mainframe is called two times while doing the initialization-stuff. after the first time, onsize was called the debug-output-window shows
exactly four times (i think for every view). After the second time the application starts and it is ready to work with. Has someone an idea how to solve this ?
Originally posted by Eric:
[b]Not really OpenGL related.
Do you use static or dynamic splitters ?
Do you know where the message comes from ???
DDERR suggests a DirectDraw error but I never came accross such a thing in my programs…
Regards.
Eric[/b]
Thank you for responding, Eric. to answer your question, i am using a static splitter. the only thing that will happen is that the debug-output window shows the error. in debug-mode i am also not able to find the exact line where it happens, because stepping through the code ends up into a “mfc-method-call hierarchy”. I thought that “WGL” would have to do something with OpenGL. I wonder if “DD” means “direct draw”, because at this time i am only using opengl for rendering the scene.
I think you’re right in assuming that WGL comes from OpenGL (the error must be output when issueing a wglXXX command). It’s just that I have never seen such a message…
Now, DirectDraw may be used internally by Windows to copy/move parts of the screen.
i use w2000 with a geforce3 ti200 graphics-board and an amd athlon cpu with 900 mhz.
Maybe you can answer another question i have : after people in the discussion-forum told me to use vertex-arrays and displaylists, i reorganized my classes and structures so that every object has its own float-vertex-array lying inside a displaylist. now i render 10000 polygons at approximatly 30 fps. do you think this is a good result for my system ? What do you think, how fast can opengl run at different systems ?
I am not really expert in that field: I have no idea how many polygons you should be able to display with configuration X. That being said, you should find a lot of threads on that topic here (use the Search feature of the forum with “performance”).
One note though: if you want people to answer that question, you should specify if you use lighting (how many), textures (which filtering modes) and other information like that… They all influence how many polygons you can display.
To be honest, I’d think that 10000 polygons at 30fps is not very good if they are not textured and you do not have lighting but as I said, I am no expert in that field !