Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic examples for the away3d.primitives package #2

Open
wants to merge 79 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
8a313bb
added basic_loadModel example
rob-bateman Sep 26, 2011
06329f5
Renamed Basic_LoadModel to Basic_Load3DS
Sep 27, 2011
8ecb9ca
added Basic_LoadOBJ example
Sep 27, 2011
0351461
update examples to use the new controller classes
Oct 3, 2011
a16b1d0
update to use loadData
Oct 3, 2011
1f03b29
add polar bear demo
Oct 3, 2011
733b2b8
updates to demo
Oct 4, 2011
174d976
updates to aninmation example
Oct 4, 2011
4c64b27
adding missing head model to example, sorry guys! Stupid ignored
Oct 4, 2011
e50ceaa
minor changes to shadows and fog settings
Oct 7, 2011
736b369
update for independent uv scaling, removed missing shadow method
rob-bateman Oct 9, 2011
0a0ee8a
Adapted Load3DS example to recent changes to loading interface.
richardolsson Oct 10, 2011
699beb0
Removed unused import in LoadOBJ example.
richardolsson Oct 10, 2011
d123ae1
minor updates to engine
Oct 17, 2011
699d0cf
moved enableParsers to initEngine
Oct 17, 2011
bb34ab2
* adding basic cube example
ellemenno Jan 4, 2012
13c4ccb
* updated cube example to use Mesh after geometry refactoring
Jan 13, 2012
3f696d2
* added skybox example
Jan 13, 2012
95cb244
* adding wireframe tests
Jan 19, 2012
dd3e79c
* reordering examples under package structure to match away3d-core, s…
Jan 24, 2012
4963824
* factoring out key control of camera into UserTransform
Jan 28, 2012
0622930
* added optional initial value for user transform; upped default spin…
Jan 29, 2012
be62843
* added cube example with simple directional light
Jan 29, 2012
82289bf
Merge remote-tracking branch 'origin/dev' into dev
ellemenno Jan 29, 2012
78b86a3
* adding skybox grid images
ellemenno Feb 1, 2012
fad649f
* removing tests and relocated examples
ellemenno Feb 1, 2012
91d876c
* adding examples for rest of solid primitives
ellemenno Feb 1, 2012
8dfe049
* listing ignores in abc order
ellemenno Feb 1, 2012
39077d8
* adding examples for rest of solid primitives (oops, forgot cylinder)
ellemenno Feb 1, 2012
4433e7c
* adding examples for rest of solid primitives (sphere)
ellemenno Feb 1, 2012
7144c7a
* recompiled examples against latest swc
ellemenno Feb 3, 2012
4d22891
* tweaked example lighting and modified plane example motion so it do…
ellemenno Feb 3, 2012
e2d6f58
* recompiled examples against latest swc
ellemenno Feb 6, 2012
e6c256a
* update to work with corrected default for PlaneGeometry.yUp
ellemenno Feb 8, 2012
1381725
* recompiled examples against latest swc
ellemenno Feb 8, 2012
05dc6f6
Merge remote-tracking branch 'canonical/dev' into dev
ellemenno Feb 8, 2012
74915a2
* recompiled examples against latest swc
ellemenno Feb 8, 2012
27bd729
* removing wireframe cube to be replaced with example in away3d/primi…
ellemenno Feb 8, 2012
92751d3
* complete set of examples for away3d.primitives package
ellemenno Feb 8, 2012
cd95f30
* updated LightsHelper package path
ellemenno Feb 15, 2012
af63e7d
merging remote-tracking branch 'canonical/dev' into dev-primitives
ellemenno Feb 15, 2012
6a971ca
* recompiled examples against latest swc
ellemenno Feb 15, 2012
4683cdf
* adding ant build scripts and support tools
ellemenno Feb 15, 2012
5805bc6
* no longer ignoring build files
ellemenno Feb 15, 2012
22fb1a9
merging remote-tracking branch 'origin/build-files' into dev-primitives
ellemenno Feb 15, 2012
379c903
* re-ignoring target and re-testing build
ellemenno Feb 15, 2012
38e17b3
* cleanup
ellemenno Feb 19, 2012
bb5c127
* updated swc to 4.0.0-beta
ellemenno Feb 22, 2012
41198e8
* recompiled examples against latest swc
ellemenno Feb 22, 2012
fa6b8fa
Merge remote-tracking branch 'canonical/master' into dev-primitives
ellemenno Mar 9, 2012
d20864c
* recompiled examples against latest swc
ellemenno Mar 9, 2012
24d2290
* recompiled examples against latest swc
ellemenno Mar 23, 2012
73c1270
* recompiled examples against latest swc (cone normals now fixed)
ellemenno Apr 1, 2012
3bc8cc5
* recompiled examples against latest swc
ellemenno Apr 20, 2012
9492bec
* adding examples for newly added Torus and WireframeCylinder primitives
ellemenno Apr 20, 2012
f1a0e47
* recompiled examples against latest swc
ellemenno Apr 20, 2012
c211dff
* adding tile6 texture to cube example
ellemenno May 18, 2012
d96a1e9
* recompiled examples against latest swc
ellemenno May 18, 2012
6a91296
* corrections to tile6 layout to better indicate 'natural' up
ellemenno May 18, 2012
55237a4
* corrections to tile6 layout to better indicate 'natural' up
ellemenno May 18, 2012
385d9c4
Merge remote-tracking branch 'origin/dev-primitives' into dev-primitives
ellemenno May 18, 2012
9af7d59
* simplifying tile6 texture
ellemenno May 18, 2012
4fbd516
* psd update
ellemenno May 30, 2012
4ae36a4
* added stats and reformatted
ellemenno Jun 6, 2012
0d56df6
* recompiled examples against latest swc
ellemenno Jun 6, 2012
3410288
merging remote-tracking branch 'canonical/dev' into dev-primitives
ellemenno Jun 6, 2012
756f552
* recompiled examples against latest swc
ellemenno Jun 16, 2012
ff40876
Migrated LightProbes demo to master
DerSchmale Jun 18, 2012
7f3480b
Use NearShadowMapMethod for Intermediate_MD5Animation
DerSchmale Jun 18, 2012
552d223
Position update for sprite
DerSchmale Jun 18, 2012
f2e03ed
Update MD5Animation
DerSchmale Jun 20, 2012
6e1446b
* recompiled examples against latest swc
ellemenno Jul 12, 2012
cd414e1
merging remote-tracking branch 'canonical/master' into dev-primitives
ellemenno Jul 12, 2012
8c3f3d3
merging remote-tracking branch 'canonical/release' into dev-primitives
ellemenno Jul 12, 2012
403a9f4
* recompiled examples against latest swc; updated tile6 texture
ellemenno Jul 13, 2012
178debf
* recompiled examples against latest swc
ellemenno Jul 18, 2012
cf9fb18
* recompiled examples against latest swc
ellemenno Jul 20, 2012
c3a636d
* recompiled examples against latest swc
ellemenno Aug 8, 2012
9726dde
* rebuilt with apache flex sdk 4.8.0 (incubator release)
ellemenno Aug 15, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
/.flexLibProperties
/bin
/target
/launch/output.txt
/.project
/.settings
/.actionScriptProperties
*.iml
out
out
/bin-debug/
127 changes: 127 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
<?xml version="1.0" encoding="UTF-8"?>

