All For The Code - Away3D 4 Tutorials

Software: Away3D 4.x

Avatar
Darcey, Moderator
Posted: 02 November 2011 02:29 PM   Total Posts: 209

New code tutorials announcement:

How to setup Away3D 4 (alpha) in FlashDevelop
http://www.allforthecode.co.uk/aftc/forum/user/modules/forum/article.php?index=5&subindex=2&aid=293

Away3D 4 (alpha) Setting up the basics (full source and demo included)
http://www.allforthecode.co.uk/aftc/forum/user/modules/forum/article.php?index=5&subindex=3&aid=295

Away3D 4 (alpha) Capsule primitive (full source and demo included)
http://www.allforthecode.co.uk/aftc/forum/user/modules/forum/article.php?index=5&subindex=4&aid=296

Away3D 4 (alpha) Cone primitive (full source and demo included)
http://www.allforthecode.co.uk/aftc/forum/user/modules/forum/article.php?index=5&subindex=4&aid=297

Away3D 4 (alpha) Cube primitive (full source and demo included)
http://www.allforthecode.co.uk/aftc/forum/user/modules/forum/article.php?index=5&subindex=4&aid=298

Away3D 4 (alpha) Cylinder primitive (full source and demo included)
http://www.allforthecode.co.uk/aftc/forum/user/modules/forum/article.php?index=5&subindex=4&aid=299

Away3D 4 (alpha) Line drawing example (full source and demo included)
http://www.allforthecode.co.uk/aftc/forum/user/modules/forum/article.php?index=5&subindex=4&aid=300

Away3D 4 (alpha) Plane primitive (full source and demo included)
http://www.allforthecode.co.uk/aftc/forum/user/modules/forum/article.php?index=5&subindex=4&aid=301

Away3D 4 (alpha) Regular Polygon primitive (full source and demo included):
http://www.allforthecode.co.uk/aftc/forum/user/modules/forum/article.php?index=5&subindex=4&aid=302

Away3D 4 (alpha) SkyBox primitive (full source and demo included):
http://www.allforthecode.co.uk/aftc/forum/user/modules/forum/article.php?index=5&subindex=4&aid=303

Away3D 4 (alpha) Sphere primitive (full source and demo included):
http://www.allforthecode.co.uk/aftc/forum/user/modules/forum/article.php?index=5&subindex=4&aid=304

Away3D 4 (alpha) Wire frame primitives (full source and demo included):
http://www.allforthecode.co.uk/aftc/forum/user/modules/forum/article.php?index=5&subindex=4&aid=305

   

