Code Me A Proggy...
venomus
Join Date: 2002-11-16 Member: 8951Members
Since some of you around here seem to be quite good with this kind of thing, I have a very simple request: a basic model to map converter.
Now this kind of thing has been attempted before, and if you try to convert 2d polygons to 3d brushes it is a lot harder than it sounds. All I require, however is something which outputs the location of the model vertices. For example it will output a map file with no brushes in it, but the location of the vertices will be marked out with point entities such as env_sprite. It is then up to the mapper to 'join the dots' with brushes and vertex manipulation.
I will not be able to test this just yet, so if anyone else wants to give feedback on whatever our resident coders come up with, be my guest.
Now this kind of thing has been attempted before, and if you try to convert 2d polygons to 3d brushes it is a lot harder than it sounds. All I require, however is something which outputs the location of the model vertices. For example it will output a map file with no brushes in it, but the location of the vertices will be marked out with point entities such as env_sprite. It is then up to the mapper to 'join the dots' with brushes and vertex manipulation.
I will not be able to test this just yet, so if anyone else wants to give feedback on whatever our resident coders come up with, be my guest.
Comments
-usage: Prints out this information.
-scale x: Scales the vertex coordinates by x.
-round y: Rounds vertex cooridnates so they lie on a grid of granularity y.
infile: The path to the input file.
outfile: The path to the output file. This will be overwritten if it exists, and created if it doesn't.<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
Here's a quick picture of the map produced after running it on the phasegate model:
As I said, I'm unable to test it ATM, but from the looks of that screenshot it seems to do the job \m/
decompile (milkshape) ...just textures and reference will do.
import reference .smd (milkshape)
export as a Quake 2 .map....
bingo! in-map brush... not too great on the textures, as you will need to do that peice by peice for the whole model... but still...