210 likes | 225 Views
This update discusses the goals, previous work, enhancements, voxel creation, random numbers, automation, manual placement, ongoing work with Viz-tek, and future goals related to luggage modeling and visualization imaging.
E N D
Update on Luggage Modeling and Visualization Imaging, Robotics, & Intelligent Systems Laboratory University of Tennessee Chris Kammerud Spring 2004
Outline • Goals • Previous Work • Semester’s Enhancements • Voxel Creation • Random Numbers • Automation • Manual Placement • Ongoing work with Viz-tek • Future Work
Goals • Creation of luggage scenes can be used in an x-ray simulator • Need an efficient way to place several items inside a luggage item • As well, automate the process • With the Viz-Tek system, a new goal is the visualization of the created scenes in stereo projection
Voxel Creation • Previously, the number of voxels created was either a default value or one provided by the user • In the current program, the size of voxels is based on the smallest item to be placed • By doing this, a balance is maintained by the loss in speed when dealing with smaller voxels, and having wasted space.
Creation Methodology • Once voxels are to be created, the dimensions of items are compared • Size = dim_item.x + dim_item.y + dim_item.z • Using the dimensions along each axis of the smallest item, voxels are created
Generation of Random Numbers • The random placement of objects is done by generating a random number between one and the total number of voxels • There are two cases, where the number generated by 3DS should be discarded • The number corresponds to a voxel already in use • Number already generated in the current item’s placement sequence and failed
K_random • The 3DS function does not generate a sequence of random numbers between a min and max, but generates a single number • Instead of using the native 3DS function directly, I wrote my own function making using of the native function
Function Contents • K_random( count, used_up() ) • Count is the number of voxels • Used_up is an array the with the same number of elements as there are voxels • A while loop continues calling the native random generator function until a number is created that hasn’t already been used
Automation of Script • The semester’s previous work had users push buttons that directly ran bits of code. This had to be altered for automation • The user interface’s buttons now call functions that run the previous code. This had to be done, because the script cannot push its own buttons, it can only call functions • A ‘makefile’ is used when running the script in an automated fashion
Makefile Format • Directory line to point the script to where the listed files are • Luggage line lists the filename of the luggage, the largest object in the scene is assumed to be the container • Item line then lists each item file name
Manual Placement • Additional interactivity was added to the code so that a user could select an item and place it manually at a voxel position • The procedure is not as simple as drag-and-drop since the script needs to know those voxels are in use • Instead, another method was used
Interface for Manual Placement • Two-step process • Voxel is selected as destination • Then item that the user wishes to move is selected
3-D Viz-Tek System • Rear-projected screen • Two projectors are used to project a stereo image, One projector each for the right and left image • Stereo glasses are worn that allow only the appropriate image to reach the right or left eye www.viz-tek.com
Gloves • A right-hand and left-hand glove are provided with touch pads on the fingers and thumb • Information is sent to the system by touching the thumb to a finger • Possible interaction could be one hand used to cycle through objects, and orientate the view. • The other hand could be used to manipulate objects www.viz-tek.com
3D Under Vehicle • Work is also being done towards integrating Under Vehicle data into the 3D stereo system • Wrote code to convert raw data from Qian’s work last semester to VRML • Also plan on importing other previous work VRML Point File
Troubles Importing • Experienced troubles bringing in 3DS and vrml files into the Viz-Tek system • Contacted Dr. Karim Malek, President of Viz-Tek • Yesterday received files and suggestions, will work with those later today
Future Work • Visualize 3D Luggage Data in stereo system, as well as allow the user to manipulate objects • Integrate 3D Under Vehicle Data into the stereo system as well
Questions • ?