1

I have to develop an application like these sites in flex 4

http://mydeco.com/rooms/austin/
http://floorplanner.com/demo#assets
http://www.homestyler.com/designer

I have the following questions:

  • Which are the main flex components used to build these type of application?
  • How the conversion from 2D to 3D ?
  • How to generate dynamic 3D from the 2D resizable objects?
  • How to show measurement on resizing the objects?
Bart
  • 19,692
  • 7
  • 68
  • 77
Shebin
  • 3,310
  • 2
  • 24
  • 27
  • Just a hint: This question is much too broad. You will have much more luck narrowing things down and asking targeted questions based on what you developed so far. Looking at the apps, start out perhaps by making a simple applications where you can draw some (polygonal) shapes and take it from there. – Bart Oct 27 '11 at 12:15
  • @Bart : Thanks for the comment. we developed some rectangle shapes loading into the application and created 3D using paper-vision cube objects.But we cant re-size 3D object dynamically . Also Can't generate 3D dynamically from a re-sized 2D shapes.How to generate 3D,based on the re-sized 2D objects that can be seen on http://floorplanner.com/demo#assets – Shebin Oct 28 '11 at 04:56

1 Answers1

1

Which are the main flex components used to build these type of application?

Buttons, groups, lists, checkboxes, etc... Feel free using flex components ;) To be serious, these apps use almost all the standard flex controls.

How the conversion from 2D to 3D ?

It's the most difficult question on your list. Writing your own 3d actionscript rederer is enormous difficult task. You have 2 general opportunities:

  1. To use an existing 3d software engine: What is the best Actionscript3 3D Engine?

  2. To use Molehill API supported by Flash Player 11: http://www.adobe.com/devnet/flashplayer/stage3d.html

Molehill API provides hardware-accelerated 3d graphics, but is a relatively new feature. There is a little number of engines supporting it:

http://alternativaplatform.com/en/

http://code.google.com/p/minimole/

How to generate dynamic 3D from the 2D resizable objects?

There is no common recipe for the issue. Actually 2D projections and 3D previews are different representation of one model. These programs have generators of 3d procedural (i.e. defined by formulas) models of walls, stairs, etc. and may be additional 2d models. Formulas inside these models create polygons/vector drawings. Of course, all formulas are heuristic. For walls, for example, you can create a poly line, then create an outline for it, then extrude the outline using z-axis.

How to show measurement on resizing the objects

It's heuristic too. For walls you just measure distance between corners, for shelves/wardrobes you may use sizes of their bounding boxes.

Community
  • 1
  • 1
Dmitry Sapelnikov
  • 1,129
  • 8
  • 16