<project name="demo" default="-usage" basedir=".">

<description>
Builds the Away3D 4.0 examples.
</description>

<property name="dir.root" location="${basedir}"/>
<import file="${dir.root}/tools/ant/init.xml"/>

<property name="dir.config" location="${dir.root}/tools/mxmlc"/>
<property name="dir.source" location="${basedir}/src"/>
<property name="dir.libs.away3d" location="${dir.root}/tools/away3d"/>
<property name="dir.target" location="${basedir}/target"/>
<property name="dir.release" location="${basedir}/release"/>
<property name="exe.flashplayer" location="${dir.root}/tools/flashplayer/debug/flashplayer${exe}"/>


<target name="all" description="&gt; ant -Dfile=SkyBoxExample -Dpath=away3d/primitives all (clean, compile, release, run)" depends="clean, compile, release, run"/>

<target name="clean" description="remove the contents of ${dir.target} and ${dir.release}">
<delete failonerror="true" includeemptydirs="true">
<fileset dir="${dir.target}" includes="*"/>
</delete>
</target>

<macrodef name="compile-demo">
<attribute name="name" default="UNKNOWN"/>
<sequential>
<local name="filename"/>
<property name="filename" value="@{name}"/>
<local name="filepath"/>
<property name="filepath" value="${dir.source}/${path}"/>
<local name="source-path"/>
<property name="source-path" value="-source-path=${dir.source}"/>
<local name="library-path"/>
<property name="library-path" value="-library-path+=${dir.libs.away3d}"/>
<local name="link-report"/>
<property name="link-report" value="-link-report=${dir.target}/@{name}-linkage.xml"/>
<local name="size-report"/>
<property name="size-report" value="-size-report=${dir.target}/@{name}-sizes.xml"/>
<local name="output"/>
<property name="output" value="-output=${dir.target}/@{name}.swf"/>
<mxmlc file="${filepath}/${filename}.as" config="${dir.config}/mxmlc-config.xml" options="${source-path} ${library-path} ${link-report} ${size-report} ${output}"/>
</sequential>
</macrodef>

