WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-29-2010, 02:47 PM
Darkmax Darkmax is offline
Member
 
Join Date: Feb 2010
Posts: 108
3d painting?

some know how to draw in realtime in the virtual applications?, im trying to do a virtual classroom where some can draw on the blackboard with the wiimote or the mouse at the momment.

Im trying to this with on-the-fly, but with no results.


and maybe this is too dificult but also there is a way to recognize the draw? for example if the user draws a duck the application will load a duck model

but maybe this is asking too much just with the paiting thing im happy
Reply With Quote
  #2  
Old 04-30-2010, 03:44 PM
Darkmax Darkmax is offline
Member
 
Join Date: Feb 2010
Posts: 108
i'm happy cause now i know it can be done because i was searching through internet and found this
http://www.youtube.com/watch?v=kKm99tHR1fg

and this exactly what i'm referring, some know how they do this(is done using vizard)?
Reply With Quote
  #3  
Old 04-30-2010, 04:14 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,462
I think you're on the right track using on-the-fly objects. You could call a function every frame that would draw a point at the tracker's position.
Reply With Quote
  #4  
Old 05-06-2010, 11:13 AM
Jerry Jerry is offline
Member
 
Join Date: Jun 2004
Posts: 105
3D drawing plugin

Here's a 3D drawing plugin which you might find useful.
Put gldraw.dlr in the same folder as mousedraw.py.

In your case, you could also use the Wii to provide x,y,z
instead of the mouse.
Attached Files
File Type: zip mousedraw.zip (25.8 KB, 461 views)
Reply With Quote
  #5  
Old 05-07-2010, 06:17 AM
Darkmax Darkmax is offline
Member
 
Join Date: Feb 2010
Posts: 108
Wow thanks this going to be very helpful.

Just a question there is a way to control the size of the brush?
Reply With Quote
  #6  
Old 05-07-2010, 06:38 AM
Darkmax Darkmax is offline
Member
 
Join Date: Feb 2010
Posts: 108
I just saw the parameter of width my bad.

Just what i don't saw is how i can make it follow the drawing where my viewpoint is, because if i move to another place it starts to drawing in the same place that was before and now the cursor doesn't match the draw.
Reply With Quote
  #7  
Old 05-07-2010, 09:34 AM
Jerry Jerry is offline
Member
 
Join Date: Jun 2004
Posts: 105
The plugin simply draws at the x,y,z location in space which you
give to it. It's up to you to figure out how to take the x,y,z from your
input device (mouse, wii, ppt, etc.) and convert that location to
the location where you want the drawing to appear.
Reply With Quote
  #8  
Old 05-07-2010, 10:27 AM
Jerry Jerry is offline
Member
 
Join Date: Jun 2004
Posts: 105
Try this version. You can move around and draw on objects in the scene
by holding down the middle mouse button (the wheel).
Attached Files
File Type: zip mousedraw2.zip (1.0 KB, 516 views)
Reply With Quote
  #9  
Old 05-10-2010, 08:05 AM
Darkmax Darkmax is offline
Member
 
Join Date: Feb 2010
Posts: 108
Talking

thanks this going to be very helpful in my project
Reply With Quote
  #10  
Old 10-31-2010, 01:08 AM
dwaik dwaik is offline
Member
 
Join Date: Feb 2010
Posts: 26
hello,
sry darkmax for hijacking this thread,
Jerry deos this plug-in support a cmommand to clear drawed lines?
Reply With Quote
  #11  
Old 10-31-2010, 08:32 AM
Jerry Jerry is offline
Member
 
Join Date: Jun 2004
Posts: 105
Yes. Look under "def mykey(num)" at the 'e' and 'm' keys.
Reply With Quote
  #12  
Old 03-06-2012, 01:01 PM
Darkmax Darkmax is offline
Member
 
Join Date: Feb 2010
Posts: 108
hi jerry, was using your version of paint library, but when i upgrade the library doesn't work so i dont know if is possible that you share your paint library working on vizard 4?
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
how to create an painting application yak Vizard 0 07-06-2009 01:46 PM


All times are GMT -7. The time now is 01:05 PM.


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