WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-10-2010, 12:48 PM
Darkmax Darkmax is offline
Member
 
Join Date: Feb 2010
Posts: 108
some know why when i move the avatar to another position doesnt change the position?, for example when i run an action of walk is like he is walking in the same place, doesn't looks like the example of animals that is show in video example where the animals are walking around the marks
Reply With Quote
  #2  
Old 03-15-2010, 08:25 PM
Darkmax Darkmax is offline
Member
 
Join Date: Feb 2010
Posts: 108
i was trying to get work the artoolkit plugin but i dont know how to have another window in my virtual application with AR.

this is my code:
[CODE
]ar = viz.add('artoolkit.dle')

# Create a new window in the down left of the main window
DownLeftWindow = viz.addWindow(pos=(0,0),size=(0.2,0.2))
DownLeftWindow.visible(0,viz.SCREEN)

video = viz.add('VideoCamera.dle')
cam = video.addWebcam()

ar.addCamera(cam,param=None,flipVertical=False,thr esh=None,globalScale=None,window=DownLeftWindow)
[/CODE]

but this error throws me:
Warning: TextureRectangle::apply(..) failed, texture rectangle is not support by your OpenGL drivers.

i dont know how to resolve my error.
Reply With Quote
  #3  
Old 03-16-2010, 11:32 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
For your first question about having the avatar walk around, set the marker to be a global marker. Then add the walk action. The marker will be used for the origin and you will not need to link the two.
Code:
marker = camera.addMatrixMarker(0,width=1000)
camera.setGlobalMarker(marker)
Regarding the error, what kind of graphics card do you have? Do you have the most recent drivers?

Try adding a second window like this.
Code:
ar = viz.add('artoolkit.dle')
subWindow = viz.addWindow(pos =[0,0.2])
ar.addWebCamera(window=subWindow)
Reply With Quote
  #4  
Old 03-16-2010, 12:54 PM
Darkmax Darkmax is offline
Member
 
Join Date: Feb 2010
Posts: 108
thanks jeff it works the walking avatar example just like you told me, but what i understand is that i can have only one marker defined like global marker? because if i have two markers each with a model and walking around but with the reference of their own mark, how i accomplish that?

and for the second problem i tried what you tell me but doesn't work for me, im trying this in the "winview" example adding this below of the code and compiles everything fine but i cant move around the gallery and the subWindow doesnt show the camera video instead shows a copy of the main view.

My video card is a chipset of intel with windows 7, i think thats the problem because im trying this examples on another computer with a nvidia Quadro FX 540 and windows xp doesnt throw me this error but im having the problem that i mention before

i hope i explain me, sorry for my bad english

Last edited by Darkmax; 03-16-2010 at 12:57 PM.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Documentation error (nonexistent examples) JimC Vizard 1 10-08-2009 09:08 AM
Custom node and other examples? moooh Plug-in development 1 03-10-2009 04:04 PM
Which software can be used to edit .cfg (CAL3D) files luakt Vizard 4 09-12-2008 08:18 AM
more advanced network examples? halley Vizard 0 04-05-2006 08:07 AM


All times are GMT -7. The time now is 09:23 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC