Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: Z ordering in 3D scenes  (Read 2546 times)

0 Members and 1 Guest are viewing this topic.

SoundGuy

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 196
    • View Profile
Z ordering in 3D scenes
« on: December 26, 2007, 06:42:13 PM »

Hey,
I can't seem to find no proper tutorial for building 3D scenes and I find some holes in the documentation when it comes to Z-ordering of 3D scenes.
I'm encountering all sort of questions and problems.

The most basic question i have is how does the engine decide if he should draw the 3D actor in front of or behind a certain sprite in the scene ?
How do scene regions effect the engine's decision about it ?
to get z-ordering as one would expect where should one place a hotspot for a sprite entity ? or a free sprite entity ?

Anyone working on a 3D scene building tutorial with some mode detailed explanations on how Z-ordering works ? The current 2D tutorial in WME docs doesn't cover enough about it .

Oded
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Z ordering in 3D scenes
« Reply #1 on: December 26, 2007, 07:29:22 PM »

The ordering for 3D scenes works exactly the same as for 2D scenes. Actor's 3D position is projected into 2D, and since then it's used just like the 2D position of a 2D actor.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

SoundGuy

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 196
    • View Profile
Re: Z ordering in 3D scenes
« Reply #2 on: December 26, 2007, 07:34:30 PM »

arrgh. i'll try and figure out why i'm getting a very weird behavior.
I'll go over the 2d tutorial again - but i don't remember too many explanations about how wme calculates the z-order or where should one put the hotspot for stuff.
Logged
 

Page created in 0.076 seconds with 22 queries.