Jump to content
palindrome

Map file information?

Recommended Posts

Hello, I asked on discord and got some useful help  however I am still a bit stuck. My goal is to import .obj files as a brush into reflex. The vertices are simple enough to insert, however I don't understand what the brush faces format is. Would anyone with some knowledge be able to tell me what each variable in this represents?

0.000000 0.000000 1.000000 1.000000 0.000000 1 4 5 6 0x00000000 common/materials/metal/p_gloss_metal3

So far from experimenting, it looks like the first 5 have no impact at all on anything that I could notice, 0x00000000 also dosn't appear to do anything. However the 4 integers appear to be mapping what vertices the faces connect at? The last one is the material.

Share this post


Link to post
Share on other sites

All I know is that 0x00000000 is for the colour of the material. First two digits after the x are alpha, the last 6 are a hex colour code. I'm pretty sure alpha has to be ff for it to work as well.

Share this post


Link to post
Share on other sites
19 minutes ago, Duck said:

All I know is that 0x00000000 is for the colour of the material. First two digits after the x are alpha, the last 6 are a hex colour code. I'm pretty sure alpha has to be ff for it to work as well.

Ah thanks for that. I hadn't played around with that value much, interesting.

Share this post


Link to post
Share on other sites

Fuck me took me a while to recall what the "0.000000 0.000000 1.000000 1.000000 0.000000" part was for, it has been pretty much irrelevant for a while now. xpos, ypos, xscale, yscale, rotation for the applied texture.

"1 4 5 6" Those are the vertices which connect the face, the order is important, it defines in which direction the face faces (heh).

"0x00000000 common/materials/metal/p_gloss_metal3 " Color and material.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×