#### Archived

This topic is now archived and is closed to further replies.

# why?

This topic is 6450 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I have this code: for(int tri=0; tri

##### Share on other sites
Most of your triangles share the same vertices, this one for example:

X[11][0] = -6.750000
Y[11][0] = 12.500000
Z[11][0] = 6.750000

X[11][1] = -6.750000
Y[11][1] = 12.500000
Z[11][1] = 6.750000

X[11][2] = 0.000000
Y[11][2] = 4.500000
Z[11][2] = 6.750000

The first and the second vector are at the exact same point, therefor it''s not a triangle, but a straight line.

return 1;

##### Share on other sites
I forgot to the most important thing with debug info, Debug it!!

Thanks a lot.

1. 1
Rutin
27
2. 2
3. 3
4. 4
5. 5

• 11
• 9
• 9
• 9
• 14
• ### Forum Statistics

• Total Topics
633313
• Total Posts
3011315
• ### Who's Online (See full list)

There are no registered users currently online

×

## Important Information

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!