# Search:

Type: Posts; User: sevenfold

## Search: Search took 0.01 seconds.

by sevenfold
Replies
3
Views
3,041

### It's very easy. Just make a copy of the 2D shape...

It's very easy. Just make a copy of the 2D shape and connect the edges between them. Every edge pair will form a quad, or two triangles if you want.
You don't need OpenGL to do this either.
2. ## Thread: Determing facet winding

by sevenfold
Replies
4
Views
3,554

### Yes, a manifold mesh is what I meant. The forum...

Yes, a manifold mesh is what I meant. The forum won't let me edit my previous post to make the typo correction.
3. ## Thread: Thick dashed lines

by sevenfold
Replies
3
Views
2,375

### I'm not sure what you specifically want, but the...

I'm not sure what you specifically want, but the repeat factor would probably be the line length divided by the stipple length.

If you want to emulate OpenGL's glLineStipple for thick lines, then...
4. ## Thread: Smoothing the dges of a polygon

by sevenfold
Replies
9
Views
4,275

### I was thinking you could have used some kind of...

I was thinking you could have used some kind of corner cutting technique and discard the old point,
but you can just keep it and average the old point instead:
...
5. ## Thread: Smoothing the dges of a polygon

by sevenfold
Replies
9
Views
4,275

### You don't have to "push out" the edges. The...

You don't have to "push out" the edges. The process of subdivision makes them smoother. You're adding more points to the shape to make it smoother. Just keep on subdividing the edges by their...
6. ## Thread: Smoothing the dges of a polygon

by sevenfold
Replies
9
Views
4,275

### Sounds like a Google question to me. Just divide...

Sounds like a Google question to me. Just divide the edges at their midpoints and connect them.
7. ## Thread: Determing facet winding

by sevenfold
Replies
4
Views
3,554

### Fixing flipped faces only works consistently with...

Fixing flipped faces only works consistently with closed meshes. So, all faces of a closed mesh will either point inside or out. You could simply pick a random face, and flip all surrounding faces...
8. ## Thread: Color picking with hidden faces?

by sevenfold
Replies
3
Views
2,096

### Thanks, I need to support at least OpenGL 2.0, so...

Thanks, I need to support at least OpenGL 2.0, so I wouldn't be able to use it.

I did come up with a solution, but it's not very efficient.

I would have to render the scene in multiple passes. ...
9. ## Thread: Color picking with hidden faces?

by sevenfold
Replies
3
Views
2,096

### Color picking with hidden faces?

I searched and couldn't find anything on this topic.

I would like to use color picking to select mesh faces, however I would also like to select all faces, including faces that might be hidden...
10. ## Thread: OpenGL runs slow when other apps are running

by sevenfold
Replies
2
Views
1,904

### I have the same problem with 3dsmax. As soon as...

I have the same problem with 3dsmax. As soon as it starts up, my OpenGL program literally freezes and
becomes incredibly slow. It's like watching paint dry. Even after I quit 3dsmax, my program...
11. ## Thread: Walking on a sphere

by sevenfold
Replies
1
Views
1,228

### Movement is always projected along a straight...

Movement is always projected along a straight line, flat or curved.
I would calculate the tangent at the current position and move along that.
If you're jumping on a sphere, use a gravity vector...
12. ## Thread: Detection of edge of a polygon

by sevenfold
Replies
22
Views
8,361

### If you're working with edges, you should probably...

If you're working with edges, you should probably use a half-edge data structure to find them quickly and easily.
Then you can start building your own tools upon it.
13. ## Thread: Finding X-section of any arbitrary polygonal model

by sevenfold
Replies
1
Views
1,461

### Use space-partitioning. Insert your model into a...

Use space-partitioning. Insert your model into a BSP tree, and only process the nodes that intersect
with the plane.

by sevenfold
Replies
6
Views
4,001

### I think it depends on the graphics hardware. If...

I think it depends on the graphics hardware. If you pass OpenGL a double, it will just cast it to a float again,
if the underlining hardware doesn't support double precision.
15. ## Thread: Multisampling under MFC

by sevenfold
Replies
3
Views
2,683

### You create a multi-sampling OpenGL device in the...

You create a multi-sampling OpenGL device in the same place where a normal OpenGL device is created,
in the CView::OnCreate function.

And you must enable it before you draw something:...
16. ## Thread: Bloxorz game in OpenGL.

by sevenfold
Replies
10
Views
3,951

This is very easy game to design in OpenGL. Everything will be 3D, including the floor blocks.
It's not very hard to create a box in 3D and texture it.

Then, just use camera projection that...
17. ## Thread: GLUtesselator, zero-area triang, & T-intersections

by sevenfold
Replies
1
Views
2,180

### Yes, I've encountered this problem too, using...

Yes, I've encountered this problem too, using GLUtesselator to create 3D text, and it almost always
creates degenerate triangles. And if you try to remove these degenerate triangles, T-junctions ...
Results 1 to 17 of 18