Search:

Type: Posts; User: Duetti

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    3,190

    What about this thread geek? :-) Duetti

    What about this thread geek?

    :-)

    Duetti
  2. Replies
    9
    Views
    9,791

    Attention BMJ, he he he I've done what I...

    Attention BMJ, he he he

    I've done what I wanted to do, so there is no reason to ask for anyone's help nor will I ever attempt to ask for help on forum's like this since they seem to be occupied...
  3. Replies
    9
    Views
    9,791

    > You don't sort them in anti-clockwise or...

    > You don't sort them in anti-clockwise or clockwise. Create the object with the sort order in mind and then let your 3D art proggy do the rest.

    Are you some kind of a moron? The "3D art proggy"...
  4. Thread: 2D Clipping

    by Duetti
    Replies
    10
    Views
    3,953

    Alright, we clip a line segment by looping...

    Alright, we clip a line segment by looping through the clipping region's edges.

    We clip a polygon by clipping it against each edge of the clipping region. Like so:



    for every edge in the...
  5. Thread: 2D Clipping

    by Duetti
    Replies
    10
    Views
    3,953

    > Just because you know the mathematics does NOT...

    > Just because you know the mathematics does NOT mean you know how to program it. What I meant was have you written a program to clip a line to a polyogn, if not do that first.

    No it doesn't. Yes,...
  6. Thread: 2D Clipping

    by Duetti
    Replies
    10
    Views
    3,953

    Read all previous posts before posting...

    Read all previous posts before posting "MrWizard".

    > Do you know how to clip a line to a polygon?

    From my original post...


    > I don't even know what you mean when you say

    From my...
  7. Thread: 2D Clipping

    by Duetti
    Replies
    10
    Views
    3,953

    Doesn't anyone have an idea? What kind of a game...

    Doesn't anyone have an idea? What kind of a game programming forum is this anyway?
  8. Thread: 2D Clipping

    by Duetti
    Replies
    10
    Views
    3,953

    2D Clipping

    Anyone know how to clip a convex polygon against another convex polygon?

    The basic algorithm goes like this:

    for every edge of the clipping region
    for every edge of the polygon
    clip...
  9. Replies
    9
    Views
    9,791

    >Are you given just a random set of points that...

    >Are you given just a random set of points that make up a polygon?
    Yes, a random set of points that has been entered by the user.

    >Are your polygons limited to the convex case?
    Yes they are.
    ...
  10. Replies
    9
    Views
    9,791

    How to sort polygon vertices anticlockwise

    Good afternoon,

    I need an algorithm to sort the vertices of a polygon in an anticlockwise order. I know it's rather simple (everything is!) but I get confused every time I try to do it.

    C code...
  11. Replies
    8
    Views
    3,190

    Apologies for the delay Silvercord. I tried to...

    Apologies for the delay Silvercord. I tried to fix a few problems with the module. It's not error free but it works fine for triangles with flat bottom or top. Where shall I send the code?
  12. Replies
    8
    Views
    3,190

    I found the errors in the code fragment above,...

    I found the errors in the code fragment above, the most serious of which was that I forgot to call sqrt() for the left and right edges.
  13. Replies
    8
    Views
    3,190

    I removed the code fragment

    I removed the code fragment
  14. Replies
    8
    Views
    3,190

    Gouraud Shading problem

    Hi,

    I've written a single module to rasterize and shade a triangle. Rasterization works fine but I get some errors when I try to bilinearly interpolate between the vertices.

    The module is too...
  15. Yes, the read stops but the file pointer now...

    Yes, the read stops but the file pointer now points to the next line, right? Will it not keep reading lines until the EOF is reached or the string is found? If you test for the EOF after each...
  16. But I used rewind() to go back to the beginning...

    But I used rewind() to go back to the beginning of the file, i just didn't include the function call in the above code fragment.

    The problem with the initial code fragment was that it couldn't...
  17. >Because you blew your chance to try and reparse...

    >Because you blew your chance to try and reparse the data with a different conversion (you used fscanf).

    What do you mean?

    use fscanf twice? once in the loop continuation condition and the...
  18. Thanks for the tip Dave. This combo works fine...

    Thanks for the tip Dave. This combo works fine indeed.



    while ( fgets(buffer, 1024, in) )
    {
    // the first condition will fail so the second will be discarded automatically
    if (...
  19. Parsing parameters from a text file in a random order

    Good afternoon,

    I am trying to write a module to read an unknown, albeit very small (10-15), number of parameters from a text file( such as "Width: 200\n" ). However, I want to be able to specify...
Results 1 to 19 of 19