Jump to content



Photo

LED - Segments


  • Please log in to reply
3 replies to this topic

#1 chepas

chepas

    t.me/horsepin

  • Members
  • PipPipPipPip
  • 1,966 posts

  • Flag: ---------

  • Favorite Pinball: BSD, Tr0n, SW:Stern

Posted 21 July 2015 - 02:50 PM

Ok I pulled this from BK and without knowing any quicker ways to do this, you set first the scale and offset with float value 0 - 1 and chop into segments.

        SetDMDObjects(new string[] { "DMD1", "DMD2", "DMD3", "DMD4", "DMD5", "DMD6" }, "BxVPMSegments");
        GameObject.Find("DMD1").renderer.material.mainTextureScale = new Vector2(0.5f, 0.30f);
        GameObject.Find("DMD1").renderer.material.mainTextureOffset = new Vector2(0f, 0.02f);

        GameObject.Find("DMD2").renderer.material.mainTextureScale = new Vector2(0.5f, 0.30f);
        GameObject.Find("DMD2").renderer.material.mainTextureOffset = new Vector2(0.5f, 0.02f);

        GameObject.Find("DMD3").renderer.material.mainTextureScale = new Vector2(0.5f, 0.35f);
        GameObject.Find("DMD3").renderer.material.mainTextureOffset = new Vector2(0f, 0.5f);
        GameObject.Find("DMD4").renderer.material.mainTextureScale = new Vector2(0.5f, 0.35f);
        GameObject.Find("DMD4").renderer.material.mainTextureOffset = new Vector2(0.5f, 0.5f);

        GameObject.Find("DMD5").renderer.material.mainTextureScale = new Vector2(0.12f, 0.2f);
        GameObject.Find("DMD5").renderer.material.mainTextureOffset = new Vector2(0.03f, 0.68f);
        GameObject.Find("DMD6").renderer.material.mainTextureScale = new Vector2(0.12f, 0.2f);
        GameObject.Find("DMD6").renderer.material.mainTextureOffset = new Vector2(0.18f, 0.68f);

No problem to do that, I've only adjusted the first two Overlays pos & scale.

 

They're supposed to be Overlays? The performance hit is really bad like 6FPS per segment. Something I'm missing inside FP?

 

I did try running just two in SetDmdObjects and did take another 10fps just with those, and with them all on is unplayable below 20fps.

 


Edited by chepas, 21 July 2015 - 02:51 PM.

Bump maps are the new auto-tune :BDH:
VPX - RSS Updates ---- blog.flippingflips.xyz/en/ -- Visual Pinball No.1 (2021) . Est.2000


#2 chepas

chepas

    t.me/horsepin

  • Members
  • PipPipPipPip
  • 1,966 posts

  • Flag: ---------

  • Favorite Pinball: BSD, Tr0n, SW:Stern

Posted 21 July 2015 - 11:41 PM

Had a quick go on BK and that is also really bad.


Bump maps are the new auto-tune :BDH:
VPX - RSS Updates ---- blog.flippingflips.xyz/en/ -- Visual Pinball No.1 (2021) . Est.2000


#3 BilboX

BilboX

    Enthusiast

  • Unit3D Pinball Team
  • 433 posts
  • Location:French Polynesia

  • Flag: France

  • Favorite Pinball: Metallica, Addams Familly, Scared Stiff, White Water

Posted 22 July 2015 - 08:11 AM

Ok so it seems to be an issue on our side.

Don't spend too much time on this one, I'll take a look...

Thanks for reporting


UP2


#4 chepas

chepas

    t.me/horsepin

  • Members
  • PipPipPipPip
  • 1,966 posts

  • Flag: ---------

  • Favorite Pinball: BSD, Tr0n, SW:Stern

Posted 22 July 2015 - 10:28 AM

No worries will comment for now , thanks.


Bump maps are the new auto-tune :BDH:
VPX - RSS Updates ---- blog.flippingflips.xyz/en/ -- Visual Pinball No.1 (2021) . Est.2000