how to put polygon onto cylinder?

Started by
1 comment, last by sunrisefe 14 years, 10 months ago
I create one tree with main trunk and two-level branch realtime, every branch of the tree is drawed with cylinder. NOw I want to put leaves on to the branch, leaf is denoted by two triangle(four-side polygon). Will you give me some suggestin how to put four-side polygon onto 2-level branch? My sketch tree is as follows:
Advertisement
You looked at using Cylinder coordinates?

If it isn't working, take a bath, have a think and try again...

"You looked at using Cylinder coordinates?"

I draw tree's branch with D3DXCreateCylinder and the upper radius is different with the lower radius. Now I want to use four-side polygon to denote leaf, but I dont know how to put polygon onto the cylinder. Any advice is greatly appreaciated.

This topic is closed to new replies.

Advertisement