Jump to content


Photo

Verts: Export a window to 3D for analysis [1.4]


  • Please log in to reply
12 replies to this topic

#1 tidbit

tidbit
  • Moderators
  • 2288 posts

Posted 19 March 2012 - 09:58 PM

[*:15fewo2c]Verts v1.4
Download
3D viewer made in AHK:
Download (thanks Uberi!)
(may not work with all graphics cards. for an alternative, read below.)

Notes:
The program can and will create files in the Script Directory.
Tested and works on XPSP3 32Bit using AutoHotkey Basic.

Description:
Help you visualize a programs GUI by plotting out all controls of a window into a 3d space. Each control is a flat plane and each control is on its own "layer" so you can visualize the stack order. The higher up the control is, the higher the z-index the control has.
Also, some windows/programs generate an interesting output. And with some tweaking you could make some interesting 3D game maps or even buildings/structures.

Misc:
Screenshot and instructions using the free 3D model viewing tool: GLC Player
You can load these .obj files in any 3d program that supports the .obj format.

Enjoy.

Change Log:
[color=brown]-v1.4 Fri April 10, 2012[/color]
   Fill option added.
[color=brown]-v1.3 Mon March 19, 2012[/color]
   initial public release.


#2 Carcophan

Carcophan
  • Members
  • 1568 posts

Posted 20 March 2012 - 12:18 AM

I can't wait to check this out.

You rock.

#3 kenn

kenn
  • Members
  • 407 posts

Posted 20 March 2012 - 09:41 AM

tidbit Congratulations on your project. Well done! I tested it, it works nice. It can be used in many areas. Can we develop a 3D desktop with this?

#4 tidbit

tidbit
  • Moderators
  • 2288 posts

Posted 20 March 2012 - 02:12 PM

kenn and Carcophan, thanks!

I bet you could make a 3D desktop, but I doubt this method would be the best way. unless you can figure out a way to store all the objects in memory and update size and position in real-time.

#5 tidbit

tidbit
  • Moderators
  • 2288 posts

Posted 22 March 2012 - 08:38 PM

Added a 3D viewer made by Uberi made in AHK!
Note: It might not work with your graphics card.

#6 JamixZol

JamixZol
  • Members
  • 54 posts

Posted 03 April 2012 - 10:47 AM

This is VERY COOL, this could be used to make some impressive user manuals for apps. Excellent work!

#7 tidbit

tidbit
  • Moderators
  • 2288 posts

Posted 03 April 2012 - 03:16 PM

Thanks, JamixZol! and welcome to the forums.

That's a pretty cool idea.

#8 fragman

fragman
  • Members
  • 1591 posts

Posted 03 April 2012 - 04:37 PM

I think I mentioned this before, how about a fill color that fills the part under the floating controls so it looks like the background? This would make the image look less complex and more elegant I think.

#9 JamixZol

JamixZol
  • Members
  • 54 posts

Posted 03 April 2012 - 08:40 PM

Thanks tidbit :)

You may be on to something there fragman, I use Pic backgrounds on most of my GUIs for the polish it gives them. It would be cool to either use fill as you say, or map the background image as a flat image to the main window, or maybe... like if no pic control found, map a generic image to the obj where the main window is (like a single grey pixel map). I had intended to remap the obj this way in something like blender for the documentation renders for what I was intending to use this for. Another good approach to this may be something like feeding Verts a script file that it can parse out GUI elements to generate a full schematic including hidden and on tab controls. At any rate, this is some very impressive work tidbit, I appreciate you sharing with us :D

#10 tidbit

tidbit
  • Moderators
  • 2288 posts

Posted 04 April 2012 - 08:44 PM

sadly guys, I don't follow you :oops:
can you explain or give a screenshot of what you mean?

btw, the very bottom plane (base window) is a screenshot of he whole program.

#11 fragman

fragman
  • Members
  • 1591 posts

Posted 05 April 2012 - 11:17 AM

btw, the very bottom plane (base window) is a screenshot of he whole program.

I suggest that you provide an option to fill the area of all controls on the bottom plane with a color.

#12 JamixZol

JamixZol
  • Members
  • 54 posts

Posted 05 April 2012 - 08:49 PM

Right, so as to draw a solid color rect over the working area of the gui, then use the original screencap to generate the controls floating out from it.
This would look something like this:
Original cap:
Posted Image
Current output:
Posted Image
Proposed output with rect:
Posted Image
The idea of feeding it a gui script too would be like: fileselectfile, then parse out the gui elements and render them in temporary guis to get screencaps of them, then use those to generate the obj.

#13 tidbit

tidbit
  • Moderators
  • 2288 posts

Posted 20 April 2012 - 08:40 PM

Updated, 1.4.
Added an option to add a fell color for the base window.

I got a new pc with win7 64bit and some things seem to be a little buggier. Such as the newly added feature. I'll work out the kinks.

edit: figured out why the Fill is sometimes off. Win7 Aero. sysget isn't detecting the right border width. Anyone got a function? :O