Discussion:
Magnifying Glass effect on Cube material?
Kevin Burke
2010-10-21 17:15:54 UTC
Permalink
Hi,
I have a cube with a material on the front face. I'm trying to create a
magnifying glass in 2D for the 3D cube. Can anyone offer a suggestion for
how to achieve this? I was thinking I might try to find the UV under the
mouse in an OBJECT_OVER InteractiveScene3DEvent and somehow get the bitmap
from the material, mask it, and move it around in relation to the mouse
position- mimicking a magnifying effect. How to do that, I have no clue. :-P
Any ideas?
--
View this message in context: http://papervision3d.758870.n4.nabble.com/Magnifying-Glass-effect-on-Cube-material-tp3005964p3005964.html
Sent from the Papervision3D mailing list archive at Nabble.com.
Huge Ontoman
2010-10-22 07:51:34 UTC
Permalink
Good day,

i would take a plane with the material applied, do another scene/render-window of higher resolution, and mask that. The camera You need to render this new scene should be in the same position as the old one, and move the lookAt target to the coords You get from the mouse. As far i remember there where methods in one of the classes to get screen-coords to world-coords (i may be wrong on this one).
Depending on if You move the camera or the cube of Yours around, You have to translate the camera or the new mapped plane...
Does this make sense to You?

cheers,
huge.
Date: Thu, 21 Oct 2010 10:15:54 -0700
Subject: [Papervision3D] Magnifying Glass effect on Cube material?
Hi,
I have a cube with a material on the front face. I'm trying to create a
magnifying glass in 2D for the 3D cube. Can anyone offer a suggestion for
how to achieve this? I was thinking I might try to find the UV under the
mouse in an OBJECT_OVER InteractiveScene3DEvent and somehow get the bitmap
from the material, mask it, and move it around in relation to the mouse
position- mimicking a magnifying effect. How to do that, I have no clue. :-P
Any ideas?
--
View this message in context: http://papervision3d.758870.n4.nabble.com/Magnifying-Glass-effect-on-Cube-material-tp3005964p3005964.html
Sent from the Papervision3D mailing list archive at Nabble.com.
_______________________________________________
Papervision3D mailing list
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
Kevin Burke
2010-10-23 00:52:49 UTC
Permalink
You both have given me some GREAT ideas. Thank you VERY much for your
replies. Very kind of you. I will post my results.
--
View this message in context: http://papervision3d.758870.n4.nabble.com/Magnifying-Glass-effect-on-Cube-material-tp3005964p3008056.html
Sent from the Papervision3D mailing list archive at Nabble.com.
Makc
2010-10-22 13:13:14 UTC
Permalink
Post by Kevin Burke
Hi,
I have a cube with a material on the front face. I'm trying to create a
magnifying glass in 2D for the 3D cube. Can anyone offer a suggestion for
how to achieve this? I was thinking I might try to find the UV under the
mouse in an OBJECT_OVER InteractiveScene3DEvent and somehow get the bitmap
from the material, mask it, and move it around in relation to the mouse
position- mimicking a magnifying effect. How to do that, I have no clue. :-P
Any ideas?
you could apply filter to whole viewport, similar to this:
http://wonderfl.net/c/u1tP
Loading...