Love Chandigarh
A discussion on Recursive Drawing in Testing - Trash Garage, Ads, Old & Irrelevant Stuff forums; <div>Hello, I have a tree image which I am billboarding. I want to be able to draw this tree around 20 times randomly along my ...
| |||||||
| |
| <div>Hello, I have a tree image which I am billboarding. I want to be able to draw this tree around 20 times randomly along my plane Code: glBegin( GL_POLYGON ); { glTexCoord2f(0.0f, 0.0f); glVertex3f(-1.f, -1.0f, 0.0f); glTexCoord2f(1.0f, 0.0f); glVertex3f(1.0f, -1.0f, 0.0f); glTexCoord2f(1.0f, 1.0f); glVertex3f(1.0f, 1.0f, 0.0f); glTexCoord2f(0.0f, 1.0f); glVertex3f(-1.0f, 1.0f, 0.0f); } glEnd(); The above will draw one instance of my tree, I tried to loop it and have that run 20 time... <div style="margin:20px; margin-top:5px"> Code: for (float x=1.0f;x |
![]() |
| Tags |
| drawing, recursive |
| |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Free-hand spatial 3D drawing | Peter | Testing | 0 | 14-11-2008 11:21 PM |