<macrodef name="run-demo">
<attribute name="name" default="UNKNOWN"/>
<sequential>
<open file="${dir.release}/@{name}.swf" exe="${exe.flashplayer}"/>
</sequential>
</macrodef>

<target name="compile" depends="clean" description="compiles demo swfs into target folder">
<compile-demo name="${file}"/>
</target>

<target name="release" depends="compile" description="copies build artifacts from target to release folder">
<copy file="${dir.target}/${file}.swf" todir="${dir.release}"/>
</target>

<target name="run" description="launches build artifact from release folder">
<run-demo name="${file}"/>
</target>


<target name="compile-release" depends="compile, release"/>

<target name="examples" description="compile and release all the examples" depends="clean">
<antcall target="compile-release">
<param name="file" value="CapsuleExample"/>
<param name="path" value="away3d/primitives"/>
</antcall>
<antcall target="compile-release">
<param name="file" value="ConeExample"/>
<param name="path" value="away3d/primitives"/>
</antcall>
<antcall target="compile-release">
<param name="file" value="CubeExample"/>
<param name="path" value="away3d/primitives"/>
</antcall>
<antcall target="compile-release">
<param name="file" value="CylinderExample"/>
<param name="path" value="away3d/primitives"/>
</antcall>
<antcall target="compile-release">
<param name="file" value="PlaneExample"/>
<param name="path" value="away3d/primitives"/>
</antcall>
<antcall target="compile-release">
<param name="file" value="RegularPolygonExample"/>
<param name="path" value="away3d/primitives"/>
</antcall>
<antcall target="compile-release">
<param name="file" value="SkyBoxExample"/>
<param name="path" value="away3d/primitives"/>
</antcall>
<antcall target="compile-release">
<param name="file" value="SphereExample"/>
<param name="path" value="away3d/primitives"/>
</antcall>
<antcall target="compile-release">
<param name="file" value="TorusExample"/>
<param name="path" value="away3d/primitives"/>
</antcall>
<antcall target="compile-release">
<param name="file" value="WireframeCubeExample"/>
<param name="path" value="away3d/primitives"/>
</antcall>
<antcall target="compile-release">
<param name="file" value="WireframeCylinderExample"/>
<param name="path" value="away3d/primitives"/>
</antcall>
<antcall target="compile-release">
<param name="file" value="WireframePlaneExample"/>
<param name="path" value="away3d/primitives"/>
</antcall>
<antcall target="compile-release">
<param name="file" value="WireframeSphereExample"/>
<param name="path" value="away3d/primitives"/>
</antcall>
</target>

