Advertisement

Urgent,NeedHelp! Lesson 10-Moving around 3D world

Started by March 21, 2003 11:35 AM
1 comment, last by cynique78 21 years, 11 months ago
Hi, I really new in OpenGL.I run the lesson10 in VBopenGL. I have some doubts here: 1)I cant add more triangles in sectors. How can I add more triangles to make more sectors?Is it affected by this code: int numtriangles; // Number Of Triangles In Sector char oneline[255]; // String To Store Data In ... readstr(filein,oneline); // Get Single Line Of Data sscanf(oneline, "NUMPOLLIES %d\n", &numtriangles); // Read In Number Of Triangles 2) How can I apply different texture mapping in different sector? If anyone still do not understand the actual circumstances,you can leave a message for me to send more details in next message. I really urgent in case,your help would be very appreciate
cynique
By lesson 10, code is covered to create multiple textures. To apply different textures to different sectors, just bind the texture ID before renderer (i.e. us glBindTexture).

To add more triangles, increase the number of the "NUMPOLIES" line in World.txt and then add more triangle data.

Why exactly is this so urgent?

Later,
ZE.

//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links

[twitter]warrenm[/twitter]

Advertisement
First of all, Thanks for ZE help.Its urgent because I am new in openGL and I need to handup my project as well

[edited by - cynique78 on March 21, 2003 1:07:15 PM]
cynique

This topic is closed to new replies.

Advertisement