Skip to main content
gamedev.net
🔒 Locked

Loading and Rendering from .MAP file format

Started by TheSyan Aug 1, 2002 at 11:03 AM 0 replies 450+ views
Original Post
TheSyan
TheSyan
Im trying to load, and render a world, from a standard .MAP file ( the one Worldcraft or Q3Radiant export). I''ve understood the format, but, its in stupid planes, instead of vertex co-ords. How do you calculate the vertexes from the planes? Also the method im using to read the values from each line in the file is giving me a problem when I get to the texture name. // Var definitions... char buffer[255]; memset( buffer, 0 , 20); char tn[20]; memset( tn, 0, 20); // Load values... well some of them... sscanf( buffer, "( %d %d %d ) ( %d %d %d ) ( %d %d %d) %s %d %d %d %d %d %d %d %d ", &x1,&y1,&z1,&x2,&y2,&z2,&x3,&y3,&z3, tn ) Any help on these points would be lovely... Thnx, Syan
The_Fallen
The_Fallen
http://www.gamedev.net/community/forums/topic.asp?topic_id=102704

[edited by - The_Fallen on August 1, 2002 2:45:53 PM]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.