RickyD Posted July 19, 2015 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
FrostBug Posted July 19, 2015 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
RickyD Posted July 19, 2015 Author 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
Flamezzz Posted July 19, 2015 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()); }
RickyD Posted July 19, 2015 Author 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