View Issue Details

IDProjectCategoryView StatusLast Update
0000875FreeCADBugpublic2012-11-13 19:57
Reporterjohn_bradshaw Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionwon't fix 
Summary0000875: pov file created from demo is missing objects
DescriptionWhen I export the robot example /usr/share/freecad/Mod/Start/StartPage/LoadRobotExample.py to pov the robot is never shown - a small cone underneath always appears.

Have tried to hide/show the robot and nothing changes (same MD5 sum on all exported pov files).

Perhaps this is intentional?
Additional InformationOS: Ubuntu 12.04.1 LTS
Platform: 32-bit
Version: 0.13.1600 (Git)
Branch: master
Hash: 4ee5f7df475f1d9bc35d19e48a8b4fc87706984a
Python version: 2.7.3
Qt version: 4.8.1
Coin version: 3.1.3
SoQt version: 1.5.0
OCC version: 6.5.0

1. Open FreeCAD via menu
2. From the start page click on "Load a Robot simulation example"
3. Change to "complete" mode
4. Raytracing menu: "Export view to povray"
5. Hide the robot by clicking on its label in "Labels and attributes" and "hide selection"
6. Raytracing menu: "Export view to povray"
7. md5sum or diff both povray files - they will match.
8. Show the robot and export povray - same checksum as before (no change)

When rendering a small cone appears instead of the robot - this cone can be seen when the robot is hidden. The actual robot never appears in the rendering.

Here's the consule trace. povray file attached too.


import WebGui
from StartPage import StartPage
WebGui.openBrowserHTML(StartPage.handle(),'file://' + App.getResourceDir() + 'Mod/Start/StartPage/','Start page')
execfile('/usr/share/freecad/Mod/Start/StartPage/LoadRobotExample.py')
App.setActiveDocument("RobotExample")
App.ActiveDocument=App.getDocument("RobotExample")
Gui.ActiveDocument=Gui.getDocument("RobotExample")
Gui.activateWorkbench("CompleteWorkbench")
import Raytracing,RaytracingGui
OutFile = open(unicode('/home/john/cad/robot_default.pov','utf-8'),'w')
OutFile.write(open(App.getResourceDir()+'Mod/Raytracing/Templates/ProjectStd.pov').read())
OutFile.write(RaytracingGui.povViewCamera())
OutFile.write(Raytracing.getPartAsPovray('Pad',App.activeDocument().Pad.Shape,0.333333,0.333333,0.498039))
OutFile.write(Raytracing.getPartAsPovray('Pad1',App.activeDocument().Pad1.Shape,0.333333,0.333333,0.498039))
OutFile.write(Raytracing.getPartAsPovray('Pad2',App.activeDocument().Pad2.Shape,0.333333,0.333333,0.498039))
OutFile.write(Raytracing.getPartAsPovray('Pad3',App.activeDocument().Pad3.Shape,0.333333,0.333333,0.498039))
OutFile.write(Raytracing.getPartAsPovray('Box',App.activeDocument().Box.Shape,0.800000,0.800000,0.800000))
OutFile.write(Raytracing.getPartAsPovray('Pad4',App.activeDocument().Pad4.Shape,0.800000,0.800000,0.800000))
OutFile.write(Raytracing.getPartAsPovray('Cone',App.activeDocument().Cone.Shape,0.800000,0.800000,0.800000))
OutFile.close()
del OutFile
App.ActiveDocument.recompute()
Gui.getDocument("RobotExample").getObject("Robot").Visibility=False
import Raytracing,RaytracingGui
OutFile = open(unicode('/home/john/cad/robot_hidden.pov','utf-8'),'w')
OutFile.write(open(App.getResourceDir()+'Mod/Raytracing/Templates/ProjectStd.pov').read())
OutFile.write(RaytracingGui.povViewCamera())
OutFile.write(Raytracing.getPartAsPovray('Pad',App.activeDocument().Pad.Shape,0.333333,0.333333,0.498039))
OutFile.write(Raytracing.getPartAsPovray('Pad1',App.activeDocument().Pad1.Shape,0.333333,0.333333,0.498039))
OutFile.write(Raytracing.getPartAsPovray('Pad2',App.activeDocument().Pad2.Shape,0.333333,0.333333,0.498039))
OutFile.write(Raytracing.getPartAsPovray('Pad3',App.activeDocument().Pad3.Shape,0.333333,0.333333,0.498039))
OutFile.write(Raytracing.getPartAsPovray('Box',App.activeDocument().Box.Shape,0.800000,0.800000,0.800000))
OutFile.write(Raytracing.getPartAsPovray('Pad4',App.activeDocument().Pad4.Shape,0.800000,0.800000,0.800000))
OutFile.write(Raytracing.getPartAsPovray('Cone',App.activeDocument().Cone.Shape,0.800000,0.800000,0.800000))
OutFile.close()
del OutFile
App.ActiveDocument.recompute()
Gui.SendMsgToActiveView("SaveAs")
App.getDocument("RobotExample").FileName = "/home/john/cad/robot_hidden.fcstd"
App.getDocument("RobotExample").Label = "robot_hidden"
App.getDocument("RobotExample").save()
import Raytracing,RaytracingGui
OutFile = open(unicode('/home/john/cad/robot_saved.pov','utf-8'),'w')
OutFile.write(open(App.getResourceDir()+'Mod/Raytracing/Templates/ProjectStd.pov').read())
OutFile.write(RaytracingGui.povViewCamera())
OutFile.write(Raytracing.getPartAsPovray('Pad',App.activeDocument().Pad.Shape,0.333333,0.333333,0.498039))
OutFile.write(Raytracing.getPartAsPovray('Pad1',App.activeDocument().Pad1.Shape,0.333333,0.333333,0.498039))
OutFile.write(Raytracing.getPartAsPovray('Pad2',App.activeDocument().Pad2.Shape,0.333333,0.333333,0.498039))
OutFile.write(Raytracing.getPartAsPovray('Pad3',App.activeDocument().Pad3.Shape,0.333333,0.333333,0.498039))
OutFile.write(Raytracing.getPartAsPovray('Box',App.activeDocument().Box.Shape,0.800000,0.800000,0.800000))
OutFile.write(Raytracing.getPartAsPovray('Pad4',App.activeDocument().Pad4.Shape,0.800000,0.800000,0.800000))
OutFile.write(Raytracing.getPartAsPovray('Cone',App.activeDocument().Cone.Shape,0.800000,0.800000,0.800000))
OutFile.close()
del OutFile
App.ActiveDocument.recompute()
Gui.getDocument("RobotExample").getObject("Robot").Visibility=True
import Raytracing,RaytracingGui
OutFile = open(unicode('/home/john/cad/robot_reshown.pov','utf-8'),'w')
OutFile.write(open(App.getResourceDir()+'Mod/Raytracing/Templates/ProjectStd.pov').read())
OutFile.write(RaytracingGui.povViewCamera())
OutFile.write(Raytracing.getPartAsPovray('Pad',App.activeDocument().Pad.Shape,0.333333,0.333333,0.498039))
OutFile.write(Raytracing.getPartAsPovray('Pad1',App.activeDocument().Pad1.Shape,0.333333,0.333333,0.498039))
OutFile.write(Raytracing.getPartAsPovray('Pad2',App.activeDocument().Pad2.Shape,0.333333,0.333333,0.498039))
OutFile.write(Raytracing.getPartAsPovray('Pad3',App.activeDocument().Pad3.Shape,0.333333,0.333333,0.498039))
OutFile.write(Raytracing.getPartAsPovray('Box',App.activeDocument().Box.Shape,0.800000,0.800000,0.800000))
OutFile.write(Raytracing.getPartAsPovray('Pad4',App.activeDocument().Pad4.Shape,0.800000,0.800000,0.800000))
OutFile.write(Raytracing.getPartAsPovray('Cone',App.activeDocument().Cone.Shape,0.800000,0.800000,0.800000))
OutFile.close()
del OutFile
App.ActiveDocument.recompute()

