WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   3d painting? (https://forum.worldviz.com/showthread.php?t=2721)

Darkmax 04-29-2010 02:47 PM

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:)

Darkmax 04-30-2010 03:44 PM

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)?

Jeff 04-30-2010 04:14 PM

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.

Jerry 05-06-2010 11:13 AM

3D drawing plugin
 
1 Attachment(s)
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.

Darkmax 05-07-2010 06:17 AM

Wow thanks this going to be very helpful.

Just a question there is a way to control the size of the brush?

Darkmax 05-07-2010 06:38 AM

I just saw the parameter of width my bad. :o

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.

Jerry 05-07-2010 09:34 AM

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.

Jerry 05-07-2010 10:27 AM

1 Attachment(s)
Try this version. You can move around and draw on objects in the scene
by holding down the middle mouse button (the wheel).

Darkmax 05-10-2010 08:05 AM

thanks this going to be very helpful in my project :D

dwaik 10-31-2010 01:08 AM

hello,
sry darkmax for hijacking this thread,
Jerry deos this plug-in support a cmommand to clear drawed lines?

Jerry 10-31-2010 08:32 AM

Yes. Look under "def mykey(num)" at the 'e' and 'm' keys.

Darkmax 03-06-2012 01:01 PM

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?


All times are GMT -7. The time now is 10:22 AM.

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