3D Drawing tool

View: New views
6 Messages — Rating Filter:   Alert me  

3D Drawing tool

by Lee Probert :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
info@...
mobile@...
skype: lee.probert
google/MSN : leeprobert@...
twitter : @lyraspace
tel: 07866 940416

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

_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

Re: 3D Drawing tool

by Peter Velichkov-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
> info@... <mailto:info@...>
> mobile@... <mailto:mobile@...>
> skype: lee.probert
> google/MSN : leeprobert@... <mailto:leeprobert@...>
> twitter : @lyraspace
> tel: 07866 940416
>
> 1 Station Oast,
> Goudhurst Road,
> Tonbridge,
> Kent.
> TN12 8AE
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D@...
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org

_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

Re: 3D Drawing tool

by Lee Probert :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <peter@...> 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
info@... <mailto:info@...>
mobile@... <mailto:mobile@...>
skype: lee.probert
google/MSN : leeprobert@... <mailto:leeprobert@...>

twitter : @lyraspace
tel: 07866 940416

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


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

_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org



--
http://lyraspace.com
info@...
mobile@...
skype: lee.probert
google/MSN : leeprobert@...
twitter : @lyraspace
tel: 07866 940416

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

_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

Re: 3D Drawing tool

by Peter Velichkov-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <peter@...
> <mailto:peter@...>> 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
>         info@... <mailto:info@...>
>         <mailto:info@... <mailto:info@...>>
>         mobile@... <mailto:mobile@...>
>         <mailto:mobile@... <mailto:mobile@...>>
>         skype: lee.probert
>         google/MSN : leeprobert@... <mailto:leeprobert@...>
>         <mailto:leeprobert@... <mailto:leeprobert@...>>
>
>         twitter : @lyraspace
>         tel: 07866 940416
>
>         1 Station Oast,
>         Goudhurst Road,
>         Tonbridge,
>         Kent.
>         TN12 8AE
>
>
>         ------------------------------------------------------------------------
>
>         _______________________________________________
>         Papervision3D mailing list
>         Papervision3D@... <mailto:Papervision3D@...>
>         http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
>     _______________________________________________
>     Papervision3D mailing list
>     Papervision3D@... <mailto:Papervision3D@...>
>     http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
>
>
> --
> http://lyraspace.com
> info@... <mailto:info@...>
> mobile@... <mailto:mobile@...>
> skype: lee.probert
> google/MSN : leeprobert@... <mailto:leeprobert@...>
> twitter : @lyraspace
> tel: 07866 940416
>
> 1 Station Oast,
> Goudhurst Road,
> Tonbridge,
> Kent.
> TN12 8AE
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D@...
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org

_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

Re: 3D Drawing tool

by Lee Probert :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <peter@...> 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 <peter@... <mailto:peter@...>> 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
       info@... <mailto:info@...>
       <mailto:info@... <mailto:info@...>>

       mobile@... <mailto:mobile@...>
       <mailto:mobile@... <mailto:mobile@...>>

       skype: lee.probert
       google/MSN : leeprobert@... <mailto:leeprobert@...>
       <mailto:leeprobert@... <mailto:leeprobert@...>>


       twitter : @lyraspace
       tel: 07866 940416

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


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

       _______________________________________________
       Papervision3D mailing list
       Papervision3D@... <mailto:Papervision3D@...>

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


   _______________________________________________
   Papervision3D mailing list
   Papervision3D@... <mailto:Papervision3D@...>

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




--
http://lyraspace.com
info@... <mailto:info@...>
mobile@... <mailto:mobile@...>
skype: lee.probert
google/MSN : leeprobert@... <mailto:leeprobert@...>
twitter : @lyraspace
tel: 07866 940416

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


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

_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org



--
http://lyraspace.com
info@...
mobile@...
skype: lee.probert
google/MSN : leeprobert@...
twitter : @lyraspace
tel: 07866 940416

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

_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

Screen coordinates of width/height

by Itai Asseo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org