+ Reply to Thread
Page 33 of 53 FirstFirst ... 23313233343543 ... LastLast
Results 321 to 330 of 526

Thread: Advanced HUD Tools

  1. #321
    Banned Nicolai1's Avatar
    Join Date
    Nov 2008
    Location
    Denmark.
    Posts
    1,251

    Default Re: Advanced HUD Tools

    Quote Originally Posted by moggie100 View Post
    Currently no - although its not hard to implement that (just a bit of trig and an extra logic statement) - I'll do it after the open beta is out.

    How does...

    Code:
    <rect start={10%,10%}; rotate=80; />
    ...for rotated rectangles sound? and

    Code:
    <polyline color={255,0,0};>
        <point position={10%,10%}; />
        <point position={30%, 20%}; color={0,255,0}; />
        ...
    </polyline>
    ...sound for a polyline? (polygons just bein polylines with a a closing line at the end auto-generated)

    Edit:
    AFAIK, you cant do rotated text without rendering to a texture/surface first, then blitting the texture to the screen - which is OK, but a relitavely HUGE overhead, so I cant promice that I'll do text rotation :/ it'll have to depend on how much it kills performance, sorry!
    Sounds good, but yeah the GPU can't rotate text either.
    Also, will you be able to make non-convex polygons?

  2. #322
    Bug Buster TomyLobo's Avatar
    Join Date
    Feb 2009
    Posts
    2,796

    Default Re: Advanced HUD Tools

    ClickOutput = Vector(ScreenX, ScreenY, Player:EntIndex())
    "It's easy to win forgiveness for being wrong; being right is what gets you into real trouble." - Bjarne Stroustrup

    L&#237;fi&#240; l&#230;&#240;ist l&#250;mskt &#225;fram

  3. #323
    Wire Sofaking moggie100's Avatar
    Join Date
    Dec 2007
    Posts
    416
    Blog Entries
    1

    Default Re: Advanced HUD Tools

    Quote Originally Posted by TomyLobo View Post
    ClickOutput = Vector(ScreenX, ScreenY, Player:EntIndex())
    I guess - but then you'd need a vector input to edit elements DOM style on each users screen... ergh, headache

  4. #324
    Banned Nicolai1's Avatar
    Join Date
    Nov 2008
    Location
    Denmark.
    Posts
    1,251

    Default Re: Advanced HUD Tools

    How will if-then's and operators (+, - etc...) work in it?

    Edit:
    Release now or die a horrible horrible digital death (I kill you in real life so you can't move your digital player around >!!!)

  5. #325
    Ursus maritimus Drunkie's Avatar
    Join Date
    Feb 2009
    Location
    Canada
    Posts
    5,657
    Blog Entries
    1

    Default Re: Advanced HUD Tools

    Quote Originally Posted by Nicolai1 View Post
    Sounds good, but yeah the GPU can't rotate text either.
    dcvxpipe 3; // This coordinate system makes it rotate around the middle
    drotatescale x,y; // X is from 0-360 (Angle), Y is 0 to idk.

  6. #326
    Wire Sofaking moggie100's Avatar
    Join Date
    Dec 2007
    Posts
    416
    Blog Entries
    1

    Default Re: Advanced HUD Tools

    Quote Originally Posted by Nicolai1 View Post
    How will if-then's and operators (+, - etc...) work in it?

    Edit:
    Release now or die a horrible horrible digital death (I kill you in real life so you can't move your digital player around >!!!)
    Logic statements??? This isnt a programing language, its a markup language! Do your logic in an E2! (edit: oop! or gates, or CPU! - sorry gate fanatics!)

    ---
    Edit: Oop2! Operators are supported in values for -any- property in any tag, so;

    Code:
    <line start={320+sin(#Input)*30, 240+cos(#Input)*30}; end={320,240} />
    Is perfectly valid, and will work as expected

    Quote Originally Posted by Drunkie View Post
    dcvxpipe 3; // This coordinate system makes it rotate around the middle
    drotatescale x,y; // X is from 0-360 (Angle), Y is 0 to idk.
    Funky... *makes a note to look at the GPU code*

  7. #327
    Banned Nicolai1's Avatar
    Join Date
    Nov 2008
    Location
    Denmark.
    Posts
    1,251

    Default Re: Advanced HUD Tools

    Quote Originally Posted by Drunkie View Post
    dcvxpipe 3; // This coordinate system makes it rotate around the middle
    drotatescale x,y; // X is from 0-360 (Angle), Y is 0 to idk.
    *Ahem ahem* Word from BP him self: It's impossible to rotate text.
    Spoke with him about GPU a few weeks ago.
    You can even see on his hud_fighter that the screen rotates when rolling, but the degree indicators don't.

  8. #328
    Ursus maritimus Drunkie's Avatar
    Join Date
    Feb 2009
    Location
    Canada
    Posts
    5,657
    Blog Entries
    1

    Default Re: Advanced HUD Tools

    After playing around with the GPU for a bit, I found an incredibly easy way to rotate text!!


  9. #329
    Banned Nicolai1's Avatar
    Join Date
    Nov 2008
    Location
    Denmark.
    Posts
    1,251

    Default Re: Advanced HUD Tools

    Quote Originally Posted by Drunkie View Post
    After playing around with the GPU for a bit, I found an incredibly easy way to rotate text!!


  10. #330
    Wire Sofaking moggie100's Avatar
    Join Date
    Dec 2007
    Posts
    416
    Blog Entries
    1

    Default Re: Advanced HUD Tools

    *facepalm*

+ Reply to Thread
Page 33 of 53 FirstFirst ... 23313233343543 ... LastLast

LinkBacks (?)

  1. 02-14-2010, 12:00 AM
  2. 01-28-2010, 12:12 PM

Similar Threads

  1. Advanced Colourer (as opposed to LevyBreak's Advanced Colorer) :D
    By andy1976uk in forum Ideas & Suggestions
    Replies: 8
    Last Post: 07-10-2008, 03:16 AM
  2. Some code tools
    By CAANz in forum Off-Topic
    Replies: 0
    Last Post: 04-30-2008, 07:00 AM
  3. Replies: 16
    Last Post: 02-26-2008, 07:29 AM
  4. OMG! what happen to my tools
    By GhostBuster in forum Installation and Malfunctions Support
    Replies: 4
    Last Post: 10-11-2007, 07:31 AM
  5. better tools
    By kilroy in forum Ideas & Suggestions
    Replies: 7
    Last Post: 10-02-2007, 10:08 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots