From: Tyler B. <dan...@li...> - 2008-10-11 17:42:10
|
I'm pretty sure doing "scene=display(...)" is not considered the normal way of doing things. I can't say exactly why it matters because it does seem like that might work. But I replaced that line with: scene.title="Testing text in 3D..." scene.width=860 scene.height=860 scene.forward=(-2,-1,-0.5) and it seems to work fine. Poul Riis wrote: > What is the error in the example below? > I want to make some 3D-text in the same display as the axes (and later > some more objects). Apparently, another window is created automatically.... > > Poul Riis > > > > > from visual.text import * > > scene=display(title="Testing text in > 3D...",width=860,height=860,forward=(-2,-1,-0.5)) > > xakse=arrow(pos=(-3,0,0),axis=(6,0,0),color=(1,0,1),shaftwidth=0.05,fixedwidth > = 1) > yakse=arrow(pos=(0,-3,0),axis=(0,6,0),color=(1,1,0),shaftwidth=0.05,fixedwidth > = 1) > zakse=arrow(pos=(0,0,-3),axis=(0,0,6),color=(0,0,1),shaftwidth=0.05,fixedwidth > = 1) > > homesweethome=text(pos=(0,3,0), string='HOME SWEET HOME', > color=color.red,height=0.1,width=0.1, depth=0.05, justify='center') > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > |