Page 3 of 5 FirstFirst 12345 LastLast
Results 51 to 75 of 101

Thread: [OGL Methods] clostest, extractIDs, etc

  1. #51
    Join Date
    Jun 2012
    Posts
    586
    Mentioned
    112 Post(s)
    Quoted
    296 Post(s)

    Default

    Had to rewrite a lot of methods, such as .isBehindInterface(), because textures not visible apparently now cover the screen. So, my obsLividFarm will be delayed a day...

    However! Here's a teaser:




    Skype: obscuritySRL@outlook.com

  2. #52
    Join Date
    Jan 2014
    Posts
    147
    Mentioned
    7 Post(s)
    Quoted
    75 Post(s)

    Default

    Quote Originally Posted by Obscurity View Post
    Had to rewrite a lot of methods, such as .isBehindInterface(), because textures not visible apparently now cover the screen. So, my obsLividFarm will be delayed a day...

    However! Here's a teaser:
    Looks very juicy <3

    Can we get an ETA on a OGL tutorial, or is that classified information

  3. #53
    Join Date
    Dec 2011
    Posts
    2,147
    Mentioned
    221 Post(s)
    Quoted
    1068 Post(s)

    Default

    Quote Originally Posted by uhit View Post
    Looks very juicy <3

    Can we get an ETA on a OGL tutorial, or is that classified information
    Not really, lol. I finished the first draft this morning. Expecting that @Obscurity will have stuff to add before it gets posted though.

  4. #54
    Join Date
    Jun 2012
    Posts
    586
    Mentioned
    112 Post(s)
    Quoted
    296 Post(s)

    Default

    Yessir! Though, I might be at work until late - so Skype it to me and I'll TeamViewer my PC if I have to view it. Might clock out after 8, we'll see. :-P.




    Skype: obscuritySRL@outlook.com

  5. #55
    Join Date
    Jun 2012
    Posts
    586
    Mentioned
    112 Post(s)
    Quoted
    296 Post(s)

    Default

    Small update. Since Jagex's release of the clock, .isBehindInterface() has been acting all strange. For some reason, textures usually used for interface backgrounds are spanning across various areas of the client - though not visible. This makes the method think a point, texture, or model is behind an interface when it actually isn't.

    So, I had to take a different approach, other then checking if the point was behind a background texture...

    Now, it grabs all top corner textures. It then correctly groups them into pairs, matching the top-left to the top-right. It then looks for all bottom corner textures. It, again, correctly pairs them together and then partners them with the corresponding top corners. From here it's a simple .isInBox().

    That said, sorry if the methods have been faulty since last Monday.

    Apart from that, a few things have been added so that I can make my obsLividFarm public. .




    Skype: obscuritySRL@outlook.com

  6. #56
    Join Date
    Aug 2007
    Location
    Hawaii
    Posts
    3,880
    Mentioned
    7 Post(s)
    Quoted
    152 Post(s)

    Default

    OSRS does not have OGL capability right?
    Faith is an oasis in the heart which will never be reached by the caravan of thinking.

  7. #57
    Join Date
    Mar 2013
    Posts
    1,010
    Mentioned
    35 Post(s)
    Quoted
    620 Post(s)

    Default

    Quote Originally Posted by kingarabian View Post
    OSRS does not have OGL capability right?
    No, but then resizeable comes out it might.
    #slack4admin2016
    <slacky> I will build a wall
    <slacky> I will ban reflection and OGL hooking until we know what the hell is going on

  8. #58
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Quote Originally Posted by Harrier View Post
    No, but then resizeable comes out it might.
    They're doing that? interesting...

  9. #59
    Join Date
    Aug 2007
    Location
    Hawaii
    Posts
    3,880
    Mentioned
    7 Post(s)
    Quoted
    152 Post(s)

    Default

    Quote Originally Posted by Olly View Post
    They're doing that? interesting...
    Yeah along with 08 graphics. Gonna be up for polling this year I think.

    Quote Originally Posted by Harrier View Post
    No, but then resizeable comes out it might.
    Thanks for the clarification .
    Last edited by Zyt3x; 01-21-2015 at 10:08 PM. Reason: merged
    Faith is an oasis in the heart which will never be reached by the caravan of thinking.

  10. #60
    Join Date
    Mar 2013
    Posts
    1,010
    Mentioned
    35 Post(s)
    Quoted
    620 Post(s)

    Default

    Quote Originally Posted by Olly View Post
    They're doing that? interesting...
    Yup, since osrs is tiny when on a 4k monitor atm.

    Please note, I'm assuming they are using opengl for it since they've been devving it for 5-6 months.
    #slack4admin2016
    <slacky> I will build a wall
    <slacky> I will ban reflection and OGL hooking until we know what the hell is going on

  11. #61
    Join Date
    Jun 2012
    Posts
    586
    Mentioned
    112 Post(s)
    Quoted
    296 Post(s)

    Default

    Added .extractTID().




    Skype: obscuritySRL@outlook.com

  12. #62
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Obscurity, thanks to you, OpenGL has blown up around here lately I plan to try my hand at scripting with obscurityLibrary after the aforementioned OpenGL tutorial is written.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  13. #63
    Join Date
    Jun 2012
    Posts
    586
    Mentioned
    112 Post(s)
    Quoted
    296 Post(s)

    Default

    Awesome! It has some great potential and I look forward to what people can come up with!

    Though, I'd thank Clarity before myself; This library was very much built around his needs and requests. :-P. He's also the one to get me hooked on it. Lol.

    As always, if there's anything anyone needs or wants added to it, run it by me. I've only added what we've needed so far, but we're just two people. :-).




    Skype: obscuritySRL@outlook.com

  14. #64
    Join Date
    Jun 2012
    Posts
    586
    Mentioned
    112 Post(s)
    Quoted
    296 Post(s)

    Default

    Added obsGetChooseOption() and obsSetChooseOption(). The explanations are below:
    Simba Code:
    {
     ========================================
     NOTE: The obsGetChooseOption function
     returns a string array of available
     option selections. For example, an
     option while speaking to a banker is,
     "I'd like to check my PIN settings."
     Results are lowercase with spaces and
     special characters removed.

     EXAMPLES:
     ----------------------------------------
     availableOptions:=obsGetChooseOption();
     writeLN('The available options are:');
     writeLN(availableOptions);
     ========================================
    }
    Simba Code:
    {
     ========================================
     NOTE: The obsSetChooseOption function
     selects an option, if it exists, by
     either pressing the relative button or
     clicking it. Options are not case
     sensitive and special characters will
     be ignored.

     EXAMPLES:
     ----------------------------------------
     availableOptions:=obsGetChooseOption();
     if availableOptions.contains('seeyouaround') then
       obsSetChooseOption('SeE yOu ArOuNd!@#$');
     ========================================
    }

    The options these are referring to are...


    An example usage could be encouraging Pauline in just two lines!
    Simba Code:
    if obsClickOption(pointPauline,'Encourage Drained Pauline Polaris') then
      obsSetChooseOption(['Come on, youre doing so well.','Extraordinary!','Keep going! We can do this!','Lokar will really appreciate this.','Look at all the produce being made.','Youre doing a fantastic job.']);
    ...since obsClickOption returns true if the right click option was found and clicked. Therefore, Pauline was, indeed, drained, as her right click otherwise excludes that word.




    Skype: obscuritySRL@outlook.com

  15. #65
    Join Date
    Jun 2012
    Posts
    586
    Mentioned
    112 Post(s)
    Quoted
    296 Post(s)

    Default

    Because of strange behaviours with textures being duped and drawn in odd places at odd sizes (see here), .extractDimensions(), .extractHeight(), and .extractWidth() have been added. For now, they only accept integers, but I plan on making something like .extractWidth('<25') an option.




    Skype: obscuritySRL@outlook.com

  16. #66
    Join Date
    Feb 2012
    Location
    Portugal
    Posts
    91
    Mentioned
    3 Post(s)
    Quoted
    41 Post(s)

    Default

    Cant wait to use this When is that tutorial coming?

  17. #67
    Join Date
    Jun 2012
    Posts
    586
    Mentioned
    112 Post(s)
    Quoted
    296 Post(s)

    Default

    Not sure, TBH. My schedule hasn't exactly aligned with @Clarity's yet. We'll likely get in contact by the end of this weekend, I'd hope. Will prod him about it. .




    Skype: obscuritySRL@outlook.com

  18. #68
    Join Date
    Feb 2012
    Location
    Portugal
    Posts
    91
    Mentioned
    3 Post(s)
    Quoted
    41 Post(s)

    Default

    Thank you very much!

  19. #69
    Join Date
    Jun 2012
    Posts
    586
    Mentioned
    112 Post(s)
    Quoted
    296 Post(s)

    Default

    I'm going to apologize in advance for this post... Lol. With some upcoming changes to plugins/etc, I've decided it's time to optimize the obscurityLibraryUpload.

    What does this mean to you? Well, I've always focused on usability. I wanted my functions and things to be as easy to use as possible. This won't change. However, a number of methods will be changed. For example, glModelArray.closestTo(glModel) and all of its overloads will no longer return a single tPoint. It'll return a tPointArray, sorted by distance from glModel. This, of course, is only one example. Sorry!

    I also wanted the library to be easy to read. This sacrificed performance. This is no longer a sacrifice I'm willing to make. The obscurityLibraryUpload is to help you use the OpenGL plugins. It doesn't have to be pretty, but if it's not the absolute fastest it can be then it'll render the upcoming changes to the plugin pointless. If your curious how to do something in OpenGL, perhaps something that the library does, I'm sure you'll be able to find it in our tutorial.

    Now that you know that you've got some updating to do to your scripts, here's some good news. I've been making great progress in adding new functions, methods, and procedures that I'm excited to release. Things like realistic camera movement. Currently, I've only released obsSetCameraAngle() and obsSetCompassAngle(); You can only move either horizontal or vertical. obsSetView(compassAngle,cameraAngle) changes that! On top of that, the existing functionality will be much faster. The size of the library will also be much smaller.



    Anyways, you can expect to see these changes this weekend! .




    Skype: obscuritySRL@outlook.com

  20. #70
    Join Date
    Feb 2012
    Location
    Portugal
    Posts
    91
    Mentioned
    3 Post(s)
    Quoted
    41 Post(s)

    Default

    Gratz on the SRL Member!
    By the way how can we debug model ids? I really want to give OpenGL a try, cant expect for the tutorial to come out!

  21. #71
    Join Date
    Jun 2012
    Posts
    586
    Mentioned
    112 Post(s)
    Quoted
    296 Post(s)

    Default

    Thanks! .

    After you load SMART, use:
    Simba Code:
    vDebug('M'); //~ Models
    vDebug('N'); //~ None
    vDebug('T'); //~ Textures

    Only one can be used at a time. Or, if you prefer, you can use glDebug().




    Skype: obscuritySRL@outlook.com

  22. #72
    Join Date
    Dec 2011
    Posts
    2,147
    Mentioned
    221 Post(s)
    Quoted
    1068 Post(s)

  23. #73
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Quote Originally Posted by Clarity View Post
    That members though.
    Now don't let the community down.
    He'll be like the other 20 auto-members, afk for the rest of his life.

  24. #74
    Join Date
    Feb 2012
    Location
    Portugal
    Posts
    91
    Mentioned
    3 Post(s)
    Quoted
    41 Post(s)

    Default

    Quote Originally Posted by NKN View Post
    He'll be like the other 20 auto-members, afk for the rest of his life.
    Please dont! I find being a member a big responsibility. Please don't let us down!

  25. #75
    Join Date
    Feb 2012
    Location
    Portugal
    Posts
    91
    Mentioned
    3 Post(s)
    Quoted
    41 Post(s)

    Default

    Quote Originally Posted by Obscurity View Post
    Thanks! .

    After you load SMART, use:
    Simba Code:
    vDebug('M'); //~ Models
    vDebug('N'); //~ None
    vDebug('T'); //~ Textures

    Only one can be used at a time. Or, if you prefer, you can use glDebug().
    Dont I need DemiseGLZ.simba to do that? Where can I find it?

Page 3 of 5 FirstFirst 12345 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •