3D Drawing tool

6 messages Options
Embed this post
Permalink
Lee Probert

3D Drawing tool

Reply Threaded More More options
Print post
Permalink
I need to build a simple drawing tool but on a 3D plane. The pencil need to be 3D too and would rotate on its tip as it moves around the page. I need some direction on how to translate the 2D space to the 3D material. I also need some advice on how to create a simple 3D model of a pencil (I'm thinking SketchUp) and then create a material that would colour the model but allow me to dynamically change the colour on the fly.

Any tips would be appreciated.

Thanks, Lee.

--
http://lyraspace.com
[hidden email]
[hidden email]
skype: lee.probert
google/MSN : [hidden email]
twitter : @lyraspace
tel: 07866 940416

1 Station Oast,
Goudhurst Road,
Tonbridge,
Kent.
TN12 8AE

_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
Peter Velichkov-2

Re: 3D Drawing tool

Reply Threaded More More options
Print post
Permalink
This should be a good starting point:

http://code.google.com/p/papervision3d/source/browse/trunk/as3/trunk/examples/FlashCS3/helloMouse3D/Mouse3D.swf

Peter

web: http://www.creonfx.com
blog: http://blog.creonfx.com
skype: peterv-at-work
twitter: http://twitter.com/pvelichkov

Lee Probert wrote:

> I need to build a simple drawing tool but on a 3D plane. The pencil need
> to be 3D too and would rotate on its tip as it moves around the page. I
> need some direction on how to translate the 2D space to the 3D material.
> I also need some advice on how to create a simple 3D model of a pencil
> (I'm thinking SketchUp) and then create a material that would colour the
> model but allow me to dynamically change the colour on the fly.
>
> Any tips would be appreciated.
>
> Thanks, Lee.
>
> --
> http://lyraspace.com
> [hidden email] <mailto:[hidden email]>
> [hidden email] <mailto:[hidden email]>
> skype: lee.probert
> google/MSN : [hidden email] <mailto:[hidden email]>
> twitter : @lyraspace
> tel: 07866 940416
>
> 1 Station Oast,
> Goudhurst Road,
> Tonbridge,
> Kent.
> TN12 8AE
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Papervision3D mailing list
> [hidden email]
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org

_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
Lee Probert

Re: 3D Drawing tool

Reply Threaded More More options
Print post
Permalink
Yes this should help loads. My other main concern is finding a Collada model that will allow me to change the colour of areas dynamically. It will be a pencil crayon so I'll only want to change the colour of the tip and the main stem. I guess I'll need a material that only has the coloured areas on it so I can tint it somehow before applying.

If anyone has any suggestions or can build this for me then get in touch.

Lee.


On Thu, Jun 25, 2009 at 12:29 PM, Peter Velichkov <[hidden email]> wrote:
This should be a good starting point:

http://code.google.com/p/papervision3d/source/browse/trunk/as3/trunk/examples/FlashCS3/helloMouse3D/Mouse3D.swf

Peter

web: http://www.creonfx.com
blog: http://blog.creonfx.com
skype: peterv-at-work
twitter: http://twitter.com/pvelichkov

Lee Probert wrote:
I need to build a simple drawing tool but on a 3D plane. The pencil need to be 3D too and would rotate on its tip as it moves around the page. I need some direction on how to translate the 2D space to the 3D material. I also need some advice on how to create a simple 3D model of a pencil (I'm thinking SketchUp) and then create a material that would colour the model but allow me to dynamically change the colour on the fly.

Any tips would be appreciated.

Thanks, Lee.

--
http://lyraspace.com
[hidden email] <mailto:[hidden email]>
[hidden email] <mailto:[hidden email]>
skype: lee.probert
google/MSN : [hidden email] <mailto:[hidden email]>

twitter : @lyraspace
tel: 07866 940416

1 Station Oast,
Goudhurst Road,
Tonbridge,
Kent.
TN12 8AE


------------------------------------------------------------------------

_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org



--
http://lyraspace.com
[hidden email]
[hidden email]
skype: lee.probert
google/MSN : [hidden email]
twitter : @lyraspace
tel: 07866 940416

1 Station Oast,
Goudhurst Road,
Tonbridge,
Kent.
TN12 8AE

_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
Peter Velichkov-2

Re: 3D Drawing tool

Reply Threaded More More options
Print post
Permalink
You can use MovieMaterial with some logic in it or use BitmapMaterial
and replace it when you want to change the color.

Cheers,
Peter

web: http://www.creonfx.com
blog: http://blog.creonfx.com
skype: peterv-at-work
twitter: http://twitter.com/pvelichkov

Lee Probert wrote:

> Yes this should help loads. My other main concern is finding a Collada
> model that will allow me to change the colour of areas dynamically. It
> will be a pencil crayon so I'll only want to change the colour of the
> tip and the main stem. I guess I'll need a material that only has the
> coloured areas on it so I can tint it somehow before applying.
>
> If anyone has any suggestions or can build this for me then get in touch.
>
> Lee.
>
>
> On Thu, Jun 25, 2009 at 12:29 PM, Peter Velichkov <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     This should be a good starting point:
>
>     http://code.google.com/p/papervision3d/source/browse/trunk/as3/trunk/examples/FlashCS3/helloMouse3D/Mouse3D.swf
>
>     Peter
>
>     web: http://www.creonfx.com
>     blog: http://blog.creonfx.com
>     skype: peterv-at-work
>     twitter: http://twitter.com/pvelichkov
>
>     Lee Probert wrote:
>
>         I need to build a simple drawing tool but on a 3D plane. The
>         pencil need to be 3D too and would rotate on its tip as it moves
>         around the page. I need some direction on how to translate the
>         2D space to the 3D material. I also need some advice on how to
>         create a simple 3D model of a pencil (I'm thinking SketchUp) and
>         then create a material that would colour the model but allow me
>         to dynamically change the colour on the fly.
>
>         Any tips would be appreciated.
>
>         Thanks, Lee.
>
>         --
>         http://lyraspace.com
>         [hidden email] <mailto:[hidden email]>
>         <mailto:[hidden email] <mailto:[hidden email]>>
>         [hidden email] <mailto:[hidden email]>
>         <mailto:[hidden email] <mailto:[hidden email]>>
>         skype: lee.probert
>         google/MSN : [hidden email] <mailto:[hidden email]>
>         <mailto:[hidden email] <mailto:[hidden email]>>
>
>         twitter : @lyraspace
>         tel: 07866 940416
>
>         1 Station Oast,
>         Goudhurst Road,
>         Tonbridge,
>         Kent.
>         TN12 8AE
>
>
>         ------------------------------------------------------------------------
>
>         _______________________________________________
>         Papervision3D mailing list
>         [hidden email] <mailto:[hidden email]>
>         http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
>     _______________________________________________
>     Papervision3D mailing list
>     [hidden email] <mailto:[hidden email]>
>     http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
>
>
> --
> http://lyraspace.com
> [hidden email] <mailto:[hidden email]>
> [hidden email] <mailto:[hidden email]>
> skype: lee.probert
> google/MSN : [hidden email] <mailto:[hidden email]>
> twitter : @lyraspace
> tel: 07866 940416
>
> 1 Station Oast,
> Goudhurst Road,
> Tonbridge,
> Kent.
> TN12 8AE
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Papervision3D mailing list
> [hidden email]
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org

_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
Lee Probert

Re: 3D Drawing tool

Reply Threaded More More options
Print post
Permalink
MovieMaterial agreed is definitely the best option as I'll be able to tint the areas I need. How can I draw the material so it wraps around the object though ... I wouldn't know where to start.

:-(


On Thu, Jun 25, 2009 at 1:10 PM, Peter Velichkov <[hidden email]> wrote:
You can use MovieMaterial with some logic in it or use BitmapMaterial and replace it when you want to change the color.

Cheers,

Peter

web: http://www.creonfx.com
blog: http://blog.creonfx.com
skype: peterv-at-work
twitter: http://twitter.com/pvelichkov

Lee Probert wrote:
Yes this should help loads. My other main concern is finding a Collada model that will allow me to change the colour of areas dynamically. It will be a pencil crayon so I'll only want to change the colour of the tip and the main stem. I guess I'll need a material that only has the coloured areas on it so I can tint it somehow before applying.

If anyone has any suggestions or can build this for me then get in touch.

Lee.


On Thu, Jun 25, 2009 at 12:29 PM, Peter Velichkov <[hidden email] <mailto:[hidden email]>> wrote:

   This should be a good starting point:

   http://code.google.com/p/papervision3d/source/browse/trunk/as3/trunk/examples/FlashCS3/helloMouse3D/Mouse3D.swf

   Peter

   web: http://www.creonfx.com
   blog: http://blog.creonfx.com
   skype: peterv-at-work
   twitter: http://twitter.com/pvelichkov

   Lee Probert wrote:

       I need to build a simple drawing tool but on a 3D plane. The
       pencil need to be 3D too and would rotate on its tip as it moves
       around the page. I need some direction on how to translate the
       2D space to the 3D material. I also need some advice on how to
       create a simple 3D model of a pencil (I'm thinking SketchUp) and
       then create a material that would colour the model but allow me
       to dynamically change the colour on the fly.

       Any tips would be appreciated.

       Thanks, Lee.

       --        http://lyraspace.com
       [hidden email] <mailto:[hidden email]>
       <mailto:[hidden email] <mailto:[hidden email]>>

       [hidden email] <mailto:[hidden email]>
       <mailto:[hidden email] <mailto:[hidden email]>>

       skype: lee.probert
       google/MSN : [hidden email] <mailto:[hidden email]>
       <mailto:[hidden email] <mailto:[hidden email]>>


       twitter : @lyraspace
       tel: 07866 940416

       1 Station Oast,
       Goudhurst Road,
       Tonbridge,
       Kent.
       TN12 8AE


       ------------------------------------------------------------------------

       _______________________________________________
       Papervision3D mailing list
       [hidden email] <mailto:[hidden email]>

       http://osflash.org/mailman/listinfo/papervision3d_osflash.org


   _______________________________________________
   Papervision3D mailing list
   [hidden email] <mailto:[hidden email]>

   http://osflash.org/mailman/listinfo/papervision3d_osflash.org




--
http://lyraspace.com
[hidden email] <mailto:[hidden email]>
[hidden email] <mailto:[hidden email]>
skype: lee.probert
google/MSN : [hidden email] <mailto:[hidden email]>
twitter : @lyraspace
tel: 07866 940416

1 Station Oast,
Goudhurst Road,
Tonbridge,
Kent.
TN12 8AE


------------------------------------------------------------------------

_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org



--
http://lyraspace.com
[hidden email]
[hidden email]
skype: lee.probert
google/MSN : [hidden email]
twitter : @lyraspace
tel: 07866 940416

1 Station Oast,
Goudhurst Road,
Tonbridge,
Kent.
TN12 8AE

_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
Itai Asseo

Screen coordinates of width/height

Reply Threaded More More options
Print post
Permalink
In reply to this post by Peter Velichkov-2
Some javascript/style in this post has been disabled (why?)
Screen coordinates of width/height Hello – I’m trying to get the visual width on screen of a DisplayObject3D.  I’m getting the x and y through the calculateScreenCoords method, but it’s not giving me the width and height of the images (I’d like to get the actual width while a plane is rotating — getting smaller as it is facing sideways and larger as it is facing the camera).  Any ideas of how to get that info?

Thanks,
Itai

_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org