Objects not ordering correctly.

View previous topic View next topic Go down

Objects not ordering correctly.

Post  shaggy on Thu Jul 09, 2009 7:22 am

Hi, this is (hopefully) a very simple question, but one that I've been banging my head against for way too long.

I'm trying to learn how SIO2 works from "basic principals" (aka starting from scratch and figuring it out), but for some reason I'm not able to have a very simple scene rendered relatively easily.

My blender scene is simple: A cube sitting on top of a plane. This is what I'm getting:



When running one of the tutorial .sio2 files (using the same code, just replacing the resource), everything renders fine, so my theory is that there's something wrong with my export from Blender.

Can someone please point the way here? I've been tinkering with this for a few days now, and it's driving me up the wall!

Thanks.

(ps. sio2interactive: This is a fantastic resource you've provided here, and I'm amazed at the quality of the product you've provided! I'm not sure if I'll ever get around to releasing something "indie" or not, but I'll definitely be donating in the near future. Good work and thanks for all your efforts!)

shaggy

Posts : 7
Join date : 2009-06-26

View user profile

Back to top Go down

Re: Objects not ordering correctly.

Post  sio2interactive on Thu Jul 09, 2009 8:03 am

Are you using the template project or your own? Cuz that top bar shouldn't be there if you are using the template project... anyway looks to me that the depth function is not right... make sure that depth test is ON...

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 37
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: Objects not ordering correctly.

Post  shaggy on Thu Jul 09, 2009 8:16 am

That did the trick, thanks!

It's always the simplest things you overlook which take up so much time...

shaggy

Posts : 7
Join date : 2009-06-26

View user profile

Back to top Go down

Re: Objects not ordering correctly.

Post  shaggy on Thu Jul 09, 2009 8:19 am

btw, re: the top bar.

I'm working off of a new project using a static library version of the sio2 code, and only adding elements as I work on them and (most importantly) fully understand them. At the moment, I'm only up to rendering simple scenes w/ textures. Next up: Motion!

shaggy

Posts : 7
Join date : 2009-06-26

View user profile

Back to top Go down

Re: Objects not ordering correctly.

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum