hi, I am wondering how to turn the camera when my object turns in 1st person view using gluLookat and how to zoom in on a particular object or scene. Thanks in advance.
Type: Posts; User: godhand
hi, I am wondering how to turn the camera when my object turns in 1st person view using gluLookat and how to zoom in on a particular object or scene. Thanks in advance.
Hi, just wondering if I have a cube resting at (20,0,40) and I have an object moving towards it, how do I know that the object is actually side by side(close) the cube or directly over it? thanks!
Hi, I have done this function draw_random_tank() in OpenGL, this function generate random numbers and place the objects on my landscape based on the random numbers generated. My question is this,...
Hi, I am trying to generate a landscape and was told to use mid point displacement algorithm, can someone please tell me how it works? thanks
Hi, I have a question about displaying the image in viewports. I have three viewports, but only the main object displayed is the correct shape and dimension, the other two are distorted. Is it the...
Hi, I want to design a function so if the user press "c" at any time during my program, this function will display random color on the object from green, yellow, blue and red. How do I do it? thanks...
Hi, could you give me an example which uses the time offset to get the correct time zone please?
Hi, just wondering if I have a program which accepts a string name such as "paris" or "tokyo", how would I use any of the function in the <time.h> to display the correct time as specified by the city...
Hi, just wondering how I can assign the member of the "struct tm" to an integer? I tried doing the following, but get the error message "dereferencing pointer to incomplete type". when I do line 5 to...
"int hours = ((curTime / 3600) % 24) - 7;"
this one gives weird number, for example, at 1 am now, it gave me 8?? What does it mean?
Hi, I am trying to write an OpengGL program which displays the current time on an analouge clock interface. I have drawn the clock, but I have no idea how to implement function such as...
Hi, I am trying to draw up a clock using primitives, but after I have drawn a certain number of element of the clock on the screen, nothing more is displayed afterwards. Any help or suggestion is...
If I use fgetc to read one character at a time in a file, how to I move to the next line after I encounter a new line character and loop until I hit end of file? thanks for any help.
hi anonytmouse, your suggested way did work, however, could you explain what this means:
cInstances[array[index]]++;
I have not seen this before.
they are all integer numbers, positive. No range restriction.
for(outrow=0;outrow<in->rows;outrow++)
{
for(outcol=0;outcol<in->cols;outcol++)
{
temp=testarray[outrow][outcol];
...
Sorry about not making it too clear, what I mean is to find the probability of occurences in each individual element in the 2d mentional array.
So say if I have this 3x3 array:
...
Hi, how would I improve the speed of finding probability of the occurency of each variable in a 2-dimenstional array? I am now currently using 4 for loops, it worked fine for small arrays like 3x3,...
Does anyone here knows how to use unicode in a c program? any help would be appreciated!
Hello, just wondering what are some of the good font or symbol librarys on the net I can download for my Debian.
Hello, is it possible to use different fonts in your c program? For example, printing hello world in Arial font?
The system is Debian.
it's just that when I try to do printf("%c", 128 or above) my system doesn't display the character.
Hi, would anyone please tell me how can download the extended ascii table to my Debian linux? thanks
It happens that my Debian linux does not have extended ascii characters, do any linux guru here knows how I can somehow add the extended ascii to my linux?