Questions and answers about the how and why of making maps.
mdskpr
Private First Class
Posts: 95 Joined: Sat Jan 28, 2006 4:17 pm
Post
by mdskpr » Sat Apr 25, 2009 1:16 pm
Hi all, I have a question when I put anomaly's ferns on the map they only appear when I get close enough....??? Here is my code: ##ferns
Code: Select all
material
name fern
diffuse 0.1 0.8 0.1 1
alphathresh 0.5
noradar
noshadow
noculling
nosorting
nolighting
addtexture http://images.bzflag.org/msheppard/fern.png
notexalpha
end
define ferns
group quads
scale 2.5 2.5 5
matref fern
end
enddef
define quads
mesh
# faces = 4
# checks = 0
# vertices = 16
# normals = 1
# texcoords = 4
# mins = -1 -1 0
# maxs = 1 1 1
passable
vertex 0.00000000 -1.00000000 0.00000000
vertex 0.00000000 1.00000000 0.00000000
vertex 0.00000000 1.00000000 1.00000000
vertex 0.00000000 -1.00000000 1.00000000
vertex -0.70735300 0.70743400 0.00000000
vertex 0.70686102 -0.70678002 0.00000000
vertex 0.70686102 -0.70678002 1.00000000
vertex -0.70735300 0.70743400 1.00000000
vertex -1.00000000 0.00000000 0.00000000
vertex 1.00000000 0.00000000 0.00000000
vertex 1.00000000 0.00000000 1.00000000
vertex -1.00000000 0.00000000 1.00000000
vertex -0.70735300 -0.70743400 0.00000000
vertex 0.70686102 0.70678002 0.00000000
vertex 0.70686102 0.70678002 1.00000000
vertex -0.70735300 -0.70743400 1.00000000
normal 0.00000000 0.00000000 1.00000000
texcoord 0.00000000 0.00000000
texcoord 1.00000000 0.00000000
texcoord 1.00000000 1.00000000
texcoord 0.00000000 1.00000000
face
vertices 0 1 2 3
texcoords 0 1 2 3
matref 1
endface
face
vertices 4 5 6 7
texcoords 0 1 2 3
matref 1
endface
face
vertices 8 9 10 11
texcoords 0 1 2 3
matref 1
endface
face
vertices 12 13 14 15
texcoords 0 1 2 3
matref 1
endface
drawInfo
extents -1 -1 0 1 1 1
sphere 0 0 0.5 2.25
end # drawInfo
end
mesh
# faces = 0
# checks = 0
# vertices = 0
# normals = 0
# texcoords = 0
# mins = 3.40282e+38 3.40282e+38 3.40282e+38
# maxs = -3.40282e+38 -3.40282e+38 -3.40282e+38
drawInfo
extents -1.67632 -1.67592 0 1.67598 1.67638 1
sphere -0.000169992 0.000230014 0.5 5.86896
vertex -0.707353 0.707434 0
vertex 0.706861 -0.70678 0
vertex 0.706861 -0.70678 1
vertex -0.707353 0.707434 1
vertex 0 -1 0
vertex 0 1 0
vertex 0 1 1
vertex 0 -1 1
vertex -0.707353 -0.70678 0
vertex 0.706861 0.707434 0
vertex 0.706861 0.707434 1
vertex -0.707353 -0.70678 1
vertex -1 0 0
vertex 1 0 0
vertex 1 0 1
vertex -1 0 1
vertex 0.649828 -0.393553 0
vertex 1.34983 -1.60599 0
vertex 1.34983 -1.60599 0.7
vertex 0.649828 -0.393553 0.7
vertex 0.818654 -1.67592 0
vertex 1.181 -0.323623 0
vertex 1.181 -0.323623 0.7
vertex 0.818654 -1.67592 0.7
vertex 0.39361 -1.34977 0
vertex 1.60605 -0.649771 0
vertex 1.60605 -0.649771 0.7
vertex 0.39361 -1.34977 0.7
vertex 0.32368 -0.818598 0
vertex 1.67598 -1.18094 0
vertex 1.67598 -1.18094 0.7
vertex 0.32368 -0.818598 0.7
vertex -1.35017 -0.393553 0
vertex -0.650172 -1.60599 0
vertex -0.650172 -1.60599 0.7
vertex -1.35017 -0.393553 0.7
vertex -1.18135 -1.67592 0
vertex -0.818999 -0.323623 0
vertex -0.818999 -0.323623 0.7
vertex -1.18135 -1.67592 0.7
vertex -1.60639 -1.34977 0
vertex -0.393955 -0.649771 0
vertex -0.393955 -0.649771 0.7
vertex -1.60639 -1.34977 0.7
vertex -1.67632 -0.818598 0
vertex -0.324024 -1.18094 0
vertex -0.324024 -1.18094 0.7
vertex -1.67632 -0.818598 0.7
vertex 0.649828 1.60645 0
vertex 1.34983 0.394011 0
vertex 1.34983 0.394011 0.7
vertex 0.649828 1.60645 0.7
vertex 0.818654 0.324081 0
vertex 1.181 1.67638 0
vertex 1.181 1.67638 0.7
vertex 0.818654 0.324081 0.7
vertex 0.39361 0.650229 0
vertex 1.60605 1.35023 0
vertex 1.60605 1.35023 0.7
vertex 0.39361 0.650229 0.7
vertex 0.32368 1.1814 0
vertex 1.67598 0.819055 0
vertex 1.67598 0.819055 0.7
vertex 0.32368 1.1814 0.7
vertex -1.35017 1.60645 0
vertex -0.650172 0.394011 0
vertex -0.650172 0.394011 0.7
vertex -1.35017 1.60645 0.7
vertex -1.18135 0.324081 0
vertex -0.818999 1.67638 0
vertex -0.818999 1.67638 0.7
vertex -1.18135 0.324081 0.7
vertex -1.60639 0.650229 0
vertex -0.393955 1.35023 0
vertex -0.393955 1.35023 0.7
vertex -1.60639 0.650229 0.7
vertex -1.67632 1.1814 0
vertex -0.324024 0.819055 0
vertex -0.324024 0.819055 0.7
vertex -1.67632 1.1814 0.7
normal 0 0 1
texcoord 0 0
texcoord 1 0
texcoord 1 1
texcoord 0 1
corner 0 0 0
corner 1 0 1
corner 2 0 2
corner 3 0 3
corner 4 0 0
corner 5 0 1
corner 6 0 2
corner 7 0 3
corner 8 0 0
corner 9 0 1
corner 10 0 2
corner 11 0 3
corner 12 0 0
corner 13 0 1
corner 14 0 2
corner 15 0 3
corner 16 0 0
corner 17 0 1
corner 18 0 2
corner 19 0 3
corner 20 0 0
corner 21 0 1
corner 22 0 2
corner 23 0 3
corner 24 0 0
corner 25 0 1
corner 26 0 2
corner 27 0 3
corner 28 0 0
corner 29 0 1
corner 30 0 2
corner 31 0 3
corner 32 0 0
corner 33 0 1
corner 34 0 2
corner 35 0 3
corner 36 0 0
corner 37 0 1
corner 38 0 2
corner 39 0 3
corner 40 0 0
corner 41 0 1
corner 42 0 2
corner 43 0 3
corner 44 0 0
corner 45 0 1
corner 46 0 2
corner 47 0 3
corner 48 0 0
corner 49 0 1
corner 50 0 2
corner 51 0 3
corner 52 0 0
corner 53 0 1
corner 54 0 2
corner 55 0 3
corner 56 0 0
corner 57 0 1
corner 58 0 2
corner 59 0 3
corner 60 0 0
corner 61 0 1
corner 62 0 2
corner 63 0 3
corner 64 0 0
corner 65 0 1
corner 66 0 2
corner 67 0 3
corner 68 0 0
corner 69 0 1
corner 70 0 2
corner 71 0 3
corner 72 0 0
corner 73 0 1
corner 74 0 2
corner 75 0 3
corner 76 0 0
corner 77 0 1
corner 78 0 2
corner 79 0 3
lod # 0
lengthPerPixel 0
matref -1
dlist
sphere -0.000169992 0.000230014 0.5 5.86896
quads 1 2 3 0 7 4 5 6 31 28 29 30 79 76 77 78 75 72 73 74 71 68 69 70 67 64 65 66 61 62 63 60 57 58 59 56 53 54 55 52 49 50 51 48 45 46 47 44 41 42 43 40 37 38 39 36 33 34 35 32 27 24 25 26 23 20 21 22 19 16 17 18 15 12 13 14 9 10 11 8
end # material -1
end # lod 0
lod # 1
lengthPerPixel 0.04
matref -1
dlist
sphere 0.034795 -0.034735 0.5 5.63698
quads 7 4 5 6 31 28 29 30 75 72 73 74 67 64 65 66 57 58 59 56 49 50 51 48 41 42 43 40 33 34 35 32 23 20 21 22 15 12 13 14
end # material -1
end # lod 1
lod # 2
lengthPerPixel 0.08
matref -1
dlist
sphere 0 0 0.5 2.25
quads 7 4 5 6 15 12 13 15
end # material -1
end # lod 2
lod # 3
lengthPerPixel 0.12
end # lod 3
end # drawInfo
end
enddef
define fern_patch
group ferns
spin 45 0 0 1
# shift 0 0 5
end
group ferns
spin 45 0 0 1
# shift 8 8 5
end
group ferns
spin -45 0 0 1
# shift -8 8 5
end
group ferns
spin 45 0 0 1
# shift 8 -8 5
end
group ferns
spin -45 0 0 1
# shift -8 -8 5
end
group ferns
spin 45 0 0 1
# shift 0 10 5
end
group ferns
spin -45 0 0 1
# shift -10 0 5
end
group ferns
spin 45 0 0 1
# shift 0 -10 5
end
group ferns
spin -45 0 0 1
# shift 10 0 5
end
enddef
group fern_patch
shift 100 100 5
end
sorry of the length... anybody have a solution??? Thanks in advance
Spazzy McGee
Sergeant Major
Posts: 1405 Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom
Post
by Spazzy McGee » Sat Apr 25, 2009 2:33 pm
The reason is that his ferns use a special technique called LOD, or Level Of Detail, to reduce the number of polygons being displayed, depending on ow far away you are from the object. The last LOD has nothing in it, therefore when you are a certain distance away, they disappear completely.
I would have thought that if you remove this last LOD it should not disappear completely, but you should still get the benefits of the intermediate LODs. Try this:
Code: Select all
material
name fern
diffuse 0.1 0.8 0.1 1
alphathresh 0.5
noradar
noshadow
noculling
nosorting
nolighting
addtexture http://images.bzflag.org/msheppard/fern.png
notexalpha
end
define ferns
group quads
scale 2.5 2.5 5
matref fern
end
enddef
define quads
mesh
# faces = 4
# checks = 0
# vertices = 16
# normals = 1
# texcoords = 4
# mins = -1 -1 0
# maxs = 1 1 1
passable
vertex 0.00000000 -1.00000000 0.00000000
vertex 0.00000000 1.00000000 0.00000000
vertex 0.00000000 1.00000000 1.00000000
vertex 0.00000000 -1.00000000 1.00000000
vertex -0.70735300 0.70743400 0.00000000
vertex 0.70686102 -0.70678002 0.00000000
vertex 0.70686102 -0.70678002 1.00000000
vertex -0.70735300 0.70743400 1.00000000
vertex -1.00000000 0.00000000 0.00000000
vertex 1.00000000 0.00000000 0.00000000
vertex 1.00000000 0.00000000 1.00000000
vertex -1.00000000 0.00000000 1.00000000
vertex -0.70735300 -0.70743400 0.00000000
vertex 0.70686102 0.70678002 0.00000000
vertex 0.70686102 0.70678002 1.00000000
vertex -0.70735300 -0.70743400 1.00000000
normal 0.00000000 0.00000000 1.00000000
texcoord 0.00000000 0.00000000
texcoord 1.00000000 0.00000000
texcoord 1.00000000 1.00000000
texcoord 0.00000000 1.00000000
face
vertices 0 1 2 3
texcoords 0 1 2 3
matref 1
endface
face
vertices 4 5 6 7
texcoords 0 1 2 3
matref 1
endface
face
vertices 8 9 10 11
texcoords 0 1 2 3
matref 1
endface
face
vertices 12 13 14 15
texcoords 0 1 2 3
matref 1
endface
drawInfo
extents -1 -1 0 1 1 1
sphere 0 0 0.5 2.25
end # drawInfo
end
mesh
# faces = 0
# checks = 0
# vertices = 0
# normals = 0
# texcoords = 0
# mins = 3.40282e+38 3.40282e+38 3.40282e+38
# maxs = -3.40282e+38 -3.40282e+38 -3.40282e+38
drawInfo
extents -1.67632 -1.67592 0 1.67598 1.67638 1
sphere -0.000169992 0.000230014 0.5 5.86896
vertex -0.707353 0.707434 0
vertex 0.706861 -0.70678 0
vertex 0.706861 -0.70678 1
vertex -0.707353 0.707434 1
vertex 0 -1 0
vertex 0 1 0
vertex 0 1 1
vertex 0 -1 1
vertex -0.707353 -0.70678 0
vertex 0.706861 0.707434 0
vertex 0.706861 0.707434 1
vertex -0.707353 -0.70678 1
vertex -1 0 0
vertex 1 0 0
vertex 1 0 1
vertex -1 0 1
vertex 0.649828 -0.393553 0
vertex 1.34983 -1.60599 0
vertex 1.34983 -1.60599 0.7
vertex 0.649828 -0.393553 0.7
vertex 0.818654 -1.67592 0
vertex 1.181 -0.323623 0
vertex 1.181 -0.323623 0.7
vertex 0.818654 -1.67592 0.7
vertex 0.39361 -1.34977 0
vertex 1.60605 -0.649771 0
vertex 1.60605 -0.649771 0.7
vertex 0.39361 -1.34977 0.7
vertex 0.32368 -0.818598 0
vertex 1.67598 -1.18094 0
vertex 1.67598 -1.18094 0.7
vertex 0.32368 -0.818598 0.7
vertex -1.35017 -0.393553 0
vertex -0.650172 -1.60599 0
vertex -0.650172 -1.60599 0.7
vertex -1.35017 -0.393553 0.7
vertex -1.18135 -1.67592 0
vertex -0.818999 -0.323623 0
vertex -0.818999 -0.323623 0.7
vertex -1.18135 -1.67592 0.7
vertex -1.60639 -1.34977 0
vertex -0.393955 -0.649771 0
vertex -0.393955 -0.649771 0.7
vertex -1.60639 -1.34977 0.7
vertex -1.67632 -0.818598 0
vertex -0.324024 -1.18094 0
vertex -0.324024 -1.18094 0.7
vertex -1.67632 -0.818598 0.7
vertex 0.649828 1.60645 0
vertex 1.34983 0.394011 0
vertex 1.34983 0.394011 0.7
vertex 0.649828 1.60645 0.7
vertex 0.818654 0.324081 0
vertex 1.181 1.67638 0
vertex 1.181 1.67638 0.7
vertex 0.818654 0.324081 0.7
vertex 0.39361 0.650229 0
vertex 1.60605 1.35023 0
vertex 1.60605 1.35023 0.7
vertex 0.39361 0.650229 0.7
vertex 0.32368 1.1814 0
vertex 1.67598 0.819055 0
vertex 1.67598 0.819055 0.7
vertex 0.32368 1.1814 0.7
vertex -1.35017 1.60645 0
vertex -0.650172 0.394011 0
vertex -0.650172 0.394011 0.7
vertex -1.35017 1.60645 0.7
vertex -1.18135 0.324081 0
vertex -0.818999 1.67638 0
vertex -0.818999 1.67638 0.7
vertex -1.18135 0.324081 0.7
vertex -1.60639 0.650229 0
vertex -0.393955 1.35023 0
vertex -0.393955 1.35023 0.7
vertex -1.60639 0.650229 0.7
vertex -1.67632 1.1814 0
vertex -0.324024 0.819055 0
vertex -0.324024 0.819055 0.7
vertex -1.67632 1.1814 0.7
normal 0 0 1
texcoord 0 0
texcoord 1 0
texcoord 1 1
texcoord 0 1
corner 0 0 0
corner 1 0 1
corner 2 0 2
corner 3 0 3
corner 4 0 0
corner 5 0 1
corner 6 0 2
corner 7 0 3
corner 8 0 0
corner 9 0 1
corner 10 0 2
corner 11 0 3
corner 12 0 0
corner 13 0 1
corner 14 0 2
corner 15 0 3
corner 16 0 0
corner 17 0 1
corner 18 0 2
corner 19 0 3
corner 20 0 0
corner 21 0 1
corner 22 0 2
corner 23 0 3
corner 24 0 0
corner 25 0 1
corner 26 0 2
corner 27 0 3
corner 28 0 0
corner 29 0 1
corner 30 0 2
corner 31 0 3
corner 32 0 0
corner 33 0 1
corner 34 0 2
corner 35 0 3
corner 36 0 0
corner 37 0 1
corner 38 0 2
corner 39 0 3
corner 40 0 0
corner 41 0 1
corner 42 0 2
corner 43 0 3
corner 44 0 0
corner 45 0 1
corner 46 0 2
corner 47 0 3
corner 48 0 0
corner 49 0 1
corner 50 0 2
corner 51 0 3
corner 52 0 0
corner 53 0 1
corner 54 0 2
corner 55 0 3
corner 56 0 0
corner 57 0 1
corner 58 0 2
corner 59 0 3
corner 60 0 0
corner 61 0 1
corner 62 0 2
corner 63 0 3
corner 64 0 0
corner 65 0 1
corner 66 0 2
corner 67 0 3
corner 68 0 0
corner 69 0 1
corner 70 0 2
corner 71 0 3
corner 72 0 0
corner 73 0 1
corner 74 0 2
corner 75 0 3
corner 76 0 0
corner 77 0 1
corner 78 0 2
corner 79 0 3
lod # 0
lengthPerPixel 0
matref -1
dlist
sphere -0.000169992 0.000230014 0.5 5.86896
quads 1 2 3 0 7 4 5 6 31 28 29 30 79 76 77 78 75 72 73 74 71 68 69 70 67 64 65 66 61 62 63 60 57 58 59 56 53 54 55 52 49 50 51 48 45 46 47 44 41 42 43 40 37 38 39 36 33 34 35 32 27 24 25 26 23 20 21 22 19 16 17 18 15 12 13 14 9 10 11 8
end # material -1
end # lod 0
lod # 1
lengthPerPixel 0.04
matref -1
dlist
sphere 0.034795 -0.034735 0.5 5.63698
quads 7 4 5 6 31 28 29 30 75 72 73 74 67 64 65 66 57 58 59 56 49 50 51 48 41 42 43 40 33 34 35 32 23 20 21 22 15 12 13 14
end # material -1
end # lod 1
lod # 2
lengthPerPixel 0.08
matref -1
dlist
sphere 0 0 0.5 2.25
quads 7 4 5 6 15 12 13 15
end # material -1
end # lod 2
end # drawInfo
end
enddef
define fern_patch
group ferns
spin 45 0 0 1
# shift 0 0 5
end
group ferns
spin 45 0 0 1
# shift 8 8 5
end
group ferns
spin -45 0 0 1
# shift -8 8 5
end
group ferns
spin 45 0 0 1
# shift 8 -8 5
end
group ferns
spin -45 0 0 1
# shift -8 -8 5
end
group ferns
spin 45 0 0 1
# shift 0 10 5
end
group ferns
spin -45 0 0 1
# shift -10 0 5
end
group ferns
spin 45 0 0 1
# shift 0 -10 5
end
group ferns
spin -45 0 0 1
# shift 10 0 5
end
enddef
group fern_patch
shift 100 100 5
end
"Life is what happens to you while you're busy making other plans." - John Lennon
mdskpr
Private First Class
Posts: 95 Joined: Sat Jan 28, 2006 4:17 pm
Post
by mdskpr » Sat Apr 25, 2009 3:42 pm
hmm no, still disappearing......i wonder if it is because of my map or something.... let me know if you need the whole thing
Spazzy McGee
Sergeant Major
Posts: 1405 Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom
Post
by Spazzy McGee » Sat Apr 25, 2009 5:45 pm
Oh, some of the ferns are disappearing - that's not a bug, that's supposed to happen. If you don't want them to reduce in polygons like that use this, although be warned - if you place lots of them in the map, you could see a drop in frame rate.
Code: Select all
material
name fern
diffuse 0.1 0.8 0.1 1
alphathresh 0.5
noradar
noshadow
noculling
nosorting
nolighting
addtexture http://images.bzflag.org/msheppard/fern.png
notexalpha
end
define ferns
group quads
scale 2.5 2.5 5
matref fern
end
enddef
define quads
mesh
# faces = 4
# checks = 0
# vertices = 16
# normals = 1
# texcoords = 4
# mins = -1 -1 0
# maxs = 1 1 1
passable
vertex 0.00000000 -1.00000000 0.00000000
vertex 0.00000000 1.00000000 0.00000000
vertex 0.00000000 1.00000000 1.00000000
vertex 0.00000000 -1.00000000 1.00000000
vertex -0.70735300 0.70743400 0.00000000
vertex 0.70686102 -0.70678002 0.00000000
vertex 0.70686102 -0.70678002 1.00000000
vertex -0.70735300 0.70743400 1.00000000
vertex -1.00000000 0.00000000 0.00000000
vertex 1.00000000 0.00000000 0.00000000
vertex 1.00000000 0.00000000 1.00000000
vertex -1.00000000 0.00000000 1.00000000
vertex -0.70735300 -0.70743400 0.00000000
vertex 0.70686102 0.70678002 0.00000000
vertex 0.70686102 0.70678002 1.00000000
vertex -0.70735300 -0.70743400 1.00000000
normal 0.00000000 0.00000000 1.00000000
texcoord 0.00000000 0.00000000
texcoord 1.00000000 0.00000000
texcoord 1.00000000 1.00000000
texcoord 0.00000000 1.00000000
face
vertices 0 1 2 3
texcoords 0 1 2 3
matref 1
endface
face
vertices 4 5 6 7
texcoords 0 1 2 3
matref 1
endface
face
vertices 8 9 10 11
texcoords 0 1 2 3
matref 1
endface
face
vertices 12 13 14 15
texcoords 0 1 2 3
matref 1
endface
drawInfo
extents -1 -1 0 1 1 1
sphere 0 0 0.5 2.25
end # drawInfo
end
mesh
# faces = 0
# checks = 0
# vertices = 0
# normals = 0
# texcoords = 0
# mins = 3.40282e+38 3.40282e+38 3.40282e+38
# maxs = -3.40282e+38 -3.40282e+38 -3.40282e+38
drawInfo
extents -1.67632 -1.67592 0 1.67598 1.67638 1
sphere -0.000169992 0.000230014 0.5 5.86896
vertex -0.707353 0.707434 0
vertex 0.706861 -0.70678 0
vertex 0.706861 -0.70678 1
vertex -0.707353 0.707434 1
vertex 0 -1 0
vertex 0 1 0
vertex 0 1 1
vertex 0 -1 1
vertex -0.707353 -0.70678 0
vertex 0.706861 0.707434 0
vertex 0.706861 0.707434 1
vertex -0.707353 -0.70678 1
vertex -1 0 0
vertex 1 0 0
vertex 1 0 1
vertex -1 0 1
vertex 0.649828 -0.393553 0
vertex 1.34983 -1.60599 0
vertex 1.34983 -1.60599 0.7
vertex 0.649828 -0.393553 0.7
vertex 0.818654 -1.67592 0
vertex 1.181 -0.323623 0
vertex 1.181 -0.323623 0.7
vertex 0.818654 -1.67592 0.7
vertex 0.39361 -1.34977 0
vertex 1.60605 -0.649771 0
vertex 1.60605 -0.649771 0.7
vertex 0.39361 -1.34977 0.7
vertex 0.32368 -0.818598 0
vertex 1.67598 -1.18094 0
vertex 1.67598 -1.18094 0.7
vertex 0.32368 -0.818598 0.7
vertex -1.35017 -0.393553 0
vertex -0.650172 -1.60599 0
vertex -0.650172 -1.60599 0.7
vertex -1.35017 -0.393553 0.7
vertex -1.18135 -1.67592 0
vertex -0.818999 -0.323623 0
vertex -0.818999 -0.323623 0.7
vertex -1.18135 -1.67592 0.7
vertex -1.60639 -1.34977 0
vertex -0.393955 -0.649771 0
vertex -0.393955 -0.649771 0.7
vertex -1.60639 -1.34977 0.7
vertex -1.67632 -0.818598 0
vertex -0.324024 -1.18094 0
vertex -0.324024 -1.18094 0.7
vertex -1.67632 -0.818598 0.7
vertex 0.649828 1.60645 0
vertex 1.34983 0.394011 0
vertex 1.34983 0.394011 0.7
vertex 0.649828 1.60645 0.7
vertex 0.818654 0.324081 0
vertex 1.181 1.67638 0
vertex 1.181 1.67638 0.7
vertex 0.818654 0.324081 0.7
vertex 0.39361 0.650229 0
vertex 1.60605 1.35023 0
vertex 1.60605 1.35023 0.7
vertex 0.39361 0.650229 0.7
vertex 0.32368 1.1814 0
vertex 1.67598 0.819055 0
vertex 1.67598 0.819055 0.7
vertex 0.32368 1.1814 0.7
vertex -1.35017 1.60645 0
vertex -0.650172 0.394011 0
vertex -0.650172 0.394011 0.7
vertex -1.35017 1.60645 0.7
vertex -1.18135 0.324081 0
vertex -0.818999 1.67638 0
vertex -0.818999 1.67638 0.7
vertex -1.18135 0.324081 0.7
vertex -1.60639 0.650229 0
vertex -0.393955 1.35023 0
vertex -0.393955 1.35023 0.7
vertex -1.60639 0.650229 0.7
vertex -1.67632 1.1814 0
vertex -0.324024 0.819055 0
vertex -0.324024 0.819055 0.7
vertex -1.67632 1.1814 0.7
normal 0 0 1
texcoord 0 0
texcoord 1 0
texcoord 1 1
texcoord 0 1
corner 0 0 0
corner 1 0 1
corner 2 0 2
corner 3 0 3
corner 4 0 0
corner 5 0 1
corner 6 0 2
corner 7 0 3
corner 8 0 0
corner 9 0 1
corner 10 0 2
corner 11 0 3
corner 12 0 0
corner 13 0 1
corner 14 0 2
corner 15 0 3
corner 16 0 0
corner 17 0 1
corner 18 0 2
corner 19 0 3
corner 20 0 0
corner 21 0 1
corner 22 0 2
corner 23 0 3
corner 24 0 0
corner 25 0 1
corner 26 0 2
corner 27 0 3
corner 28 0 0
corner 29 0 1
corner 30 0 2
corner 31 0 3
corner 32 0 0
corner 33 0 1
corner 34 0 2
corner 35 0 3
corner 36 0 0
corner 37 0 1
corner 38 0 2
corner 39 0 3
corner 40 0 0
corner 41 0 1
corner 42 0 2
corner 43 0 3
corner 44 0 0
corner 45 0 1
corner 46 0 2
corner 47 0 3
corner 48 0 0
corner 49 0 1
corner 50 0 2
corner 51 0 3
corner 52 0 0
corner 53 0 1
corner 54 0 2
corner 55 0 3
corner 56 0 0
corner 57 0 1
corner 58 0 2
corner 59 0 3
corner 60 0 0
corner 61 0 1
corner 62 0 2
corner 63 0 3
corner 64 0 0
corner 65 0 1
corner 66 0 2
corner 67 0 3
corner 68 0 0
corner 69 0 1
corner 70 0 2
corner 71 0 3
corner 72 0 0
corner 73 0 1
corner 74 0 2
corner 75 0 3
corner 76 0 0
corner 77 0 1
corner 78 0 2
corner 79 0 3
lod # 0
lengthPerPixel 0
matref -1
dlist
sphere -0.000169992 0.000230014 0.5 5.86896
quads 1 2 3 0 7 4 5 6 31 28 29 30 79 76 77 78 75 72 73 74 71 68 69 70 67 64 65 66 61 62 63 60 57 58 59 56 53 54 55 52 49 50 51 48 45 46 47 44 41 42 43 40 37 38 39 36 33 34 35 32 27 24 25 26 23 20 21 22 19 16 17 18 15 12 13 14 9 10 11 8
end # material -1
end # lod 0
lod # 1
lengthPerPixel 0.04
matref -1
dlist
sphere 0.034795 -0.034735 0.5 5.63698
quads 7 4 5 6 31 28 29 30 75 72 73 74 67 64 65 66 57 58 59 56 49 50 51 48 41 42 43 40 33 34 35 32 23 20 21 22 15 12 13 14
end # material -1
end # lod 1
enddef
define fern_patch
group ferns
spin 45 0 0 1
# shift 0 0 5
end
group ferns
spin 45 0 0 1
# shift 8 8 5
end
group ferns
spin -45 0 0 1
# shift -8 8 5
end
group ferns
spin 45 0 0 1
# shift 8 -8 5
end
group ferns
spin -45 0 0 1
# shift -8 -8 5
end
group ferns
spin 45 0 0 1
# shift 0 10 5
end
group ferns
spin -45 0 0 1
# shift -10 0 5
end
group ferns
spin 45 0 0 1
# shift 0 -10 5
end
group ferns
spin -45 0 0 1
# shift 10 0 5
end
enddef
group fern_patch
shift 100 100 5
end
"Life is what happens to you while you're busy making other plans." - John Lennon
mdskpr
Private First Class
Posts: 95 Joined: Sat Jan 28, 2006 4:17 pm
Post
by mdskpr » Sat Apr 25, 2009 7:52 pm
it said that it discarded an incomplete object.....
Spazzy McGee
Sergeant Major
Posts: 1405 Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom
Post
by Spazzy McGee » Sat Apr 25, 2009 11:01 pm
Oh, I chopped off an 'end'. Sorry, I was tired this morning
Code: Select all
material
name fern
diffuse 0.1 0.8 0.1 1
alphathresh 0.5
noradar
noshadow
noculling
nosorting
nolighting
addtexture http://images.bzflag.org/msheppard/fern.png
notexalpha
end
define ferns
group quads
scale 2.5 2.5 5
matref fern
end
enddef
define quads
mesh
# faces = 4
# checks = 0
# vertices = 16
# normals = 1
# texcoords = 4
# mins = -1 -1 0
# maxs = 1 1 1
passable
vertex 0.00000000 -1.00000000 0.00000000
vertex 0.00000000 1.00000000 0.00000000
vertex 0.00000000 1.00000000 1.00000000
vertex 0.00000000 -1.00000000 1.00000000
vertex -0.70735300 0.70743400 0.00000000
vertex 0.70686102 -0.70678002 0.00000000
vertex 0.70686102 -0.70678002 1.00000000
vertex -0.70735300 0.70743400 1.00000000
vertex -1.00000000 0.00000000 0.00000000
vertex 1.00000000 0.00000000 0.00000000
vertex 1.00000000 0.00000000 1.00000000
vertex -1.00000000 0.00000000 1.00000000
vertex -0.70735300 -0.70743400 0.00000000
vertex 0.70686102 0.70678002 0.00000000
vertex 0.70686102 0.70678002 1.00000000
vertex -0.70735300 -0.70743400 1.00000000
normal 0.00000000 0.00000000 1.00000000
texcoord 0.00000000 0.00000000
texcoord 1.00000000 0.00000000
texcoord 1.00000000 1.00000000
texcoord 0.00000000 1.00000000
face
vertices 0 1 2 3
texcoords 0 1 2 3
matref 1
endface
face
vertices 4 5 6 7
texcoords 0 1 2 3
matref 1
endface
face
vertices 8 9 10 11
texcoords 0 1 2 3
matref 1
endface
face
vertices 12 13 14 15
texcoords 0 1 2 3
matref 1
endface
drawInfo
extents -1 -1 0 1 1 1
sphere 0 0 0.5 2.25
end # drawInfo
end
mesh
# faces = 0
# checks = 0
# vertices = 0
# normals = 0
# texcoords = 0
# mins = 3.40282e+38 3.40282e+38 3.40282e+38
# maxs = -3.40282e+38 -3.40282e+38 -3.40282e+38
drawInfo
extents -1.67632 -1.67592 0 1.67598 1.67638 1
sphere -0.000169992 0.000230014 0.5 5.86896
vertex -0.707353 0.707434 0
vertex 0.706861 -0.70678 0
vertex 0.706861 -0.70678 1
vertex -0.707353 0.707434 1
vertex 0 -1 0
vertex 0 1 0
vertex 0 1 1
vertex 0 -1 1
vertex -0.707353 -0.70678 0
vertex 0.706861 0.707434 0
vertex 0.706861 0.707434 1
vertex -0.707353 -0.70678 1
vertex -1 0 0
vertex 1 0 0
vertex 1 0 1
vertex -1 0 1
vertex 0.649828 -0.393553 0
vertex 1.34983 -1.60599 0
vertex 1.34983 -1.60599 0.7
vertex 0.649828 -0.393553 0.7
vertex 0.818654 -1.67592 0
vertex 1.181 -0.323623 0
vertex 1.181 -0.323623 0.7
vertex 0.818654 -1.67592 0.7
vertex 0.39361 -1.34977 0
vertex 1.60605 -0.649771 0
vertex 1.60605 -0.649771 0.7
vertex 0.39361 -1.34977 0.7
vertex 0.32368 -0.818598 0
vertex 1.67598 -1.18094 0
vertex 1.67598 -1.18094 0.7
vertex 0.32368 -0.818598 0.7
vertex -1.35017 -0.393553 0
vertex -0.650172 -1.60599 0
vertex -0.650172 -1.60599 0.7
vertex -1.35017 -0.393553 0.7
vertex -1.18135 -1.67592 0
vertex -0.818999 -0.323623 0
vertex -0.818999 -0.323623 0.7
vertex -1.18135 -1.67592 0.7
vertex -1.60639 -1.34977 0
vertex -0.393955 -0.649771 0
vertex -0.393955 -0.649771 0.7
vertex -1.60639 -1.34977 0.7
vertex -1.67632 -0.818598 0
vertex -0.324024 -1.18094 0
vertex -0.324024 -1.18094 0.7
vertex -1.67632 -0.818598 0.7
vertex 0.649828 1.60645 0
vertex 1.34983 0.394011 0
vertex 1.34983 0.394011 0.7
vertex 0.649828 1.60645 0.7
vertex 0.818654 0.324081 0
vertex 1.181 1.67638 0
vertex 1.181 1.67638 0.7
vertex 0.818654 0.324081 0.7
vertex 0.39361 0.650229 0
vertex 1.60605 1.35023 0
vertex 1.60605 1.35023 0.7
vertex 0.39361 0.650229 0.7
vertex 0.32368 1.1814 0
vertex 1.67598 0.819055 0
vertex 1.67598 0.819055 0.7
vertex 0.32368 1.1814 0.7
vertex -1.35017 1.60645 0
vertex -0.650172 0.394011 0
vertex -0.650172 0.394011 0.7
vertex -1.35017 1.60645 0.7
vertex -1.18135 0.324081 0
vertex -0.818999 1.67638 0
vertex -0.818999 1.67638 0.7
vertex -1.18135 0.324081 0.7
vertex -1.60639 0.650229 0
vertex -0.393955 1.35023 0
vertex -0.393955 1.35023 0.7
vertex -1.60639 0.650229 0.7
vertex -1.67632 1.1814 0
vertex -0.324024 0.819055 0
vertex -0.324024 0.819055 0.7
vertex -1.67632 1.1814 0.7
normal 0 0 1
texcoord 0 0
texcoord 1 0
texcoord 1 1
texcoord 0 1
corner 0 0 0
corner 1 0 1
corner 2 0 2
corner 3 0 3
corner 4 0 0
corner 5 0 1
corner 6 0 2
corner 7 0 3
corner 8 0 0
corner 9 0 1
corner 10 0 2
corner 11 0 3
corner 12 0 0
corner 13 0 1
corner 14 0 2
corner 15 0 3
corner 16 0 0
corner 17 0 1
corner 18 0 2
corner 19 0 3
corner 20 0 0
corner 21 0 1
corner 22 0 2
corner 23 0 3
corner 24 0 0
corner 25 0 1
corner 26 0 2
corner 27 0 3
corner 28 0 0
corner 29 0 1
corner 30 0 2
corner 31 0 3
corner 32 0 0
corner 33 0 1
corner 34 0 2
corner 35 0 3
corner 36 0 0
corner 37 0 1
corner 38 0 2
corner 39 0 3
corner 40 0 0
corner 41 0 1
corner 42 0 2
corner 43 0 3
corner 44 0 0
corner 45 0 1
corner 46 0 2
corner 47 0 3
corner 48 0 0
corner 49 0 1
corner 50 0 2
corner 51 0 3
corner 52 0 0
corner 53 0 1
corner 54 0 2
corner 55 0 3
corner 56 0 0
corner 57 0 1
corner 58 0 2
corner 59 0 3
corner 60 0 0
corner 61 0 1
corner 62 0 2
corner 63 0 3
corner 64 0 0
corner 65 0 1
corner 66 0 2
corner 67 0 3
corner 68 0 0
corner 69 0 1
corner 70 0 2
corner 71 0 3
corner 72 0 0
corner 73 0 1
corner 74 0 2
corner 75 0 3
corner 76 0 0
corner 77 0 1
corner 78 0 2
corner 79 0 3
lod # 0
lengthPerPixel 0
matref -1
dlist
sphere -0.000169992 0.000230014 0.5 5.86896
quads 1 2 3 0 7 4 5 6 31 28 29 30 79 76 77 78 75 72 73 74 71 68 69 70 67 64 65 66 61 62 63 60 57 58 59 56 53 54 55 52 49 50 51 48 45 46 47 44 41 42 43 40 37 38 39 36 33 34 35 32 27 24 25 26 23 20 21 22 19 16 17 18 15 12 13 14 9 10 11 8
end # material -1
end # lod 0
lod # 1
lengthPerPixel 0.04
matref -1
dlist
sphere 0.034795 -0.034735 0.5 5.63698
quads 7 4 5 6 31 28 29 30 75 72 73 74 67 64 65 66 57 58 59 56 49 50 51 48 41 42 43 40 33 34 35 32 23 20 21 22 15 12 13 14
end # material -1
end # lod 1
enddef
define fern_patch
group ferns
spin 45 0 0 1
# shift 0 0 5
end
group ferns
spin 45 0 0 1
# shift 8 8 5
end
group ferns
spin -45 0 0 1
# shift -8 8 5
end
group ferns
spin 45 0 0 1
# shift 8 -8 5
end
group ferns
spin -45 0 0 1
# shift -8 -8 5
end
group ferns
spin 45 0 0 1
# shift 0 10 5
end
group ferns
spin -45 0 0 1
# shift -10 0 5
end
group ferns
spin 45 0 0 1
# shift 0 -10 5
end
group ferns
spin -45 0 0 1
# shift 10 0 5
end
enddef
group fern_patch
shift 100 100 5
end
"Life is what happens to you while you're busy making other plans." - John Lennon
mdskpr
Private First Class
Posts: 95 Joined: Sat Jan 28, 2006 4:17 pm
Post
by mdskpr » Sat Apr 25, 2009 11:59 pm
it still says it....i dont know why...you dont have to investigate it if you don't want to spazzy
mdskpr
Private First Class
Posts: 95 Joined: Sat Jan 28, 2006 4:17 pm
Post
by mdskpr » Sun Apr 26, 2009 10:41 am
Ok i got it working spazzy.. I needed to add two more 'end's to it Thanks Alot
optic delusion
Special Forces
Posts: 1054 Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:
Post
by optic delusion » Sun Apr 26, 2009 6:33 pm
If you are using dimachine or using a /saveworld bzw... simply delete the sphere and extents from the drawinfo.
bzfs computes it's own numbers for them when the map is loaded, and dimachine's are wrong.
Take a look at my Defender game mode concept.
Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.
mdskpr
Private First Class
Posts: 95 Joined: Sat Jan 28, 2006 4:17 pm
Post
by mdskpr » Sun Apr 26, 2009 6:57 pm
oh yeah thanks optical, it said that the error was on line 13665 and that was the sphere line.
Agent West
Private First Class
Posts: 318 Joined: Thu Jan 31, 2008 1:32 pm
Post
by Agent West » Sat May 09, 2009 1:32 am
is it possible to set up an object (maybe using LOD) to dissaper visually, not physically, when you get closer?
Rest in peace, AliceD (AKA Happy Alice)! miss ya!
optic delusion
Special Forces
Posts: 1054 Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:
Post
by optic delusion » Sat May 09, 2009 2:09 am
yes, make the object using an invisible material, then make an identicle drawinfo object with the parts that will (sometimes) be seen. Use an empty lod to make it disappear at the LPP you wish.
Here's how i would do it.
Make an obj.
Convert with modeltool.diconf options, lod 0 and bounding.
Add an empty lod to the bzw, by hand. (this will be just like other lods, but with no tris)
Test and adjust the LPP of the empty lod to make it disappear where you want.
Take a look at my Defender game mode concept.
Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.
Agent West
Private First Class
Posts: 318 Joined: Thu Jan 31, 2008 1:32 pm
Post
by Agent West » Sat May 09, 2009 4:53 am
Thanks, Optic Delusion!
Rest in peace, AliceD (AKA Happy Alice)! miss ya!
anomaly
Private First Class
Posts: 220 Joined: Tue Jul 26, 2005 10:32 pm
Location: Gainesville Florida
Post
by anomaly » Mon May 11, 2009 12:18 pm
I should point out that the drawInfo object (fern) using multiple LODs was created by trepan, not me.