RickyD Posted July 19, 2015 Share Posted July 19, 2015 (edited) Can someone help me out? Which method is Graphics2D allows for me to paint the wireframe of an RS2Object?FIXED I checked ObjectDebug, first you check if the object is visible on the screen: if(GraphicUtilities.getScreenCoordinates(bot,obj.getGridX(), obj.getGridY(), obj.getZ(), obj.getHeight()))[0] != -1) { GraphicUtilities.drawModel(bot, g, obj.getGridX(), obj.getGridY(), obj.getZ(), obj.getModel()); } Edited July 19, 2015 by RickyD Quote Link to comment Share on other sites More sharing options...
FrostBug Posted July 19, 2015 Share Posted July 19, 2015 (edited) Just going from memory here.. but try something like this draw(obj.getModel().getArea(obj.getGridX(), obj.getGridY(), obj.getZ())) Edited July 19, 2015 by FrostBug Quote Link to comment Share on other sites More sharing options...
Flamezzz Posted July 19, 2015 Share Posted July 19, 2015 GraphicUtilities.drawModel 1 Quote Link to comment Share on other sites More sharing options...
RickyD Posted July 19, 2015 Author Share Posted July 19, 2015 (edited) GraphicUtilities.drawModel Thanks! But how would I use it to paint, lets say a bank booth? Just going from memory here.. but try something like this draw(obj.getModel().getArea(obj.getGridX(), obj.getGridY(), obj.getZ())) It worked, but it spazzes out, drawing little fragments of it. Never the whole booth Edited July 19, 2015 by RickyD Quote Link to comment Share on other sites More sharing options...
Flamezzz Posted July 19, 2015 Share Posted July 19, 2015 Thanks! But how would I use it to paint, lets say a bank booth? I checked ObjectDebug, first you check if the object is visible on the screen: if(GraphicUtilities.getScreenCoordinates(bot,obj.getGridX(), obj.getGridY(), obj.getZ(), obj.getHeight()))[0] != -1) { GraphicUtilities.drawModel(bot, g, obj.getGridX(), obj.getGridY(), obj.getZ(), obj.getModel()); } Quote Link to comment Share on other sites More sharing options...
RickyD Posted July 19, 2015 Author Share Posted July 19, 2015 I checked ObjectDebug, first you check if the object is visible on the screen: if(GraphicUtilities.getScreenCoordinates(bot,obj.getGridX(), obj.getGridY(), obj.getZ(), obj.getHeight()))[0] != -1) { GraphicUtilities.drawModel(bot, g, obj.getGridX(), obj.getGridY(), obj.getZ(), obj.getModel()); } Yep that works. I don't know how to read the ObjectDebug Quote Link to comment Share on other sites More sharing options...