Advertisement

Modelling packages

Started by April 08, 2001 09:11 AM
0 comments, last by AdamDawes 23 years, 7 months ago
After lesson 32 was posted on NeHe''s site I thought that I might finally have an answer to my current lack of ability to create 3d objects for my OpenGL programs. I downloaded and tried MilkShape but just cannot get on with it at all -- it never seems to do what I want. I guess this may be partly due to the lack of tutorials and help I have found for it, but I find it really difficult to get it to do what I want, select the faces I''m interested in, etc. So I thought I''d have a look at some other modelling packages. The best one I''ve found so far is WorldCraft (I''m using WorldCraft 3.3 for Half Life). Whilst designing objects for OpenGL programmers isn''t perhaps what it was designed for, it looks like it might do the job admirably. The problem I''m having at the moment is with interpreting the files it generates. There are two file types it seems happy to produce: .MAP files (text-based) and .RMF files (binary). (It also supports DXF exporting, but I''ve not had a chance to look at this yet). Firstly, has anyone already written any code to read either of these file formats that they''d be willing to share? The MAP files look like they may be ideal for use in OpenGL programs. They''re just text files, and specify object coordinates nice and clearly. However, what appeared obvious at first actually has me puzzled and I''m wondering if anyone can help. I created a simple cube and saved it as a .MAP file. The relevant section of the file defines the cube using the following: ( -128 128 0 ) ( 128 128 0 ) ( 128 -128 0 ) SIGN45 [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 1 1 ( -128 -128 -1 ) ( 128 -128 -1 ) ( 128 128 -1 ) SIGN45 [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 1 1 ( -128 128 0 ) ( -128 -128 0 ) ( -128 -128 -1 ) SIGN45 [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 1 1 ( 128 128 -1 ) ( 128 -128 -1 ) ( 128 -128 0 ) SIGN45 [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 1 1 ( 128 128 0 ) ( -128 128 0 ) ( -128 128 -1 ) SIGN45 [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 1 1 ( 128 -128 -1 ) ( -128 -128 -1 ) ( -128 -128 0 ) SIGN45 [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 1 1 The bits before the SIGN45 are three sets of x/y/z coordinates forming a triangle. SIGN45 itself is the texture used to fill the triangle. The numbers after this appear to be related to texture mapping (scaling, rotation, offsets, etc.) though I''ve not completely figured these out. What I''m puzzled by is the fact that the shape I have exported is a cube. The map data appears to be defining six faces, as expected, but each face has only three points defined rather than four. How does Worldcraft know that these faces are square and not triangular? Along similar lines, does anyone have documentation for the .RMF binary files that they would be willing to share? My thanks in advance, Adam www.adamdawes.com
can''t help you on the world craft problem but check this out:
http://www.users.qwest.net/~hayesbrian/

baldurkarlsson

This topic is closed to new replies.

Advertisement