A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: About: getting the depth sorting to work

Threaded View

  1. #1
    Junior Member
    Join Date
    Jan 2009
    Location
    The Netherlands
    Posts
    29

    About: getting the depth sorting to work

    Dear flashers,

    I have studied the 3d articles from renderhjs, kirupa and some others (serveral times )
    but i just cant get the depth sort to work proper

    what i do now:
    1 - create camera
    2 - create models: only sets needed vars
    3 - add onEnterFrame that loops all models and adds the faces to 1 global face array
    4 - that faces array get sorted
    5 - drawing the models

    sample

    source zipped

    srcView

    I hoped someone could help me with this and give a explanation what i did wrong

    Regards,

    MasterX

    PS: i do know that my code maybe isnt that fast or perfect but i am only focussing on the depth sorting ( i will optimize/use proper methods when i fully understands whats wrong with it now )
    Last edited by Master_X; 01-24-2009 at 01:30 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center