What about this thread geek?
:-)
Duetti
Type: Posts; User: Duetti
What about this thread geek?
:-)
Duetti
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...
> 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"...
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...
> 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,...
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...
Doesn't anyone have an idea? What kind of a game programming forum is this anyway?
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...
>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.
...
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...
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?
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.
I removed the code fragment
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...
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...
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...
>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...
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 (...
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...