Page 1 of 1

mesh drive through floor

Posted: Wed Jun 01, 2005 1:23 am
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

Posted: Wed Jun 01, 2005 1:53 am
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...

Posted: Wed Jun 01, 2005 2:04 am
by Sir_Pants
ah ok ill give that a try

Posted: Wed Jun 01, 2005 2:07 am
by Sir_Pants
nope that didn't work either

Posted: Wed Jun 01, 2005 2:18 am
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

Posted: Wed Jun 01, 2005 4:19 am
by Sir_Pants
yea i got that too but thanks for your help