Shifting Arcs

General talk about the map making process.
Post Reply
Half Track
Private First Class
Private First Class
Posts: 36
Joined: Wed Aug 17, 2005 8:36 pm
Location: Boston UK

Shifting Arcs

Post by Half Track »

I am hoping someone can help to stop me going insane!

I am trying to implement the round teleporters from this sit http://www.bzflag.at/map_objekte/ in to my map.

They work fine as theey are but as soon as I try to move them to the position of my teleportes they appear as tiny orcs at the bottom of the screen.

I have played around with to postion, shift & spin and if I use spin 0 0 0 0 then the position is correct bt the arc is obliosly lying flat.

I want to put the arc at -190 -90 7 on my map but it just doesn't seem to want to play.

Any ideas of what I am doing wrong?!
Any help appreciated.
Half Track
Private First Class
Private First Class
Posts: 36
Joined: Wed Aug 17, 2005 8:36 pm
Location: Boston UK

'scuse

Post by Half Track »

Excuse the bad typing above, last time that I drink coffe & type at the same time!
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 »

do you mean these objects

Code: Select all

textureMatrix
  name portal
  shift 0.1 0
end

textureMatrix
  name portal2
  shift -0.1 0
end

material
  name portal_1
  diffuse 0.25 0.25 0.5 1
  addtexture wall
    texmat portal
end

material
  name portal_2
  diffuse 0.25 0.25 0.5 1
  addtexture wall
    texmat portal2
end

transform
  name spintele
  shift 25 25 0
end

transform
  name spintele_1
  shift -25 -25 0
end

box
  position -25 -25 0
  size 15 15 4
  rotation 45
end
box
  position 25 25 0
  size 15 15 4
  rotation 45
end

arc
  position 0 0 0
  size 10 10 2
  rotation 45
  angle 360
  ratio 0.3
  divisions 64
  shift 0 10 -1
  spin 90 1 0 0
  xform spintele
  texsize -8 -8 -8 -8
  top matref portal_1
  bottom matref portal_1
  inside matref portal_2
  outside matref portal_1
  startside matref portal_1
  endside matref portal_1
end
arc
  position 0 0 0
  size 10 10 2
  rotation 45
  angle 360
  ratio 0.3
  divisions 64
  shift 0 10 -1
  spin 90 1 0 0
  xform spintele_1
  texsize -8 -8 -8 -8
  top matref portal_1
  bottom matref portal_1
  inside matref portal_2
  outside matref portal_1
  startside matref portal_1
  endside matref portal_1
end

teleporter /t17
  position -25 -25 4
  size 0.5 7 13
  rotation 90
  border 0
end
teleporter /t16
  position 25 25 4
  size 0.5 7 13
  rotation 90
  border 0
end

link
  from /t16:f
  to   /t17:b
end

link
  from /t17:f
  to   /t16:b
end

link
  from /t16:b
  to   /t17:f
end

link
  from /t17:b
  to   /t16:f
end
what you wanna do is use the transform part of the code, that will move it to the position you want, but when you do this you need to make sure you move the teles to the same position,
this code (see below) should put it where you want but remember there are two of them not one

Code: Select all

textureMatrix
  name portal
  shift 0.1 0
end

textureMatrix
  name portal2
  shift -0.1 0
end

material
  name portal_1
  diffuse 0.25 0.25 0.5 1
  addtexture wall
    texmat portal
end

material
  name portal_2
  diffuse 0.25 0.25 0.5 1
  addtexture wall
    texmat portal2
end

transform
  name spintele
  shift 190 90 3
end

transform
  name spintele_1
  shift -190 -90 3
end

box
  position -190 -90 0
  size 15 15 7
  rotation 45
end
box
  position 190 90 0
  size 15 15 7
  rotation 45
end

arc
  position 0 0 0
  size 10 10 2
  rotation 45
  angle 360
  ratio 0.3
  divisions 64
  shift 0 10 -1
  spin 90 1 0 0
  xform spintele
  texsize -8 -8 -8 -8
  top matref portal_1
  bottom matref portal_1
  inside matref portal_2
  outside matref portal_1
  startside matref portal_1
  endside matref portal_1
end
arc
  position 0 0 0
  size 10 10 2
  rotation 45
  angle 360
  ratio 0.3
  divisions 64
  shift 0 10 -1
  spin 90 1 0 0
  xform spintele_1
  texsize -8 -8 -8 -8
  top matref portal_1
  bottom matref portal_1
  inside matref portal_2
  outside matref portal_1
  startside matref portal_1
  endside matref portal_1
end

teleporter /t17
  position 190 90 7
  size 0.5 7 13
  rotation 90
  border 0
end
teleporter /t16
  position -190 -90 7
  size 0.5 7 13
  rotation 90
  border 0
end

link
  from /t16:f
  to   /t17:b
end

link
  from /t17:f
  to   /t16:b
end

link
  from /t16:b
  to   /t17:f
end

link
  from /t17:b
  to   /t16:f
end
[/code]
MONKEYPANTS.COM
Image
Half Track
Private First Class
Private First Class
Posts: 36
Joined: Wed Aug 17, 2005 8:36 pm
Location: Boston UK

Thanks!!!!

Post by Half Track »

Thanks Sir Pants, that did the job a treat!!

I am not sure of the logic of it all yet but now I have done it I will be able to follow it through to make sense of it.

I thought it was funny that the two arcs in the original had the same position and shift, now I have had a look I can see the transform is where the difference is.

Thanks again, you are a star!

HT
Post Reply