Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324193

Summary: Projection transformation
Product: [Eclipse Project] Platform Reporter: Yves YANG <yves.yang>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: bokowski, eclipse.felipe, remy.suen, Silenio_Quarti, skovatch
Version: 3.6.2   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Yves YANG CLA 2010-09-01 09:42:07 EDT
The current SWT implementation provides some basic transformations under the advanced feature. A very important feature is missing is the Projection Transition. It projects a 3D objects in 2D. 

Typically, if we have an image, if we want to turn it in 30 degrees on the X axis. This feature is very important for the fashion transition.
Comment 1 Felipe Heidrich CLA 2010-09-01 10:16:34 EDT
SSQ, do you know if this is possible on GDIP, cairo, and cocoa ?
This sounds like something cool for a new feature.
Comment 2 Yves YANG CLA 2010-09-01 10:35:04 EDT
I know it is possible using OpenGL and WPF/Silverlight .Net. Here the doc on Silverlight:
http://msdn.microsoft.com/en-us/library/system.windows.media.planeprojection(VS.95).aspx
Comment 3 Scott Kovatch CLA 2010-09-01 12:44:48 EDT
I admit up front that my graphics knowledge is pretty basic, but this sounds like functionality in CoreAnimation:

http://developer.apple.com/mac/library/documentation/cocoa/conceptual/CoreAnimation_guide/Articles/WhatisCoreAnimation.html
Comment 4 Felipe Heidrich CLA 2010-09-02 10:14:35 EDT
Can this transformation be done by 3x3 matrix ?

If yes, then you can do it already calling Transform.setElements()
If not, then I'm afraid we won't be able to fix problem for you neither. Sorry.
Comment 5 Yves YANG CLA 2010-11-02 15:00:54 EDT
(In reply to comment #4)
> Can this transformation be done by 3x3 matrix ?
> 
> If yes, then you can do it already calling Transform.setElements()
> If not, then I'm afraid we won't be able to fix problem for you neither. Sorry.

AFIAK, SWT supports only 3x2 matrix.
Comment 6 Felipe Heidrich CLA 2010-11-04 16:19:13 EDT
(In reply to comment #5)
> AFIAK, SWT supports only 3x2 matrix.

Right, this is the support we have in GDI+.
Shouldn't we close thig bug as wont fix ?
Comment 7 Yves YANG CLA 2010-11-15 09:29:44 EST
(In reply to comment #6)
> (In reply to comment #5)
> > AFIAK, SWT supports only 3x2 matrix.
> 
> Right, this is the support we have in GDI+.
> Shouldn't we close thig bug as wont fix ?

The 3x2 matrix doesn't handle the project transformation. It should be 3x3 Matrix.
Comment 8 Felipe Heidrich CLA 2010-11-15 09:57:01 EST
(In reply to comment #7)
> (In reply to comment #6)
> > (In reply to comment #5)
> > > AFIAK, SWT supports only 3x2 matrix.
> > 
> > Right, this is the support we have in GDI+.
> > Shouldn't we close thig bug as wont fix ?
> The 3x2 matrix doesn't handle the project transformation. It should be 3x3
> Matrix.

In this case we can't fix this. Closing as wont fix (platform limitation). Sorry.