PDA

View Full Version : Occlusion


nige777
06-09-2011, 10:42 AM
I'm trying to occlude a virtual object with a real one - I have modelled the real object, saved it as an IVE, however I cannot get it to perform correctly??
Here is the code I am using:

box = viz.add('Box_Occlude.ive')
occluder = viz.add('Box_Cam_Calib.IVE')
occluder.drawOrder(-1)
occluder.disable(viz.COLOR_WRITE)
I have read how others have had success, but this is not working for me? :confused:

I have attached the models as a zip file.

I'm hoping it is something nice and simple because I have been kind-of relying on the fact that I could do this within Vizard :eek:

Any help with this would be much appreciated

nige777
06-09-2011, 02:49 PM
:o For the record - there was nothing wrong with my code - more to do with sloppy 3d modelling techniques - one of the .ive files appears to be empty :o