# Search:

Type: Posts; User: Carmine

Page 1 of 7 1

1. ## Thread: Rotate object around its local coordinate system

by Carmine
Replies
4
Views
311

### Have you found a solution to your problem yet?

Have you found a solution to your problem yet?
2. ## Thread: Questions On The Matrix Stack

by Carmine
Replies
1
Views
294

### Questions On The Matrix Stack

I'm working with the old classic GL. Have questions about the matrix stack. Let's say I have 6 transformations in the stack applied to my model which is made up of 50,000 vertices. Is the matrix...
3. ## Thread: Normal Vector problem

by Carmine
Replies
2
Views
310

It's hard to help you without seeing all of your code, particularly the code that sets up the lighting. I notice that your normal vectors are not unit vectors. This is o.k. if you do a 'glEnable...

by Carmine
Replies
8
Views
863

### Take 20 minutes to make a simple triad of 3 line...

Take 20 minutes to make a simple triad of 3 line segments - x (red), y (green), and z (blue). Place the triad at the center of your car. Now try your rotations. I think you'll find the problem.
5. ## Thread: Display text in window

by Carmine
Replies
2
Views
456

### Look at - ...

Look at -

http://openglut.sourceforge.net/group__bitmapfont.html
6. ## Thread: How to get the distance of camera from objects plane?

by Carmine
Replies
12
Views
1,528

### So your are zooming in and out by changing the...

So your are zooming in and out by changing the width (w) and height (h) in your glOrtho command. There is really no distance from the camera to your objects in an orthographic projection, which is...
7. ## Thread: How to get the distance of camera from objects plane?

by Carmine
Replies
12
Views
1,528

### Not really sure what you are asking. Do you want...

Not really sure what you are asking. Do you want the arrows to change size as you zoom in or out? Or, do you want them to remain the same size as you zoom in and out? Are your arrows raster...
8. ## Thread: gluperpective not working

by Carmine
Replies
6
Views
674

### Are you sure the background sphere isn't hidden...

Are you sure the background sphere isn't hidden behind the foreground spheres? If you don't draw any objects in the foreground does the background sphere show up?
9. ## Thread: view the scene from all directions

by Carmine
Replies
8
Views
961

### The code tags are [ code] and [ /code], without...

The code tags are [ code] and [ /code], without the spaces. I've found that rotating the objects in the scene is much easier than messing with LookAt. Add two more global variables (like FOV) to...
10. ## Thread: view the scene from all directions

by Carmine
Replies
8
Views
961

### Have to agree with mhagain. One thing you've done...

Have to agree with mhagain. One thing you've done right is post some code. That's a start. But you should also show that you've put in some time to try to solve the problem yourself. How do we know...
11. ## Thread: Drawing a sphere and recoloring and/or deleting it

by Carmine
Replies
7
Views
2,520

### A simple experiment I would do first is to...

A simple experiment I would do first is to initialize 'colo' to 'r' (i.e. no mouse clicks required). Does this make the sphere red? This should help you narrow down the problem. Good luck.
12. ## Thread: Problem with multiple viewports with animation

by Carmine
Replies
6
Views
837

### This is a very good explanation. Took me years...

This is a very good explanation.
Took me years to learn the stuff you've listed.
13. ## Thread: Animation with glut

by Carmine
Replies
10
Views
1,588

### // glTranslatef (distance_x, distance_x, 0.0); ...

// glTranslatef (distance_x, distance_x, 0.0);
glTranslatef (distance_x, distance_y, 0.0);

by Carmine
Replies
1
Views
515

... Fltk ...
15. ## Thread: how to write text below a point on the screen

by Carmine
Replies
6
Views
1,046

It's easier than what your link describes. For example, if you are using GLUT or FreeGlut, there's a routine(s) that display characters or strings. They provide a limited selection of sizes and font...
16. ## Thread: how to write text below a point on the screen

by Carmine
Replies
6
Views
1,046

### Usually the utility that opens a window for you...

Usually the utility that opens a window for you (such as Glut) provides character and/or string routines. You simply call the routine with the (x,y) coordinates of the point in question and the...
17. ## Thread: How to generate random burrs on a surface?

by Carmine
Replies
7
Views
995

### Those are good pictures. Are you actually going...

Those are good pictures. Are you actually going to be working at the level of zoom shown in the pictures? As you get up close the 'burrs' might have to be modeled with polygons. That would be tough...
18. ## Thread: How to generate random burrs on a surface?

by Carmine
Replies
7
Views
995

### Show us a real picture of burrs and I bet you get...

Show us a real picture of burrs and I bet you get a lot of responses.
19. ## Thread: Basic 2D car game problem

by Carmine
Replies
13
Views
1,715

### Next - change the drawScene routine to the one I...

Next - change the drawScene routine to the one I have below. The only change from the original routine is that the glRotate is moved. You'll get the same result. Now try switching the order of...
20. ## Thread: Basic 2D car game problem

by Carmine
Replies
13
Views
1,715

### Good on you for posting your code. It compiles...

Good on you for posting your code. It compiles and runs for me. Now we can move forward. I THINK I understand what you want by the statement above. If so, you only have to make a minor change to get...
21. ## Thread: Basic 2D car game problem

by Carmine
Replies
13
Views
1,715

### Yes. That's what you said. But your code doesn't...

Yes. That's what you said. But your code doesn't show that you know how to do even basic rotations and translations. To me the code is the truth. It is where you are at. If you can do basic...
22. ## Thread: Basic 2D car game problem

by Carmine
Replies
13
Views
1,715

### As promised, I ran your code. The good news is...

As promised, I ran your code. The good news is that it worked.
Though I think it's a bit of a stretch to call a red rectangle a Ferrari :)

I don't mean to be snide, but maybe this site isn't so...
23. ## Thread: how to render complex shapes

by Carmine
Replies
10
Views
1,029

### For this example I would use glBegin(GL_POINTS)...

For this example I would use glBegin(GL_POINTS) to render the points only (without trying to connect them). THEN, I would loop through the vertex array again using the coordinates to position labels...

by Carmine
Replies
13
Views
1,715

by Carmine
Replies
5
Views
745