How to start with Stage3D?
Upcoming SlideShare
Loading in...5
×
 

How to start with Stage3D?

on

  • 556 views

 

Statistics

Views

Total Views
556
Views on SlideShare
548
Embed Views
8

Actions

Likes
0
Downloads
1
Comments
0

2 Embeds 8

http://www.linkedin.com 4
https://twitter.com 4

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

How to start with Stage3D? How to start with Stage3D? Presentation Transcript

  • How To Start?• Books• Online resources• Trial and error method
  • BooksAdobe Flash 11 Stage3D (Molehill)Game Programming Beginner’s Guide
  • BooksOpenGL Insights View slide
  • BooksPractical Rendering and Computationwith Direct3D 11 View slide
  • Books• Real-Time Shadows• Mathematics for 3D Game Programming• Real-Time Rendering, Third Edition• All Wolfgang Engel’s books!!!
  • • Register in SIGGRAPHSpecial Interest Group on Computer Graphics
  • Trial and Error Method1. Get an engine2. Compile a simple demo3. Go inside!
  • AGAL LessonSyntax: [opcode] [destination] [source1] [source2 or sampler]Sample1: mul vt1, vt1, vc0.zSample2: add vt1, vt1, vc0.zva - Vertex Attributes, Context3D::setVertexBufferAtvc - Vertex Constants, Context3D::setProgramConstants- and also you can get it by index vc[0]fs - Fragment Sampler, Context3D::setTextureAtvt - Vertex Tempop - Output Positionoc - Output Colorv - Varying Variables from vertex to fragment shader
  • AGAL Swizzle LessonRight answer is:vt2.x = vt0.y*vt1.y;vt2.y = vt0.x*vt1.z;vt2.z = vt0.y*vt1.x;vt2.w = vt0.y*vt1.x;mul vt2.yxzw, vt0.xy, vt1.zyxWrong answer is:vt2.x = vt0.y*vt1.y;vt2.y = vt0.x*vt1.z;vt2.z = vt0.y*vt1.x;vt2.w = vt0.y*vt1.x;For vt2 write mask is 1111 (yxzw or xyzw or wxyz or etc. all the same)vt0 swizzle to xyyyvt1 swizzle to zyxx
  • Thank you!• Stage3D Facebook Group• Skype chatSergey Goncharhttp://gonchar.me/blog@UnknownFlasher