Sign in to follow this  
sunrisefe

how to put polygon onto cylinder?

Recommended Posts

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:

Share this post


Link to post
Share on other sites
"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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this