</project>

35 changes: 35 additions & 0 deletions embeds/cornell.obj
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Blender v2.58 (sub 1) OBJ File: ''
# www.blender.org

o Cube
v 1.000000 -1.449582 -1.000000
v 1.000000 -1.449582 1.000000
v -1.000000 -1.449582 1.000000
v -1.000000 -1.449582 -1.000000
v 1.000000 1.449582 -1.000000
v 0.999999 1.449582 1.000001
v -1.000000 1.449582 1.000000
v -1.000000 1.449582 -1.000000
vt 0.666667 0.483194
vt 1.000000 0.483194
vt 1.000000 0.816527
vt 0.666667 0.816527
vt 1.000000 0.333333
vt 0.666667 0.333333
vt 0.666667 0.000000
vt 1.000000 0.000000
vt 0.000000 0.000000
vt 0.333333 0.000000
vt 0.333333 0.483194
vt 0.000000 0.483194
vt 0.666667 0.966388
vt 0.333333 0.966388
vt 0.000000 0.966388

s off
f 1/1 4/2 3/3 2/4
f 5/5 6/6 7/7 8/8
f 1/9 2/10 6/11 5/12
f 2/10 3/7 7/1 6/11
f 3/11 4/1 8/13 7/14
f 4/12 1/11 5/14 8/15
Binary file added embeds/cornellEnvMap/negXnegZ/negX.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added embeds/cornellEnvMap/negXnegZ/negY.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added embeds/cornellEnvMap/negXnegZ/negZ.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added embeds/cornellEnvMap/negXnegZ/posX.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added embeds/cornellEnvMap/negXnegZ/posY.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added embeds/cornellEnvMap/negXnegZ/posZ.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added embeds/cornellEnvMap/negXposZ/negX.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added embeds/cornellEnvMap/negXposZ/negY.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added embeds/cornellEnvMap/negXposZ/negZ.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added embeds/cornellEnvMap/negXposZ/posX.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added embeds/cornellEnvMap/negXposZ/posY.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added embeds/cornellEnvMap/negXposZ/posZ.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added embeds/cornellEnvMap/posXnegZ/negX.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added embeds/cornellEnvMap/posXnegZ/negY.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added embeds/cornellEnvMap/posXnegZ/negZ.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added embeds/cornellEnvMap/posXnegZ/posX.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added embeds/cornellEnvMap/posXnegZ/posY.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added embeds/cornellEnvMap/posXnegZ/posZ.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added embeds/cornellEnvMap/posXposZ/negX.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added embeds/cornellEnvMap/posXposZ/negY.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added embeds/cornellEnvMap/posXposZ/negZ.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added embeds/cornellEnvMap/posXposZ/posX.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added embeds/cornellEnvMap/posXposZ/posY.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added embeds/cornellEnvMap/posXposZ/posZ.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added embeds/cornellWallNormals.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added embeds/cornell_baked.jpg
Binary file added embeds/cube-tile6.jpg
Binary file added embeds/cube-tile6.psd
Diff not rendered.
Binary file added embeds/head_AO.jpg
Binary file added embeds/skybox/grid-negX.png
Binary file added embeds/skybox/grid-negY.png
Binary file added embeds/skybox/grid-negZ.png
Binary file added embeds/skybox/grid-posX.png
Binary file added embeds/skybox/grid-posY.png
Binary file added embeds/skybox/grid-posZ.png
6 changes: 0 additions & 6 deletions html-template/history/history.css

This file was deleted.

Loading