You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
(26) |
Oct
(9) |
Nov
(15) |
Dec
(4) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
(5) |
May
(10) |
Jun
(18) |
Jul
(2) |
Aug
(6) |
Sep
(7) |
Oct
(4) |
Nov
(10) |
Dec
(7) |
2003 |
Jan
(5) |
Feb
|
Mar
(2) |
Apr
(20) |
May
(4) |
Jun
(10) |
Jul
(16) |
Aug
(3) |
Sep
(2) |
Oct
(1) |
Nov
(2) |
Dec
(2) |
2004 |
Jan
|
Feb
(1) |
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
2005 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2007 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2009 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
From: Joshua B. <jb...@v2...> - 2003-08-14 22:13:14
|
Hello all, =20 Does anyone know how to add lighting that reflects off texture mapped objects? =20 Thanks for your time, =20 -josh =20 |
From: <am...@it...> - 2003-08-07 08:35:44
|
It=92s simple, just remove the last line=20 =20 =93this.swapBuffer();=94 =20 You mustn=92t call SwapBuffer inside your glDraw implementation.=20 OnPaint method in CsGL.OpenGL.OpenGLControl class, triggers SwapBuffer = by you: =20 /// <summary> /// prepare OpenGL for rendering on this window = by grabbing context and /// call glDraw. /// override glDraw to do gl operation. /// <p>this method Grab() the control context. /// </summary> protected override void OnPaint(PaintEventArgs pevent) { base.OnPaint(pevent); Context.Grab(); glDraw(); GL.glFinish(); SwapBuffer(); OpenGLException.Assert(); } =20 _____ =20 From: csg...@li... [mailto:csg...@li...] On Behalf Of Alban BARTHELEMY Sent: jueves, 07 de agosto de 2003 10:00 To: csg...@li... =20 Hi. sorry for my english... Nice work all, but i still have some trouble implementing double-buffer (openGL and not forms). I've written my control class, overriden OpenGLControl, and overriden glDraw. I'm using the screenSetting as Forms, and when i past this.swapBuffer() = in the overriden glDraw, my screen is flipping whit writting my openGL = render and a blank form. does anyone can help me, before i go back to c++ :)=3D i'll send you what shoold be in cause: ------------------------------------------------------- class ctrl: OpenGLControl{ ... public override void glDraw(){ GL.glClear(...); ... this.swapBuffer(); } ... public void Main(){ CsGL.Util.screenSetting sf =3D new ... ctrl c =3D new ctrl(); ctrl.Parent =3D sf; Application.run(sf); } } =20 Yeh, see you all |
From: Alban B. <bar...@wa...> - 2003-08-07 08:00:19
|
Hi. sorry for my english... Nice work all, but i still have some trouble implementing double-buffer (openGL and not forms). I've written my control class, overriden OpenGLControl, and overriden glDraw. I'm using the screenSetting as Forms, and when i past this.swapBuffer() in the overriden glDraw, my screen is flipping whit writting my openGL render and a blank form. does anyone can help me, before i go back to c++ :)= i'll send you what shoold be in cause: ------------------------------------------------------- class ctrl: OpenGLControl{ ... public override void glDraw(){ GL.glClear(...); ... this.swapBuffer(); } ... public void Main(){ CsGL.Util.screenSetting sf = new ... ctrl c = new ctrl(); ctrl.Parent = sf; Application.run(sf); } } Yeh, see you all |
From: like g. <lik...@ho...> - 2003-07-30 08:32:53
|
hi, i also face the same problem on both Intergraph computer with Intel Pentium II processor, and Intel Pentium III 500 MHz computer system with S2 Trio3D graphics card, as I posted this problem in the previous mail some weeks ago. I was trying to run the sample programs using CsGL for Nehe tutorials, Redbook samples, etc. downloaded. so far i am still stuck with it unsolved... any clue why ? Like. >From: csg...@li... >Reply-To: csg...@li... >To: csg...@li... >Subject: Csgl-users digest, Vol 1 #100 - 1 msg >Date: Tue, 29 Jul 2003 20:04:04 -0700 > >Send Csgl-users mailing list submissions to > csg...@li... > >To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/csgl-users >or, via email, send a message with subject or body 'help' to > csg...@li... > >You can reach the person managing the list at > csg...@li... > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of Csgl-users digest..." > > >Today's Topics: > > 1. I have a problem (hz...@ja...) > >--__--__-- > >Message: 1 >Date: Tue, 29 Jul 2003 10:04:23 -0500 >From: hz...@ja... >To: csg...@li... >Subject: [Csgl-users] I have a problem > > >Hi all >im having a problem with an app created with the csgl Basecode, the >problem is that when program is executed, i cant see my scene , but if >i move the window to a region where i cant see it and move again to see >it, the window renders correct, > >i only realize about this problem when i tested my app in other >computer (integrated intel video card) because on my computer this >doesnt happen (Geforce 2) how can i fix this problem? >thanx > > > > >--__--__-- > >_______________________________________________ >Csgl-users mailing list >Csg...@li... >https://lists.sourceforge.net/lists/listinfo/csgl-users > > >End of Csgl-users Digest _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus |
From: <hz...@ja...> - 2003-07-29 15:12:13
|
Hi all im having a problem with an app created with the csgl Basecode, the problem is that when program is executed, i cant see my scene , but if i move the window to a region where i cant see it and move again to see it, the window renders correct, i only realize about this problem when i tested my app in other computer (integrated intel video card) because on my computer this doesnt happen (Geforce 2) how can i fix this problem? thanx |
From: Like G. <lik...@ly...> - 2003-07-15 09:18:32
|
Hi, I have a problem during displaying the simulation implemented using CsGL on .Net. The display screen often can't display anything, and instead flickering with black background. Only once every tens of times that it renders alright. Could it be that my computer hardware the cause of this ? I tried changing the resolution of my computer. I am running CsGL & .Net using Intergraph computer system, Pentium II processor, 512 MB RAM, Intense3D 4105 graphic adapter, Windows XP. I still couldn't figure it out after some times. Thanks for any help! Like. ____________________________________________________________ Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail! http://login.mail.lycos.com/r/referral?aid=27005 |
From: Joshua B. <jb...@v2...> - 2003-07-14 23:31:03
|
Hello All! I am soliciting your opinions to help with a problem I need to solve. I would like to provide an OpenGL control that allows multiple instances on the same form. This means that more than one OpenGL context will exist. The goal is to provide controls (probably running with their own threads) with the same behavior as the originals with the exception of only one control existing at a time. If someone has a vague idea as to how to solve this problem, I will gladly listen! thx -josh |
From: Lloyd D. <ll...@ga...> - 2003-07-10 22:33:34
|
I will let you generalize it. simple put a normalized vector is a vector of length 1 and the length (remember pythagore ?) is sqrt(x^2 + y^2 + z^2) ----- Original Message ----- From: "Michael Shafrir" <msh...@wa...> To: "Ben Houston" <be...@ex...> Cc: <csg...@li...> Sent: Friday, July 11, 2003 3:00 AM Subject: RE: [Csgl-users] Trouble with CsGL and rotating. > Thanks for the help. Unfortunately I'm new to OpenGL and don't have that > much experience with linear algebra, so I don't really understand how to > normalize the vector. Can you post a snippet of code so I have a better > idea of what to do? > > On Thu, 10 Jul 2003, Ben Houston wrote: > > > The problem you have isn't with CsGL but rather with the OpenGL API. > > > > glRotate excepts as its parameters an angle of rotation and a vector > > around which to rotate. You are currently giving a vector of rotation > > of (1.0f, 1.0f, 0.0f). This is not a unit vector. Because it isn't a > > unit vector I am not surprised that this operation is causing a scaling > > issue. I would normalize that vector and see if that works. > > > > -ben > > www.exocortex.org > > > > > > > -----Original Message----- > > > From: csg...@li... > > > [mailto:csg...@li...] On Behalf Of > > > Michael Shafrir > > > Sent: Thursday, July 10, 2003 8:59 AM > > > To: csg...@li... > > > Subject: [Csgl-users] Trouble with CsGL and rotating. > > > > > > > > > I am writing an app in C# (VS.NET). I am using CsGL for > > > some basic OpenGL stuff. I want to draw an x,y, and z axes in > > > the control, and then rotate the view so that it looks 3D - > > > if you draw the axes and don't rotate them, you wouldn't be > > > able to see the Z axis. > > > > > > Here's my code, which I based mainly on > > > (http://www.componentsnotebook.com/notebooks/csharp/csgl.aspx) > > > . You will see that I called GL.glRotatef(10.0f, 1.0f, 1.0f, > > > 0.0f); at one point. I picked 1.0 for the angle arbitrarily; > > > however, no matter what angle I choose, it only seems to make > > > the axes smaller. Please help, and if there are any questions > > > ask away! > > > > > > Btw, this is how the axes look before I rotate: > > > http://www.terptrader.com/normalaxis.png > > > And after I rotate: http://www.terptrader.com/rotatedaxis.png > > > My goal is to have the axes look 3D, like in this picture: > > > http://wonkosite.ausbone.net/vrml/axis.gif > > > > > > > > > > > > If you could help I would really appreciate it because I am > > > completely stumped right now. > > > > > > > > > > > > private void drawAxis() > > > > > > { > > > > > > double left = 0.05 * Size.Width; > > > > > > double right = 0.95 * Size.Width; > > > > > > double bottom = 0.05 * Size.Height; > > > > > > double top = 0.95 * Size.Height; > > > > > > double origin_x = Size.Width / 2; > > > > > > double origin_y = Size.Height / 2; > > > > > > > > > > > > // draw X axis > > > > > > GL.glBegin( GL.GL_LINES ); > > > > > > GL.glVertex3d( left, origin_x, 0 ); > > > > > > GL.glVertex3d( right, origin_x, 0 ); > > > > > > GL.glEnd(); > > > > > > > > > > > > // draw Y axis > > > > > > GL.glBegin( GL.GL_LINES ); > > > > > > GL.glVertex3d( origin_y, bottom, 0 ); > > > > > > GL.glVertex3d( origin_y, top, 0 ); > > > > > > GL.glEnd(); > > > > > > > > > > > > // draw Z axis > > > > > > GL.glBegin( GL.GL_LINES ); > > > > > > GL.glVertex3d( origin_x, origin_y, 0.0 ); > > > > > > GL.glVertex3d( origin_x, origin_y, 1.0 ); > > > > > > GL.glEnd(); > > > > > > > > > > > > GL.glFlush(); > > > > > > } > > > > > > > > > > > > public override void glDraw() > > > > > > { > > > > > > GL.glRotatef(0.5f, 0.0f, 1.0f, 0.0f); > > > > > > drawAxis(); > > > > > > } > > > > > > > > > > > > protected override void InitGLContext() > > > > > > { > > > > > > GL.glClearColor( 1.0f, 1.0f, 1.0f, 0.0f ); > > > > > > GL.glColor3f( 0.0f, 0.0f, 0.0f ); > > > > > > GL.glPointSize( 4.0f ); > > > > > > } > > > > > > > > > > > > > > > > > > protected override void OnSizeChanged(EventArgs e) > > > > > > { > > > > > > base.OnSizeChanged(e); > > > > > > > > > > > > GL.glClear(GL.GL_COLOR_BUFFER_BIT | > > > GL.GL_DEPTH_BUFFER_BIT); > > > // Clear Screen And Depth Buffer > > > > > > GL.glMatrixMode(GL.GL_PROJECTION); > > > > > > GL.glLoadIdentity(); > > > > > > GL.glOrtho( 0.0, Size.Width, 0.0, > > > Size.Height, 1.0, -1.0 ); > > > > > > GL.glMatrixMode(GL.GL_MODELVIEW); > > > > > > } > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email sponsored by: Parasoft > > > Error proof Web apps, automate testing & more. > > > Download & eval WebKing and get a free book. > > > www.parasoft.com/bulletproofapps > > > _______________________________________________ > > > Csgl-users mailing list > > > Csg...@li... > > > https://lists.sourceforge.net/lists/listinfo/csgl-users > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Parasoft > > Error proof Web apps, automate testing & more. > > Download & eval WebKing and get a free book. > > www.parasoft.com/bulletproofapps > > _______________________________________________ > > Csgl-users mailing list > > Csg...@li... > > https://lists.sourceforge.net/lists/listinfo/csgl-users > > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Parasoft > Error proof Web apps, automate testing & more. > Download & eval WebKing and get a free book. > www.parasoft.com/bulletproofapps > _______________________________________________ > Csgl-users mailing list > Csg...@li... > https://lists.sourceforge.net/lists/listinfo/csgl-users |
From: Michael S. <msh...@wa...> - 2003-07-10 17:05:35
|
Thanks for the help. Unfortunately I'm new to OpenGL and don't have that much experience with linear algebra, so I don't really understand how to normalize the vector. Can you post a snippet of code so I have a better idea of what to do? On Thu, 10 Jul 2003, Ben Houston wrote: > The problem you have isn't with CsGL but rather with the OpenGL API. > > glRotate excepts as its parameters an angle of rotation and a vector > around which to rotate. You are currently giving a vector of rotation > of (1.0f, 1.0f, 0.0f). This is not a unit vector. Because it isn't a > unit vector I am not surprised that this operation is causing a scaling > issue. I would normalize that vector and see if that works. > > -ben > www.exocortex.org > > > > -----Original Message----- > > From: csg...@li... > > [mailto:csg...@li...] On Behalf Of > > Michael Shafrir > > Sent: Thursday, July 10, 2003 8:59 AM > > To: csg...@li... > > Subject: [Csgl-users] Trouble with CsGL and rotating. > > > > > > I am writing an app in C# (VS.NET). I am using CsGL for > > some basic OpenGL stuff. I want to draw an x,y, and z axes in > > the control, and then rotate the view so that it looks 3D - > > if you draw the axes and don't rotate them, you wouldn't be > > able to see the Z axis. > > > > Here's my code, which I based mainly on > > (http://www.componentsnotebook.com/notebooks/csharp/csgl.aspx) > > . You will see that I called GL.glRotatef(10.0f, 1.0f, 1.0f, > > 0.0f); at one point. I picked 1.0 for the angle arbitrarily; > > however, no matter what angle I choose, it only seems to make > > the axes smaller. Please help, and if there are any questions > > ask away! > > > > Btw, this is how the axes look before I rotate: > > http://www.terptrader.com/normalaxis.png > > And after I rotate: http://www.terptrader.com/rotatedaxis.png > > My goal is to have the axes look 3D, like in this picture: > > http://wonkosite.ausbone.net/vrml/axis.gif > > > > > > > > If you could help I would really appreciate it because I am > > completely stumped right now. > > > > > > > > private void drawAxis() > > > > { > > > > double left = 0.05 * Size.Width; > > > > double right = 0.95 * Size.Width; > > > > double bottom = 0.05 * Size.Height; > > > > double top = 0.95 * Size.Height; > > > > double origin_x = Size.Width / 2; > > > > double origin_y = Size.Height / 2; > > > > > > > > // draw X axis > > > > GL.glBegin( GL.GL_LINES ); > > > > GL.glVertex3d( left, origin_x, 0 ); > > > > GL.glVertex3d( right, origin_x, 0 ); > > > > GL.glEnd(); > > > > > > > > // draw Y axis > > > > GL.glBegin( GL.GL_LINES ); > > > > GL.glVertex3d( origin_y, bottom, 0 ); > > > > GL.glVertex3d( origin_y, top, 0 ); > > > > GL.glEnd(); > > > > > > > > // draw Z axis > > > > GL.glBegin( GL.GL_LINES ); > > > > GL.glVertex3d( origin_x, origin_y, 0.0 ); > > > > GL.glVertex3d( origin_x, origin_y, 1.0 ); > > > > GL.glEnd(); > > > > > > > > GL.glFlush(); > > > > } > > > > > > > > public override void glDraw() > > > > { > > > > GL.glRotatef(0.5f, 0.0f, 1.0f, 0.0f); > > > > drawAxis(); > > > > } > > > > > > > > protected override void InitGLContext() > > > > { > > > > GL.glClearColor( 1.0f, 1.0f, 1.0f, 0.0f ); > > > > GL.glColor3f( 0.0f, 0.0f, 0.0f ); > > > > GL.glPointSize( 4.0f ); > > > > } > > > > > > > > > > > > protected override void OnSizeChanged(EventArgs e) > > > > { > > > > base.OnSizeChanged(e); > > > > > > > > GL.glClear(GL.GL_COLOR_BUFFER_BIT | > > GL.GL_DEPTH_BUFFER_BIT); > > // Clear Screen And Depth Buffer > > > > GL.glMatrixMode(GL.GL_PROJECTION); > > > > GL.glLoadIdentity(); > > > > GL.glOrtho( 0.0, Size.Width, 0.0, > > Size.Height, 1.0, -1.0 ); > > > > GL.glMatrixMode(GL.GL_MODELVIEW); > > > > } > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Parasoft > > Error proof Web apps, automate testing & more. > > Download & eval WebKing and get a free book. > > www.parasoft.com/bulletproofapps > > _______________________________________________ > > Csgl-users mailing list > > Csg...@li... > > https://lists.sourceforge.net/lists/listinfo/csgl-users > > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Parasoft > Error proof Web apps, automate testing & more. > Download & eval WebKing and get a free book. > www.parasoft.com/bulletproofapps > _______________________________________________ > Csgl-users mailing list > Csg...@li... > https://lists.sourceforge.net/lists/listinfo/csgl-users > |
From: Ben H. <be...@ex...> - 2003-07-10 14:49:44
|
The problem you have isn't with CsGL but rather with the OpenGL API. glRotate excepts as its parameters an angle of rotation and a vector around which to rotate. You are currently giving a vector of rotation of (1.0f, 1.0f, 0.0f). This is not a unit vector. Because it isn't a unit vector I am not surprised that this operation is causing a scaling issue. I would normalize that vector and see if that works. -ben www.exocortex.org > -----Original Message----- > From: csg...@li... > [mailto:csg...@li...] On Behalf Of > Michael Shafrir > Sent: Thursday, July 10, 2003 8:59 AM > To: csg...@li... > Subject: [Csgl-users] Trouble with CsGL and rotating. > > > I am writing an app in C# (VS.NET). I am using CsGL for > some basic OpenGL stuff. I want to draw an x,y, and z axes in > the control, and then rotate the view so that it looks 3D - > if you draw the axes and don't rotate them, you wouldn't be > able to see the Z axis. > > Here's my code, which I based mainly on > (http://www.componentsnotebook.com/notebooks/csharp/csgl.aspx) > . You will see that I called GL.glRotatef(10.0f, 1.0f, 1.0f, > 0.0f); at one point. I picked 1.0 for the angle arbitrarily; > however, no matter what angle I choose, it only seems to make > the axes smaller. Please help, and if there are any questions > ask away! > > Btw, this is how the axes look before I rotate: > http://www.terptrader.com/normalaxis.png > And after I rotate: http://www.terptrader.com/rotatedaxis.png > My goal is to have the axes look 3D, like in this picture: > http://wonkosite.ausbone.net/vrml/axis.gif > > > > If you could help I would really appreciate it because I am > completely stumped right now. > > > > private void drawAxis() > > { > > double left = 0.05 * Size.Width; > > double right = 0.95 * Size.Width; > > double bottom = 0.05 * Size.Height; > > double top = 0.95 * Size.Height; > > double origin_x = Size.Width / 2; > > double origin_y = Size.Height / 2; > > > > // draw X axis > > GL.glBegin( GL.GL_LINES ); > > GL.glVertex3d( left, origin_x, 0 ); > > GL.glVertex3d( right, origin_x, 0 ); > > GL.glEnd(); > > > > // draw Y axis > > GL.glBegin( GL.GL_LINES ); > > GL.glVertex3d( origin_y, bottom, 0 ); > > GL.glVertex3d( origin_y, top, 0 ); > > GL.glEnd(); > > > > // draw Z axis > > GL.glBegin( GL.GL_LINES ); > > GL.glVertex3d( origin_x, origin_y, 0.0 ); > > GL.glVertex3d( origin_x, origin_y, 1.0 ); > > GL.glEnd(); > > > > GL.glFlush(); > > } > > > > public override void glDraw() > > { > > GL.glRotatef(0.5f, 0.0f, 1.0f, 0.0f); > > drawAxis(); > > } > > > > protected override void InitGLContext() > > { > > GL.glClearColor( 1.0f, 1.0f, 1.0f, 0.0f ); > > GL.glColor3f( 0.0f, 0.0f, 0.0f ); > > GL.glPointSize( 4.0f ); > > } > > > > > > protected override void OnSizeChanged(EventArgs e) > > { > > base.OnSizeChanged(e); > > > > GL.glClear(GL.GL_COLOR_BUFFER_BIT | > GL.GL_DEPTH_BUFFER_BIT); > // Clear Screen And Depth Buffer > > GL.glMatrixMode(GL.GL_PROJECTION); > > GL.glLoadIdentity(); > > GL.glOrtho( 0.0, Size.Width, 0.0, > Size.Height, 1.0, -1.0 ); > > GL.glMatrixMode(GL.GL_MODELVIEW); > > } > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Parasoft > Error proof Web apps, automate testing & more. > Download & eval WebKing and get a free book. > www.parasoft.com/bulletproofapps > _______________________________________________ > Csgl-users mailing list > Csg...@li... > https://lists.sourceforge.net/lists/listinfo/csgl-users > |
From: Michael S. <msh...@wa...> - 2003-07-10 13:59:42
|
I am writing an app in C# (VS.NET). I am using CsGL for some basic OpenGL stuff. I want to draw an x,y, and z axes in the control, and then rotate the view so that it looks 3D - if you draw the axes and don't rotate them, you wouldn't be able to see the Z axis. Here's my code, which I based mainly on (http://www.componentsnotebook.com/notebooks/csharp/csgl.aspx). You will see that I called GL.glRotatef(10.0f, 1.0f, 1.0f, 0.0f); at one point. I picked 1.0 for the angle arbitrarily; however, no matter what angle I choose, it only seems to make the axes smaller. Please help, and if there are any questions ask away! Btw, this is how the axes look before I rotate: http://www.terptrader.com/normalaxis.png And after I rotate: http://www.terptrader.com/rotatedaxis.png My goal is to have the axes look 3D, like in this picture: http://wonkosite.ausbone.net/vrml/axis.gif If you could help I would really appreciate it because I am completely stumped right now. private void drawAxis() { double left = 0.05 * Size.Width; double right = 0.95 * Size.Width; double bottom = 0.05 * Size.Height; double top = 0.95 * Size.Height; double origin_x = Size.Width / 2; double origin_y = Size.Height / 2; // draw X axis GL.glBegin( GL.GL_LINES ); GL.glVertex3d( left, origin_x, 0 ); GL.glVertex3d( right, origin_x, 0 ); GL.glEnd(); // draw Y axis GL.glBegin( GL.GL_LINES ); GL.glVertex3d( origin_y, bottom, 0 ); GL.glVertex3d( origin_y, top, 0 ); GL.glEnd(); // draw Z axis GL.glBegin( GL.GL_LINES ); GL.glVertex3d( origin_x, origin_y, 0.0 ); GL.glVertex3d( origin_x, origin_y, 1.0 ); GL.glEnd(); GL.glFlush(); } public override void glDraw() { GL.glRotatef(0.5f, 0.0f, 1.0f, 0.0f); drawAxis(); } protected override void InitGLContext() { GL.glClearColor( 1.0f, 1.0f, 1.0f, 0.0f ); GL.glColor3f( 0.0f, 0.0f, 0.0f ); GL.glPointSize( 4.0f ); } protected override void OnSizeChanged(EventArgs e) { base.OnSizeChanged(e); GL.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT); // Clear Screen And Depth Buffer GL.glMatrixMode(GL.GL_PROJECTION); GL.glLoadIdentity(); GL.glOrtho( 0.0, Size.Width, 0.0, Size.Height, 1.0, -1.0 ); GL.glMatrixMode(GL.GL_MODELVIEW); } |
From: Steve R. <Ste...@In...> - 2003-07-10 07:03:36
|
Lloyd - Thanks for the reply. To be a bit more clear, the ARB_vertex_buffer_object is a relatively recent ogl extension. See http://oss.sgi.com/projects/ogl- sample/registry/ARB/vertex_buffer_object.txt Its recently been supported by the video drivers for my machine (ATI - Radeon 8500 LE) and I'd like to be able to use it from within CsGL. So I made an attempt at adding it by using the CsGL generator utility. However, so far I've only been partially successfull. I can edit the extension header, as required so that it can be parsed by generator. I can then include the generated code in the CsGL source and rebuild CsGL. I can then compile and link my C# code, which includes calls to methods such as glBindBufferARB(ARRAY_BUFFER_ARB, 1) to the extended CsGL.dll successfully. However, once I get that far the code won't run - whether it calls the ARB_vertex_buffer_objects or not. But the primary question is not what my specific problems are, but if anybody has successfully included these extensions before. Thanks, - Steve Quoting Lloyd Dupont <ll...@ga...>: > mmhh... > can't see the macro you're speaking about in your header ... > > ----- Original Message ----- > From: "Steve Rennich" <Ste...@In...> > To: <csg...@li...> > Sent: Wednesday, July 09, 2003 2:31 AM > Subject: [Csgl-users] Any success with ARB_vertex_buffer_object in CsGL > > > > > > Hello - > > > > I'd just like to ask if anybody has had any succes in adding the > > ARB_vertex_buffer_object extensions to CsGL. I think I'm halfway through > it. > > Currently stuck with a few odd bugs and trying to figure out how to best > > duplicate the BUFFER_OFFSET() macro in C#. > > > > #define BUFFER_OFFSET(i) ((char *)NULL + (i)) > > ColorPointer(4, UNSIGNED_BYTE, 0, BUFFER_OFFSET(256)); > > > > Mostly I'd just like to know if anybody's successfully done this yet. > > > > The extension header I'm using with generator.exe is attached if > interested. > > > > Thanks, > > > > - Steve > > > > > > > > ------------------------------------------------- > > This mail sent through IMP: http://horde.org/imp/ > > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Parasoft > Error proof Web apps, automate testing & more. > Download & eval WebKing and get a free book. > www.parasoft.com/bulletproofapps > _______________________________________________ > Csgl-users mailing list > Csg...@li... > https://lists.sourceforge.net/lists/listinfo/csgl-users > > ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ |
From: Christian B. <Ch...@be...> - 2003-07-10 00:18:36
|
According to this... http://developer.nvidia.com/docs/IO/2644/ATT/GDC2002_Multisample.pdf <http://developer.nvidia.com/docs/IO/2644/ATT/GDC2002_Multisample.pdf> In order to do FSAA using the WGL_ARB_multisample extensions I need to be able to create a window with a pixelformat that has a specified level of multisampling enabled. Then turn it on using glEnable (GL_MULTISAMPLE_ARB). -chris -----Original Message----- From: Lloyd Dupont [mailto:ll...@ga...] Sent: Wednesday, July 09, 2003 5:13 PM To: Christian Beaumont; csg...@li... Subject: Re: [Csgl-users] multisample extension what do you mean ? 'multisample window context', I don't understand the question .... ----- Original Message ----- From: Christian <mailto:Ch...@be...> Beaumont To: csg...@li... <mailto:csg...@li...> Sent: Thursday, July 10, 2003 10:07 AM Subject: [Csgl-users] multisample extension Does anyone know how to create a multisample window context using CsGL? Code would be greatly appreciated as I have no clue how to do this. cheers, -chris |
From: Lloyd D. <ll...@ga...> - 2003-07-10 00:13:15
|
what do you mean ? 'multisample window context', I don't understand the question .... ----- Original Message -----=20 From: Christian Beaumont=20 To: csg...@li...=20 Sent: Thursday, July 10, 2003 10:07 AM Subject: [Csgl-users] multisample extension Does anyone know how to create a multisample window context using = CsGL? =20 Code would be greatly appreciated as I have no clue how to do this. =20 cheers, -chris |
From: Christian B. <Ch...@be...> - 2003-07-10 00:08:21
|
Does anyone know how to create a multisample window context using CsGL? Code would be greatly appreciated as I have no clue how to do this. cheers, -chris |
From: Lloyd D. <ll...@ga...> - 2003-07-09 10:32:14
|
mmhh... can't see the macro you're speaking about in your header ... ----- Original Message ----- From: "Steve Rennich" <Ste...@In...> To: <csg...@li...> Sent: Wednesday, July 09, 2003 2:31 AM Subject: [Csgl-users] Any success with ARB_vertex_buffer_object in CsGL > > Hello - > > I'd just like to ask if anybody has had any succes in adding the > ARB_vertex_buffer_object extensions to CsGL. I think I'm halfway through it. > Currently stuck with a few odd bugs and trying to figure out how to best > duplicate the BUFFER_OFFSET() macro in C#. > > #define BUFFER_OFFSET(i) ((char *)NULL + (i)) > ColorPointer(4, UNSIGNED_BYTE, 0, BUFFER_OFFSET(256)); > > Mostly I'd just like to know if anybody's successfully done this yet. > > The extension header I'm using with generator.exe is attached if interested. > > Thanks, > > - Steve > > > > ------------------------------------------------- > This mail sent through IMP: http://horde.org/imp/ > |
From: Steve R. <Ste...@In...> - 2003-07-08 20:48:28
|
Hello - I'd just like to ask if anybody has had any succes in adding the ARB_vertex_buffer_object extensions to CsGL. I think I'm halfway through it. Currently stuck with a few odd bugs and trying to figure out how to best duplicate the BUFFER_OFFSET() macro in C#. #define BUFFER_OFFSET(i) ((char *)NULL + (i)) ColorPointer(4, UNSIGNED_BYTE, 0, BUFFER_OFFSET(256)); Mostly I'd just like to know if anybody's successfully done this yet. The extension header I'm using with generator.exe is attached if interested. Thanks, - Steve ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ |
From: Lloyd D. <ll...@ga...> - 2003-07-01 06:52:03
|
> Is there any known reason why VAO's wouldn't work as well with CsGL? Or am I > just having trouble finding the inefficiency in my code? yes, there is ... it's an interop thing.... when you pass an arry like float[] to the non-managed word a few under the hood things occur. it looks like you simple pass the address of the first value in most respect (as some advanced test seems to confirm) but, on the other some performance test prove me that there is more than simply an address passing .... ----- Original Message ----- From: "Steve Rennich" <Ste...@In...> To: <csg...@li...> Sent: Tuesday, July 01, 2003 12:05 PM Subject: [Csgl-users] Vertex Array Objects in CsGL > > > Hello - > > I've been poking around with CsGL a bit with an eye towards starting to use C# > and CsGL for a VR app. My initial interest is in determining how efficient this > combination is relative to straight C++/OGL. > > So far things look very good. The samples that I've created don't show any > appreciable performance reduction at all. With the exception of the > glDrawElementArrayATI function. Strangely, when using Vertex Array Objects in > CsGL, things work, but the triangle rate is 1/2 what I get for compiled vertex > arrays. However, in C++ with VAO's, the triangle rate is triple what I get for > compiled vertex arrays. (The triangle rate for compile vertex arrays is the > same in C#/CsGL and C++/OGL.) > > Is there any known reason why VAO's wouldn't work as well with CsGL? Or am I > just having trouble finding the inefficiency in my code? > > Thanks, > > - Steve > > ------------------------------------------------- > This mail sent through IMP: http://horde.org/imp/ > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > Csgl-users mailing list > Csg...@li... > https://lists.sourceforge.net/lists/listinfo/csgl-users |
From: Steve R. <Ste...@In...> - 2003-07-01 06:20:27
|
Hello - I've been poking around with CsGL a bit with an eye towards starting to use C# and CsGL for a VR app. My initial interest is in determining how efficient this combination is relative to straight C++/OGL. So far things look very good. The samples that I've created don't show any appreciable performance reduction at all. With the exception of the glDrawElementArrayATI function. Strangely, when using Vertex Array Objects in CsGL, things work, but the triangle rate is 1/2 what I get for compiled vertex arrays. However, in C++ with VAO's, the triangle rate is triple what I get for compiled vertex arrays. (The triangle rate for compile vertex arrays is the same in C#/CsGL and C++/OGL.) Is there any known reason why VAO's wouldn't work as well with CsGL? Or am I just having trouble finding the inefficiency in my code? Thanks, - Steve ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ |
From: Roygar B. <roy...@ho...> - 2003-06-29 06:23:10
|
I'm porting a MDI application from MFC to C#, in MFC I shared one context with every opengl windows, but I'm having trouble doing the same using CsGL, Does anyone knows how to this ? or where I cand find some demo or article about it.? I really can't afford having one context for each form... Thanks Roy _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail |
From: Lloyd D. <ll...@ga...> - 2003-06-27 09:36:23
|
I know that randy ridge was able to make a GLUT implementation working on linux. check out http://www.RandyRidge.com ----- Original Message ----- From: Christian Beaumont To: csg...@li... Sent: Friday, June 27, 2003 4:17 PM Subject: [Csgl-users] mono / csgl What is the status of CsGL running on various linux/mac platforms using mono? It looks like you might have been tried, so interested what the gotchas were (if any) Thanks -chris |
From: Christian B. <Ch...@be...> - 2003-06-27 06:17:36
|
What is the status of CsGL running on various linux/mac platforms using mono? It looks like you might have been tried, so interested what the gotchas were (if any) Thanks -chris |
From: Lloyd D. <ll...@ga...> - 2003-06-26 11:14:23
|
in fact I don't understand what you mean. I have no idea how "opengl try to draw in the picturebox all the time".... .... .... much thinking .... .... .... .... do you mean you have an OpenGL thread looping and drawing and drawing and drawing ? there is only one way not too mess different drawing in your picture box. this is not particular to OpenGL, this is common windows form knowledge: - override OnPaintBackground() so that it does nothing - override OnPaint() and do all your drawing, OpenGL or GDI or whatsoever there and only there (don't use event). I hope this 2 advices would help you. otherwise, please, post some code samples .... ----- Original Message ----- From: "catu74" <ca...@te...> To: "Lloyd Dupont" <ll...@ga...> Sent: Thursday, June 26, 2003 9:06 PM Subject: Re: [Csgl-users] VB.NET, OPENGL, PICTUREBOX & XP Thank you for your answer. My problem is that I want to draw in real time two functions, so I think the best is to use a picturebox or something similar, but I am programming in vb.net since two weeks ago, so i do`'t know too much about it. My problem is with the opengl double buffer. I have developed the code for drawing in a picturebox and it works well if I have to draw only a function, but if I want to change the function in real time the problem starts , because the opengl try to draw in the picturebox all the time, although I don't use de glflush or the swapbuffer for drawing. I hope you understand me , and sorry about my english, but is not as good as I would like. Thank you Nacho ----- Original Message ----- From: "Lloyd Dupont" <ll...@ga...> To: "catu74" <ca...@ol...>; <csg...@li...> Sent: Thursday, June 26, 2003 11:16 AM Subject: Re: [Csgl-users] VB.NET, OPENGL, PICTUREBOX & XP > why do you want to draw directly to a picture box, it a bit dangerous things > to do .. > 1st: it might not work at all (OpenGL 'MIGHT' be imcompatible with GDI...) > 2nd: wit your own custon OnPaint() & OnPaintBackground() that should be ok > > which double buffer are you speaking about ? > the OpenGL double buffer ? the SetStyle(ControlStyles.DoubleBuffer, true) ? > I'm not sure they mix well...... > > > ----- Original Message ----- > From: "catu74" <ca...@ol...> > To: <csg...@li...> > Sent: Thursday, June 26, 2003 7:10 PM > Subject: [Csgl-users] VB.NET, OPENGL, PICTUREBOX & XP > > > I have programmed a simple code in VB.net for drawing in a picturebox > by using Opengl. My problem is that the doublebuffer doesn´t work > correctly. If I create a new list , and I begin 3 new lines , after > read the first line of the list, vb starts to draw in the picturebox > altough I don't use the glflush o swapbuffer commands. Someone could > help me? > Thank you > Nacho > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > _______________________________________________ > Csgl-users mailing list > Csg...@li... > https://lists.sourceforge.net/lists/listinfo/csgl-users > > > |
From: Lloyd D. <ll...@ga...> - 2003-06-26 09:19:00
|
why do you want to draw directly to a picture box, it a bit dangerous= things to do .. 1st: it might not work at all (OpenGL 'MIGHT' be imcompatible with GD= I...) 2nd: wit your own custon OnPaint() & OnPaintBackground() that should = be ok which double buffer are you speaking about ? the OpenGL double buffer ? the SetStyle(ControlStyles.DoubleBuffer, t= rue) ? I'm not sure they mix well...... ----- Original Message -----=20 =46rom: "catu74" <ca...@ol...> To: <csg...@li...> Sent: Thursday, June 26, 2003 7:10 PM Subject: [Csgl-users] VB.NET, OPENGL, PICTUREBOX & XP I have programmed a simple code in VB.net for drawing in a picturebox by using Opengl. My problem is that the doublebuffer doesn=B4t work correctly. If I create a new list , and I begin 3 new lines , after read the first line of the list, vb starts to draw in the picturebox altough I don't use the glflush o swapbuffer commands. Someone could help me? Thank you Nacho ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partn= er. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commissi= on! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.ph= p _______________________________________________ Csgl-users mailing list Csg...@li... https://lists.sourceforge.net/lists/listinfo/csgl-users |
From: catu74 <ca...@ol...> - 2003-06-26 09:10:59
|
I have programmed a simple code in VB=2Enet for drawing in a picturebox = by using Opengl=2E My problem is that the doublebuffer doesn=B4t work = correctly=2E If I create a new list =2C and I begin 3 new lines =2C after= = read the first line of the list=2C vb starts to draw in the picturebox = altough I don=27t use the glflush o swapbuffer commands=2E Someone could = help me=3F Thank you = Nacho = |