mesh drive through floor

Questions and answers about the how and why of making maps.
Post Reply
Sir_Pants
Private First Class
Private First Class
Posts: 194
Joined: Mon Mar 28, 2005 2:41 am
Location: SOMEwhere in WA

mesh drive through floor

Post by Sir_Pants »

ok here is loumans drive through floor for some reason it will not run in a map im making, dont worry about the sizes of the boxes unless that is the problem, i've tried just running the objects by them selves in a map still didn't work

group drive
shift -250 -100 5
scale 50 50 1
end

group drive
shift -250 100 5
scale 50 50 1
end

group drive
shift -250 100 5
scale 50 50 1
end

group drive
shift 250 100 5
scale 50 50 1
end

group drive
shift -100 -250 5
scale 50 50 1
end

group drive
shift 100 -250 5
scale 50 50 1
end

group drive
shift -100 250 5
scale 50 50 1
end

group drive
shift 100 250 5
scale 50 50 1
end

define drive
mesh
vertex -0.500000 0.500000 0.000000
vertex 0.500000 0.500000 0.000000
vertex 0.500000 -0.500000 0.000000
vertex -0.500000 -0.500000 0.000000
vertex -0.500000 -0.500000 1.000000
vertex -0.500000 0.500000 1.000000
vertex 0.500000 0.500000 1.000000
vertex 0.500000 -0.500000 1.000000
normal 0.000000 0.000000 -1.000000
normal -1.000000 0.000000 0.000000
normal 0.000000 1.000000 0.000000
normal 1.000000 0.000000 0.000000
normal 0.000000 -1.000000 0.000000
normal 0.000000 0.000000 1.000000
face
vertices 0 1 2 3
normals 0 0 0 0
drivethrough
endface
face
vertices 4 5 0 3
normals 1 1 1 1
endface
face
vertices 5 6 1 0
normals 2 2 2 2
endface
face
vertices 2 1 6 7
normals 3 3 3 3
endface
face
vertices 3 2 7 4
normals 4 4 4 4
endface
face
vertices 4 7 6 5
normals 5 5 5 5
endface
end
enddef
MONKEYPANTS.COM
Image
User avatar
LouMan
Chief Sgt. of Cartography
Chief Sgt. of Cartography
Posts: 338
Joined: Mon Jan 31, 2005 3:05 am
Location: Michigan, USA

Post by LouMan »

Could it be that you are putting the groups before the mesh definition? I have never tried to do it that way - I always define my meshes first and then use the groups after them...
Sir_Pants
Private First Class
Private First Class
Posts: 194
Joined: Mon Mar 28, 2005 2:41 am
Location: SOMEwhere in WA

Post by Sir_Pants »

ah ok ill give that a try
MONKEYPANTS.COM
Image
Sir_Pants
Private First Class
Private First Class
Posts: 194
Joined: Mon Mar 28, 2005 2:41 am
Location: SOMEwhere in WA

Post by Sir_Pants »

nope that didn't work either
MONKEYPANTS.COM
Image
User avatar
LouMan
Chief Sgt. of Cartography
Chief Sgt. of Cartography
Posts: 338
Joined: Mon Jan 31, 2005 3:05 am
Location: Michigan, USA

Post by LouMan »

I found it - you should scale your objects before you shift them:

define drive
mesh
vertex -0.500000 0.500000 0.000000
vertex 0.500000 0.500000 0.000000
vertex 0.500000 -0.500000 0.000000
vertex -0.500000 -0.500000 0.000000
vertex -0.500000 -0.500000 1.000000
vertex -0.500000 0.500000 1.000000
vertex 0.500000 0.500000 1.000000
vertex 0.500000 -0.500000 1.000000
normal 0.000000 0.000000 -1.000000
normal -1.000000 0.000000 0.000000
normal 0.000000 1.000000 0.000000
normal 1.000000 0.000000 0.000000
normal 0.000000 -1.000000 0.000000
normal 0.000000 0.000000 1.000000
face
vertices 0 1 2 3
normals 0 0 0 0
drivethrough
endface
face
vertices 4 5 0 3
normals 1 1 1 1
endface
face
vertices 5 6 1 0
normals 2 2 2 2
endface
face
vertices 2 1 6 7
normals 3 3 3 3
endface
face
vertices 3 2 7 4
normals 4 4 4 4
endface
face
vertices 4 7 6 5
normals 5 5 5 5
endface
end
enddef

group drive
scale 50 50 1
shift -250 100 5
end

group drive
scale 50 50 1
shift -250 100 5
end

group drive
scale 50 50 1
shift 250 100 5
end

group drive
scale 50 50 1
shift -100 -250 5
end

group drive
scale 50 50 1
shift 100 -250 5
end

group drive
scale 50 50 1
shift -100 250 5
end

group drive
scale 50 50 1
shift 100 250 5
end
Sir_Pants
Private First Class
Private First Class
Posts: 194
Joined: Mon Mar 28, 2005 2:41 am
Location: SOMEwhere in WA

Post by Sir_Pants »

yea i got that too but thanks for your help
MONKEYPANTS.COM
Image
Post Reply