Search:

Type: Posts; User: godhand

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    2,138

    help with zooming and turing camera

    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.
  2. Replies
    2
    Views
    1,524

    simple collision detection question

    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!
  3. Replies
    1
    Views
    1,188

    help with some game logics

    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,...
  4. Replies
    3
    Views
    4,087

    Generate landscape using openGL

    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
  5. Replies
    0
    Views
    1,272

    viewport distorts image?

    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...
  6. Replies
    1
    Views
    8,143

    changing color in OpenGL

    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...
  7. Replies
    5
    Views
    1,521

    Hi, could you give me an example which uses the...

    Hi, could you give me an example which uses the time offset to get the correct time zone please?
  8. Replies
    5
    Views
    1,521

    question on how to get different time zone

    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...
  9. Replies
    2
    Views
    1,765

    accessing structure pointer problem

    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...
  10. Replies
    3
    Views
    1,666

    "int hours = ((curTime / 3600) % 24) - 7;" ...

    "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?
  11. Replies
    3
    Views
    1,666

    help programming an analogue clock

    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...
  12. Replies
    1
    Views
    1,679

    Newbie opengl display problem.

    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...
  13. Thread: fgetc question

    by godhand
    Replies
    12
    Views
    3,880

    fgetc question

    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.
  14. Replies
    11
    Views
    2,575

    hi anonytmouse, your suggested way did work,...

    hi anonytmouse, your suggested way did work, however, could you explain what this means:



    cInstances[array[index]]++;


    I have not seen this before.
  15. Replies
    11
    Views
    2,575

    they are all integer numbers, positive. No range...

    they are all integer numbers, positive. No range restriction.
  16. Replies
    11
    Views
    2,575

    for(outrow=0;outrowrows;outrow++) { ...

    for(outrow=0;outrow<in->rows;outrow++)
    {

    for(outcol=0;outcol<in->cols;outcol++)
    {

    temp=testarray[outrow][outcol];
    ...
  17. Replies
    11
    Views
    2,575

    Sorry about not making it too clear, what I mean...

    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:



    ...
  18. Replies
    11
    Views
    2,575

    help to improve program efficiency and speed

    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,...
  19. Thread: unicode

    by godhand
    Replies
    1
    Views
    1,035

    unicode

    Does anyone here knows how to use unicode in a c program? any help would be appreciated!
  20. Replies
    0
    Views
    1,492

    fonts or symbol library

    Hello, just wondering what are some of the good font or symbol librarys on the net I can download for my Debian.
  21. Replies
    1
    Views
    1,233

    using fonts in program?

    Hello, is it possible to use different fonts in your c program? For example, printing hello world in Arial font?
  22. Replies
    7
    Views
    5,214

    The system is Debian.

    The system is Debian.
  23. Replies
    7
    Views
    5,214

    it's just that when I try to do printf("%c", 128...

    it's just that when I try to do printf("%c", 128 or above) my system doesn't display the character.
  24. Replies
    7
    Views
    5,214

    help! extended ascii table

    Hi, would anyone please tell me how can download the extended ascii table to my Debian linux? thanks
  25. Replies
    7
    Views
    1,635

    It happens that my Debian linux does not have...

    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?
Results 1 to 25 of 31
Page 1 of 2 1 2