GarageGames / Torque3D

MIT Licensed Open Source version of Torque 3D from GarageGames
http://torque3d.org
MIT License
3.35k stars 1.2k forks source link

Ribbon stepping #1222

Open RoundedIcon opened 9 years ago

RoundedIcon commented 9 years ago

http://i.imgur.com/3p9hgas.png Ribbons will have the stepping behavior shown above when mounted to a vehicle or rigidshape.

Code to reproduce issue (modified from Steve Acaster's resource): in game\scripts\server\cheetah.cs in the onAdd function

   %ribbon1 = new RibbonNode() {
      active = "1";
      Ribbon = "TexturedRibbon";
      dataBlock = "DefaultRibbonNodeData";
      position = "-1.33647 1.42102 229.931";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      canSave = "1";
      canSaveDynamicFields = "1";
   };
   %ribbon2 = new RibbonNode() {
      active = "1";
      Ribbon = "BasicRibbon";
      dataBlock = "DefaultRibbonNodeData";
      position = "-1.33647 1.42102 229.931";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      canSave = "1";
      canSaveDynamicFields = "1";
   };

   %obj.mountObject(%ribbon1, %this.rightBrakeSlot);  
   %obj.mountObject(%ribbon2, %this.leftBrakeSlot); 
crabmusket commented 9 years ago

I do know that Steve managed to solve this with some sort of order-of-operations fix - the order in which stuff is created, mounted, etc., I thought. Will investigate and see if this is something we can fix in code, or if we just have to make sure the documentation is there.

SteveYorkshire commented 9 years ago

If you spawn the ribbons with the object you shouldn't get stepping. If you do then I'd suggest that you've got a net or lag issue somewhere. I've only tested ribbons in Release and haven't tried ribbons in debug because I find debug slow and laggy to work with. Check which build version you're using.

RoundedIcon commented 9 years ago

I played around with ribbons a bit more and noticed that setting skipAmount to a number around 4 got rid of almost all stepping behavior. If they are supposed to work with skipAmount = 0 however, ribbons still have problems in the latest dev branch no matter what way I add them.

RoundedIcon commented 9 years ago

Tested out Steve's ribbon resource. The glow makes it hard to see, but the stepping is there as well. The above test was conducted with a 32bit release build of the dev branch synced 5 days ago, and this test was done with that same branch with the ribbon code replaced with the resource version.

Setting the skipAmount to something over 3 has the same affect as before, but I do not know if that is the intended way to use it or just a way to hide the problem.