Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The 3D rotation tool is excellent but it only lets you rotate 2D objects, this means my object is wafer thin.

Is there any way to add simple extrusion or depth to a symbol?

I don't really want to use any 3rd party libraries like Away3D or Papervision, this is overkill for my simple 2D game. I only want to do this creating a couple motion tweens if possible.

More Details:

Below is what my symbol looks like (just with a bit more color). The symbol does a little 3D rotation and then flies away, it's just for something like a scoreboard within the app.

enter image description here

share|improve this question
A "fake" method can be copying 10-15 copies of that movieclip one after another by code. However not useful, if you are going to make further 3d modifications on it. – Vishwas G Nov 1 '12 at 20:14
@VishwasGagrani: Thanks, I tried this earlier. It works fine on the PC, but on iOS or android it's a slow and bumpy ride. – Gerve Nov 1 '12 at 20:36
Simple answer is: yes, there are ways to add extrusion to a symbol. Whether there are easy ways depend a lot on what you mean by "a symbol", or what kind of object you have. Turning a square into a cube is easy, turning a mandelbrot into a heightfield is harder. – Jari Komppa Nov 2 '12 at 9:22
@JariKomppa: My symbol is just 2 rectangles joined together, the rectangles both have rounded corners. Please share any tips you have. – Gerve Nov 2 '12 at 12:28
@JariKomppa: I've just posted an update with pic. – Gerve Nov 2 '12 at 12:33

For all that you don't want to use 3rd Party 3D frameworks, a simple solution for the rounded corners won't be that simple.

@Jari Komppa - his approach is the way to do it, but you'll spend some time making all the corner pieces. Each corner will probably need 3 polygons to replicate the curve satisfactorily. So you'd have to add 15 polygons for the rounded edges and another 7 for the other side and back faces. If that works for you, have at it. The nice thing about something like Away3D is that you can import a 3ds or other model and use that instead. No trying to work out the intricacies of 3D model in code.

share|improve this answer
Also, depending on how you rotate the item, you might only need half the polygons. Do you have an example of the rotation? – Gone3d Nov 15 '12 at 16:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.