Isolate Posted December 14, 2017 Share Posted December 14, 2017 hoio i'm not the best at maths and i'm not really sure if anyone i could ask irl would understand my issue so i'll hope someone here is so kind. I'm looking for a raw snippet, aka not dependent on osbot graphics util methods or anything, that takes the vertices arrays/rotation/screen coords to come up with a buncho points that can be rendered to come out like the osbuddy npc rendering that is an almost trace of the model from the most outter points connecting, and moves as the model changes. (unable to locate example i showed in the past sorry )@FrostBug made a dandy like one that i managed to lose and the paste expired but it required GraphicsUtil.getScreenCoordinates[[S bless. Quote Link to comment Share on other sites More sharing options...
Alek Posted December 14, 2017 Share Posted December 14, 2017 I hope you know OSBot graphics util methods provides the world to screen translation; I mean best of luck if you want to figure that out on your own. 1 Quote Link to comment Share on other sites More sharing options...
Explv Posted December 14, 2017 Share Posted December 14, 2017 Pretty sure someone posted a snippet in the snippets section for drawing the models in the way that you want. It was OSBot dependent, not sure why you wouldn't want that, especially because you're on the OSBot forums?? Quote Link to comment Share on other sites More sharing options...
Isolate Posted December 14, 2017 Author Share Posted December 14, 2017 10 minutes ago, Alek said: I hope you know OSBot graphics util methods provides the world to screen translation; I mean best of luck if you want to figure that out on your own. your IiiIIiiIii's hurt my eeeyyyyeeees the bane of no true case sensitive ide innit buts rs im shit at maths and i know some people here are aight and can prolly manage this. Not a major hastle if it can't get done, just a shot in the dark Quote Link to comment Share on other sites More sharing options...
Explv Posted December 14, 2017 Share Posted December 14, 2017 (edited) 3 minutes ago, Isolate said: your IiiIIiiIii's hurt my eeeyyyyeeees the bane of no true case sensitive ide innit buts rs im shit at maths and i know some people here are aight and can prolly manage this. Not a major hastle if it can't get done, just a shot in the dark This is the post I was referring to: Can't be bothered to check if it meets your requirements. If you need complete sauce without hidden OSBot methods, you're better off going to an RSPS forum or something like that. Edited December 14, 2017 by Explv Quote Link to comment Share on other sites More sharing options...
Isolate Posted December 14, 2017 Author Share Posted December 14, 2017 1 minute ago, Explv said: This is the post I was referring to: Can't be bothered to check if it meets your requirements. If you need complete sauce without hidden OSBot methods, you're better off going to an RSPS forum or something like that. I'm sure we have a hidden math wizard here somewhere to help :3 I have faith Quote Link to comment Share on other sites More sharing options...
Alek Posted December 14, 2017 Share Posted December 14, 2017 It also takes someone who knows the game and actively reverses it. Not sure why you need the translation snippet when you can achieve the result you are looking for relatively easily using the OSBot API. Quote Link to comment Share on other sites More sharing options...
Explv Posted December 14, 2017 Share Posted December 14, 2017 4 minutes ago, Isolate said: I'm sure we have a hidden math wizard here somewhere to help :3 I have faith What exactly do you need? Just the world to screen function? 1 minute ago, Alek said: It also takes someone who knows the game and actively reverses it. Not sure why you need the translation snippet when you can achieve the result you are looking for relatively easily using the OSBot API. I believe he is working on his own client 1 Quote Link to comment Share on other sites More sharing options...
Isolate Posted December 14, 2017 Author Share Posted December 14, 2017 1 minute ago, Alek said: It also takes someone who knows the game and actively reverses it. Not sure why you need the translation snippet when you can achieve the result you are looking for relatively easily using the OSBot API. I like going out of my way to complicate things maybe Quote Link to comment Share on other sites More sharing options...
Explv Posted December 14, 2017 Share Posted December 14, 2017 (edited) 3 minutes ago, Isolate said: I like going out of my way to complicate things maybe If all you need is the world to screen function / other similar functions, there are plenty of open source clients that you can just look at, or check RSPS forums. For example: https://github.com/Acuity/AcuityCore/blob/6cf2ebddfeccf04521b2599063bec266d930ec23/acuity-api/src/main/java/com/acuity/api/rs/utils/Projection.java Edited December 14, 2017 by Explv Quote Link to comment Share on other sites More sharing options...
Isolate Posted December 14, 2017 Author Share Posted December 14, 2017 4 minutes ago, Explv said: If all you need is the world to screen function / other similar functions, there are plenty of open source clients that you can just look at, or check RSPS forums. For example: https://github.com/Acuity/AcuityCore/blob/6cf2ebddfeccf04521b2599063bec266d930ec23/acuity-api/src/main/java/com/acuity/api/rs/utils/Projection.java indeed an abundance of similar methods, mainly tile to screen for some reason, sure i could adapt it but this is more of a no effort grasp at straws incase a wizard is bored. in no urgent need Quote Link to comment Share on other sites More sharing options...
Explv Posted December 14, 2017 Share Posted December 14, 2017 2 minutes ago, Isolate said: indeed an abundance of similar methods, mainly tile to screen for some reason, sure i could adapt it but this is more of a no effort grasp at straws incase a wizard is bored. in no urgent need There's a method in that class I linked named "boundingBoxtoScreen". Isn't that exactly what you need? Or at least a very slightly modified version of it..? Quote Link to comment Share on other sites More sharing options...
Isolate Posted December 14, 2017 Author Share Posted December 14, 2017 1 minute ago, Explv said: There's a method in that class I linked named "boundingBoxtoScreen". Isn't that exactly what you need? Or at least a very slightly modified version of it..? this is why i need the refference i sent to frosty burger, its not quite a perfect bounding box, its like a crudely drawn outline between all the outmost points of the model Quote Link to comment Share on other sites More sharing options...
Explv Posted December 14, 2017 Share Posted December 14, 2017 2 minutes ago, Isolate said: this is why i need the refference i sent to frosty burger, its not quite a perfect bounding box, its like a crudely drawn outline between all the outmost points of the model Wait, let's clarify this, you want the top image (green boxes), or the bottom one (red boxes) ? Quote Link to comment Share on other sites More sharing options...
Isolate Posted December 14, 2017 Author Share Posted December 14, 2017 3 minutes ago, Explv said: Wait, let's clarify this, you want the top image (green boxes), or the bottom one (red boxes) ? like halfway between them Quote Link to comment Share on other sites More sharing options...