TagsNo tags attached.
FreeCAD Information

Activities

2012-11-11 18:45

 

robot_default.pov (Attachment missing)

2012-11-11 18:45

 

robot_hidden.pov (Attachment missing)

john_bradshaw

2012-11-11 18:46

reporter   ~0002506

$ md5sum robot_*.fcstd | sort
4b7943980e31a333179c36575aebee63 robot_hidden.fcstd
c0dd767bdd59e83633d92a23371479fd robot_reshown.fcstd

$ md5sum robot_*.pov | sort
7da9e4f1948b9811018b2d0609324f7b robot_default.pov
7da9e4f1948b9811018b2d0609324f7b robot_hidden.pov
7da9e4f1948b9811018b2d0609324f7b robot_reshown.pov
7da9e4f1948b9811018b2d0609324f7b robot_saved.pov

2012-11-11 18:46

 

robot_hidden.fcstd (Attachment missing)

2012-11-11 18:47

 

robot_reshown.fcstd (Attachment missing)

2012-11-11 18:47

 

robot_reshown.pov (Attachment missing)

john_bradshaw

2012-11-11 19:20

reporter   ~0002507

Small cone at base of robot (referred to above) is the SetUp/ToolShape object

Jriegel

2012-11-13 19:57

administrator   ~0002509

The robot is a VRML object, which is not exported for the raytracing.

Issue History

Date Modified Username Field Change
2012-11-11 18:45 john_bradshaw New Issue
2012-11-11 18:45 john_bradshaw File Added: robot_default.pov
2012-11-11 18:45 john_bradshaw File Added: robot_hidden.pov
2012-11-11 18:46 john_bradshaw Note Added: 0002506
2012-11-11 18:46 john_bradshaw File Added: robot_hidden.fcstd
2012-11-11 18:47 john_bradshaw File Added: robot_reshown.fcstd
2012-11-11 18:47 john_bradshaw File Added: robot_reshown.pov
2012-11-11 19:20 john_bradshaw Note Added: 0002507
2012-11-13 19:57 Jriegel Note Added: 0002509
2012-11-13 19:57 Jriegel Status new => closed
2012-11-13 19:57 Jriegel Resolution open => won't fix