Search:
Type: Posts; User: Simon666
Search:
Search took 0.66 seconds; generated 29 minute(s) ago.
-
June 10th, 2015, 02:51 PM
33627
Hi all,
for my program I want to try something new, I would like to draw a transparent sphere with a smaller non transparent one inside, as illustrated. Any idea how to do this?
All I...
-
It pays to look at the documentation of the functions:
The error is here:
hr = AVIStreamWrite(psCompressed, // stream pointer
(m_nframe) * ONETICKTIME, // time of this frame...
-
Hello all,
I have code (found long time ago, ~2001) to make videos from OpenGL rendering in my view class. In my OnDraw() function I call the function SaveAsAvi(). This works as intended until I...
-
April 20th, 2015, 07:55 AM
Doesn't seem to work. In the meantime I've found the function gluSphere and gluCylinder do what i want without needing any glut functions. Ah, the joys of trying to get code written around 2001 up to...
-
April 20th, 2015, 06:49 AM
This travesty can hardly be called "documentation".
http://freeglut.sourceforge.net/docs/api.php
Maybe I need to look for something else than freeglut. I have an MDI application and as such I...
-
April 20th, 2015, 06:12 AM
Still stuck. Is it possible I need to call glutInit somewhere first with freeglut? With the old glut version I didn't need this.
-
April 18th, 2015, 10:39 AM
Well, as explained, it's also in Debug mode. When I run in Debug mode, I also get no useful info as to what the cause is and how to solve it.
-
April 17th, 2015, 03:57 PM
Additional info:
It appears to be that the only reason it works in Debug mode is that glut32.lib was in the additional dependencies in Debug configuration. When changing to freeglut.lib instead I...
-
April 17th, 2015, 03:22 PM
Hi,
I'm making a call to glutSolidSphere somewhere in my program. When I compile in Debug configuration, a sphere can be correctly rendered. In Release configuration, the project compiles, the exe...
-
October 30th, 2014, 06:00 AM
I have decided to contact Dr. David H. Eberly, which is referenced as the source upon which the author in the first link I provided based himself upon. Dr. Eberly was kind enough to write an...
-
October 29th, 2014, 11:11 AM
Does anyone know a good algorithm for calculating the closest points/distance between two line segments? I use some pretty general code:
http://geomalgorithms.com/a07-_distance.html
which seems...
-
March 27th, 2014, 04:16 AM
Hi all,
My application compiles fine with Win32 and runs fine, but for x64 it compiles fine but crashes on:
CMainFrame* pMainFrame = new CMainFrame;
if...
-
October 18th, 2013, 10:03 AM
So I have this Computational Fluid Dynamics data, it is a two dimensional point cloud. Anyone know any good algorithms for, given a point location (x,y), to find a value and to find this value fast?...
-
October 17th, 2013, 07:33 AM
I want to emulate shutter time with OpenGL. I found this below gives the best results:
ClearScene();
DrawScene();
DrawMovingObject();
glAccum(GL_LOAD, 1.0/n );
-
September 12th, 2013, 09:18 AM
Any hints on how to use OpenGL fonts? I'm using the following functions below, BuildFont is called in OnCreate, KillFont in OnDestroy, then e.g.:
glRasterPos3d(0.5, 0.5, 0.50 );
...
-
September 12th, 2013, 08:13 AM
In my code, it's not there:
static PIXELFORMATDESCRIPTOR pfd = {
sizeof(PIXELFORMATDESCRIPTOR), // size of this pfd
1, // version number...
-
September 12th, 2013, 03:28 AM
Hi,
I have used this code so many years ago and it has most of the time worked fine (and is working fine now on my operating system). However, on some computers of other people, it sometimes shows...
-
April 26th, 2013, 06:23 PM
Wow, that works even better. Thanks a lot. There were 400+ occurrences in one file alone, I had seriously underestimated the number of occurrences and the manual work it would have taken. There are...
-
April 26th, 2013, 06:11 PM
Anyway, this did the trick:
CStdioFile InputFile;
if (InputFile.Open(FileName,CFile::modeRead|CFile::typeBinary))
{
CString Line; CString ToFind; ToFind.Format("when");
...
-
April 26th, 2013, 05:50 PM
I use Multi Byte character set in my project configuration. The pdf I have no clue how to find out.
-
April 26th, 2013, 02:33 PM
Anyway, I got an idea, I might use GetPosition and check if it is anywhere near the end of the file, if not just call ReadString again in a while loop. I'll first try that.
-
April 26th, 2013, 02:16 PM
Maybe Google CImage class?
-
April 26th, 2013, 01:52 PM
-
April 26th, 2013, 01:40 PM
1) I checked that doesn't occur.
2) Same.
It is metadata of pictures from Adobe Photoshop.
Victor, I did not ignore you. I addressed that issue specifically. There are about 80 entries per...
-
April 26th, 2013, 10:23 AM
InputFile.Open(FileName,CFile::modeRead|CFile::typeBinary))
Let's me read a lot further but it still exits way before the actual end of the file.
|
Click Here to Expand Forum to Full Width
|