Alex Bogartz, Sr. Member
Posted: 02 November 2011 04:53 PM   Total Posts: 216   [ # 1 ]

Nice work!  If you guys need any grunt work done on this, please don’t hesitate to send out a “bleg” to the community.  We’re all busy, but if you throw out a specific task I know some of us will be able to help.

   

Avatar
80prozent, Sr. Member
Posted: 02 November 2011 05:17 PM   Total Posts: 430   [ # 2 ]

jeah very cool.

maybe we should have a tutorial-request thread in this forum.
so anyone who feels like he wants to do something usefull for away3d, can try writing one of the requested tutorials. Some sort of voting would be nice (list of tutorials request and each user vote which of the requested tutorials he would like to see).

anyway, i guess a lot of newbies will be very glad to have this list of demos as a great starting point for learning this api.

 Signature 

sorry…i hope my actionscript is better than my english…

   

bogdanaioanei, Newbie
Posted: 28 April 2012 09:41 AM   Total Posts: 1   [ # 3 ]

Hey guys,

Now that the new version of the API is out it would be nice to see some tutorials using this new version. I personally would like to understand more about how the camera controllers work, what benefits there are of using SubGeometry and when do you need to use it, and so forth.

Updating the examples from the list above would be nice too.
Can anyone say when or if these will be updated?

Thanks

   

JuanitaThompson, Newbie
Posted: 13 May 2012 09:50 AM   Total Posts: 2   [ # 4 ]

Cool guides, I’ve bookmarked them, man.

   

Avatar
Darcey, Moderator
Posted: 06 June 2012 12:49 AM   Total Posts: 209   [ # 5 ]

I know it’s been a while guys but so many changes, so very busy and so little time. Here are some updated code based tutorials for you and as always with full source and demo:

Away3D 4 (Beta) > Basics / Getting started : Article listing
http://www.allforthecode.co.uk/aftc/forum/user/modules/forum/article_browser.php?index=6&subindex=2&clist=217

Away3D 4 (Beta) > Primitives / Primitive Geometry : Article listing
http://www.allforthecode.co.uk/aftc/forum/user/modules/forum/article_browser.php?index=6&subindex=4&clist=218

Away3D 4 (Beta) > Textures / Materials : Article listing
http://www.allforthecode.co.uk/aftc/forum/user/modules/forum/article_browser.php?index=6&subindex=5&clist=219

Away3D 4 (Beta) > 3D Models & Loading : Article listing
http://www.allforthecode.co.uk/aftc/forum/user/modules/forum/article_browser.php?index=6&subindex=8&clist=222

I will add more in time, but for now, these cover most of the requests I am getting.

Happy Coding

Darcey

 

 

   

Deril, Newbie
Posted: 24 June 2012 06:55 PM   Total Posts: 8   [ # 6 ]

Nice examples! thanks!

One question: is there a reason why you moved pf_ronda_seven.ttf from ‘/assets/’ to ‘com/bit101/’  folder? (leaving empty assets folder in…)

I don’t know what tool you are using, but fastest as3 code writing tool require that “/” in front of embed paths… maybe you could fix this?

   

Avatar
Darcey, Moderator
Posted: 25 June 2012 07:58 PM   Total Posts: 209   [ # 7 ]

I don’t like many libraries that don’t encapsulate themselves to their own folders, so bit101’s assets have been moved to its own folder.

The empty assets folder is created by me on project creation by instinct.

Software: Flash Builder 4.6

My process flow:
1. Create new AS3 project
2. Setup libs path
3. Setup swcs folder path
4. Create assets folder in src folder
5. Code on…


Regarding the paths issue, I try to avoid absolute paths at all costs. I often never know where my work will be re-edited, deployed or even whom will be deploying it. So the relative file path is a must. On the AFTC website if you look at the source code you will notice I set the base path using SWFObject to set this, which is dynamically done via php.

Note some server combinations or setups of mac and pc can have fun with / vs \ etc. But you will always find my paths relative and in the pc dos format.

Code on smile

Darcey

   

Deril, Newbie
Posted: 26 June 2012 04:06 AM   Total Posts: 8   [ # 8 ]

Hi, thanks for reply!

if you want to avoid absolute paths.. why you use them.. ? smile

“com/bit101/pf_ronda_seven.ttf” - is absolute path. the only difference is that FlashBuilder can handle absolute paths that does not start with ‘/’.
FlashDevelop can’t. And many tools can’t. For instance if you will use Jenkins - FlexMojos will complain.

If you want relative path it should look like this : “../pf_ronda_seven.ttf”

I also tried to put all your examples in one project and discovered that same examples have same main class name.. :(

In any case… It’s small issues.

Thanks for examples!

   

Avatar
Darcey, Moderator
Posted: 26 June 2012 06:19 AM   Total Posts: 209   [ # 9 ]

Relative is ./  ../ is up a level.
Absolute paths are /  and c:\\windows\system and http://  and https:// etc etc etc
But I wouldn’t consider com/bit101/pf_ronda_seven.ttf to be an absolute path. Strictly speaking however you could consider it absolute from project base path.

But I’ve never had a problem using my paths in FlashBuilder, FDT, Flex and jBuilder.

Also when doing my examples, I often use the same name as its a template copy and paste and just change default application. The website teaches with code examples not a step by step guide so I don’t expect people to have a hand held experience of what is going on, I expect them to try it out for themselves and learn more in the doing so.

Regarding the single project folder with 10 projects within it, as a personal preference I would rather have a 100 projects defined by project name with the same base class all cleanly separated, than 100 projects inside a single application having various cross overs with assets, libraries, swcs etc.

Of to work I go… Code on smile

D

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X