July 19, 201510 yr 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, 201510 yr by RickyD
July 19, 201510 yr Just going from memory here.. but try something like this draw(obj.getModel().getArea(obj.getGridX(), obj.getGridY(), obj.getZ())) Edited July 19, 201510 yr by FrostBug
July 19, 201510 yr Author 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, 201510 yr by RickyD
July 19, 201510 yr 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()); }
July 19, 201510 yr Author 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
Create an account or sign in to comment