Take a look at planes on the VMF documentation.

http://developer.valvesoftware.com/wiki/VMF_documentation:_World_Class#Planes

You need to do plane intersection testing to get the vertexes and the edges.

On Sat, Aug 28, 2010 at 3:39 PM, Harry Jeffery <
[email protected]> wrote:

> I'm trying to parse VMF files and load some brush geometry from them
> but I'm having trouble with the way the brush geometry is actually
> saved:
>
> side
>                {
>                        "id" "24"
>                        "plane" "(512 512 0) (1024 512 0) (1024 0 0)"
>                        "material" "DEV/DEV_MEASUREGENERIC01"
>                        "uaxis" "[1 0 0 0] 0.25"
>                        "vaxis" "[0 -1 0 0] 0.25"
>                        "rotation" "0"
>                        "lightmapscale" "16"
>                        "smoothing_groups" "0"
>                }
>
> Each side of the brush is stored as a plane using 3 vertices. The
> actual vertices that make up the side aren' stored, just a triangle
> that is in the same orientation and position of the plane.
> I've no idea on how to take all the sides of the brushes and convert
> it to a set of vertices that can be rendered. I've had a look around
> but I can't find any information on the net on how to do this.
>
> Any help on how to do this would be greatly appreciated.
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>


-- 
~Ryan ( skidz )
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to