 |
|
 |
I test on 2TB Virtual Disk,it simulate a 2TB disk,1024,2048,4096 bytes/secotr,this app can not work.I found it on http://www.2tdisk.com
|
|
|
|
 |
|
 |
Hi;
Thanks for the article. There is a painting flaw that occurs in the child view that I've seen in other gl-based mdi implementatios. Here are the steps:
1; maximize the main frame
2: open a child window
3: drag the child window screen-right so that a portion of it is is offscreen
4: resize the child window horizontally
5: drag the child window back so that it is all visible again
You will see that part of the child does NOT repaint.
Any ideas about how to fix that?
|
|
|
|
 |
|
 |
any idea not to rotate around 0,0,0 but around the center view (and average z of whatever is on the screen)? thanx
Mat
|
|
|
|
 |
|
 |
Hello,
Could someone tell me, how to implement something like this in C# Express Edition 2005?
I am searching for a trackball function for OpenGL.
|
|
|
|
 |
|
 |
I know you have developed an application supporting the Mutil-View. Yes, It is very good.But I don't know how the button(changeScene) blend to the different Views,when they were actived. Are there other setting in your application?
I have developed a program similiar to yours, but the message sending by the button on the tool bar have only effect on the first active view. You can draw the opengl objects on the first view, but others can not.
have anything different between them?
Thank you very much!
-Anqin
|
|
|
|
 |
|
 |
I know you have developed an application supporting the Mutil-View. Yes, It is very good.But I don't know how the button(changeScene) blend to the different Views,when they were actived. Are there other setting in your application?
I have developed a program similiar to yours, but the message sending by the button on the tool bar have only effect on the first active view. You can draw the opengl objects on the first view, but others can not.
have anything different between them?
Thank you very much!
-Anqin
China
|
|
|
|
 |
|
 |
Dear friend:
I have studied your arctic , I feel that it is very excellent.But I don't understand how you can make the text of "1",'2",...."8" output to the render scene.
Have any arctics about this problem?
Thank you very much!!
|
|
|
|
 |
|
 |
How to run 2 different(or same) OpenGL objects in one DialogBox?
IDC_STATIC1 is a first OpenGL objects Scene window.
IDC_STATIC2 is a second OpenGL objects Scene window.
IDC_STATIC1 and IDC_STATIC2 ,they are placed on IDD_DIALOG1.
code:
pclStatic = (CStatic *)GetDlgItem(IDC_OpenGL_Window);
pclGlView = new CGlView(pclStatic);
pclGlView->OnCreate();
pclGlView->InitGL();
pclGlView->DrawGLScene();
pclStatic1 = (CStatic *)GetDlgItem(IDC_OpenGL_Window);
pclGlView1 = new CGlView(pclStatic1);
pclGlView1->OnCreate();
pclGlView1->InitGL();
pclGlView1->DrawGLScene();
Will not involve both windows (IDC_STATIC2,IDC_STATIC1)
|
|
|
|
 |
|
 |
I have written some code similar in structure to yours. Our application involves the rendering of a complex surface which can take many seconds. Our OnDraw code is like yours: it re-renders the entire scene.
What I'd like to do is to store the rendering so that uncovering the window, say, causes a redraw from the stored picture instead of starting again from scratch.
I've tried using the following instead of SwapBuffers after rendering the surface:
int viewport[4];
glGetIntegerv(GL_VIEWPORT, viewport);
glReadBuffer(GL_BACK);
glDrawBuffer(GL_FRONT);
glCopyPixels(viewport[0], viewport[1], viewport[2], viewport[3], GL_COLOR);
- so that the back buffer remains intact (the docs say that SwapBuffers leaves the back buffer undefined) and effectively stores the rendering. To redraw, I just do the same again (but without rendering first).
This works so long as I don't move the window around the screen.
Is there an 'approved' way of doing this?? Is what I'm doing 'safe'? Thanks in advance.
Phil Atkin
Synoptics Ltd., Cambridge, UK
|
|
|
|
 |
|
 |
Hi, Phil,
There is no 'approved' way of doing that.
Your solution is a perfectly viable one, my classes are for general use and I've not focused on this aspect when I developed them.
I would suggest investigating the interaction of the application with events sent by the windowing system. If I remember correctly you can ask for a window backed by a video buffer to decrease the impact of 'obscuration' events: look in the documentation about "onprecreateframe" and the WinAPI calls for registering a window class.
Alex Falappa
|
|
|
|
 |
|
|
 |
|
 |
How to draw lines3D or circle3D by mouse
|
|
|
|
 |
|
 |
Can anyone tell me how to implement a simple MDI app with simple 2D OGL?
Thankx!!!
|
|
|
|
 |
|
 |
Hi,
I'm using the CGLEnabledView (Win2K) and it works great, Thank you.
I'm having one problem though: When I run the project in debug mode
the debugger stops after the GLEnabled view is created. After multiple F5 presses the process continues, but the GLEnabled view doesn't draw.
Any Ideas?
I didn't attach the call stack in to this post since it is quite big. If it's needed then I'll reply it here.
|
|
|
|
 |
|
 |
This is very impressive, i've never seen anyone did something like this, furthermore it supports MDI.
I'm impressed, good job!
|
|
|
|
 |
|
 |
great article but i have not managed to get any textures working
any ideas?
|
|
|
|
 |
|
 |
Hello, I found this class really useful for my project. Thank you.
The only thing I missed is: how can I save the OpenGL created scene on screen to a file? any format is ok... JPEG, PNG, bitmap. Please help.
--jC
|
|
|
|
 |
|
 |
have a look into glReadPixels(). All you do is read the pixels in then save it to the format you want. Go look at www.wotsit.org for information on file formats
|
|
|
|
 |
|
 |
In an SDI application. If users have a new document it states application's name - untitled. Just like in notepad. Is there a way of removing the untitled out of the program like the MDI application.
Thank you
Beckie
|
|
|
|
 |
|
 |
remove untitle from resource string. default is untitled. Set the CDocument::setTitle to your desire title.
fdgdfg
|
|
|
|
 |
|
 |
Thanks very much. I found it great, it helped me a lot.
|
|
|
|
 |
|
 |
I have used Marching Squares to create contour plot and now am trying to fill the contour with colors but do not have any idea what I should do. Can anyone give me some suggestions. Thanks alot.
|
|
|
|
 |
|
 |
I swap between fonts frequently. Works fine on NT4, bombed out on some 98 machines. I added a glFlush() to the start of PrepareCharset2D() and it works fine now. Think that OpenGL has its own internal buffer of instructions, perhaps I was creating a new set of lists for a font before OpenGL had finished processing calls to Text2D using a previous set of lists.
|
|
|
|
 |
|
 |
I would like to have several view using OpenGL opened at the same time.
The problem is, since a OpenGL context is allocated for each view (80Mb of virtual RAM on my machine), I run out of memory quite fast.
Is there a way to pass that limitation ? I haven't found any article discussing that problem.
- Use one context for all views ? Is this possible ?
- Draw to a DIB and then to the corresponding screen ?
I haven't got a clue !
Ps: Anyway, very useful article.
Jonathan de Halleux.
|
|
|
|
 |
|
 |
I was unable to make this program, nor about 5 other MFC-MDI programs using OpenGL views, run under Windows 2000. It works great on a Win98 machine, but gives an 'Application Error' on my computer and all the lab computers running Win2k. Any suggestions, I haven't been able to find anything on the web addressing this problem. -TIA
Randy Mardak
Lawrence University
rfastturnlow@hotmail.com
|
|
|
|
 |