#1
|
|||
|
|||
RuralPit demo with v4?
I'm trying to get the old V3 demo 'RuralPit' but am having problems.
The demo loads however the ppt tracking doesn't work (although it does work with other programs) The main load error I get seems to be "failed to load plug-in: 'animpath.dlm' " although the original v3 file (09/06/2010) is in the folder. It used to work fine until I installed vizard v4. Any help either getting this working or info about a similar v4 compatible demo would be appreciated. thanks, john |
#2
|
|||
|
|||
Are you now opening and running the demo from the Vizard 4 IDE? Make sure you're still running it using the Vizard 3 engine. From Vizard 4 you can select Script > Run with Vizard 3.0 if Vizard 3 is also installed on the machine.
If you're still having problems contact support@worldviz.com to request an updated demo. |
#3
|
|||
|
|||
R3 required the animpath.dlm plugin to run exported animations. In R4 you need to use the undocumented plugin scenegraphtools.dle.
The following code determines what version (R3 or R4) of Vizard you're running, and loads either the animpath module (for R3) or a wrapper class I've written that runs the scenegraphtools.dle (for R4). With the wrapper class you won't need to change any of your existing code that controls the animation. If you upgrade to R5, animation control is now part of the viz.VizNode object, so you'll have to change your code. Best, Masaki Code:
# CHG: animation control depends on R3 or R4!! currentVizardVersion = viz.version() releaseVersion = int(currentVizardVersion.split('.')[0]) if releaseVersion == 4: viz.logNotice( 'Running Vizard R4' ) elif releaseVersion == 3: viz.logNotice( 'Running Vizard R3' ) else: viz.logError( 'Unknown Vizard Release!' ) if releaseVersion == 3: import animpath elif releaseVersion == 4: osg = viz.addExtension( 'scenegraphtools.dle' ) class AnimationPathWrapper(osg.AnimationPath ): """ This class will allow the new animation path code for R4 to still work for the old R3 method. """ def __init__(self): pass def Path(self,node): osg.AnimationPath.__init__(self,node) return self animpath = AnimationPathWrapper() |
#4
|
|||
|
|||
Fantastic - thanks Masaki - I will test this out and report back.
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Apartment demo/texture demo | pwsnow | Vizard | 10 | 10-05-2012 10:10 AM |
PPT Demo | mikestatic | Precision Position Tracker (PPT) | 1 | 09-23-2007 10:31 AM |
demo of new hand.getFingerTip() | halley | Vizard | 9 | 12-14-2006 12:40 AM |
Glenn Kawesch, looking for demo | GlennKawesch | Vizard | 2 | 10-19-2006 09:17 AM |
using demo with intersense | G-Chan | Vizard | 1 | 02-06-2006 02:05 PM |