Jump to content
IGNORED

Help with PlayStation programming


DEBRO

Recommended Posts

Hi there,

 

I'm looking at some source code and don't quite understand the values they plug into OT_LENGTH.

 

For instance, in spaceguy.c (which I think is included in the Yaroze samples) they have

/*  Ordering table related variables */
GsOT		WorldOT[2];
GsOT_TAG	OTTags[2][1<<OT_LENGTH];

 

and later they have

	// Init the ordering table
for (i = 0; i < 2; i++) 
	{
	WorldOT[i].length = OT_LENGTH;
	WorldOT[i].org = OTTags[i];
	}

 

Where do they come up with the OT_LENGTH number? What does it represent? Every example I see has some magical number for this and they don't show how they came up with the number so I can understand it's origin or purpose.

Link to comment
Share on other sites

Hi there,

IIRC, it's just defining the maximum size of the object list. The value is pretty much arbitrary, based on how many objects you need to sort versus how much RAM you want to reserve.

 

But it's been a long time for me. :)

Thanks for the response. So am I right in assuming this is used for Z-ordering?
Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...