* FAQ    * Search  * Register * Login 
Active topics
Unanswered topics

All times are UTC-06:00



Post new topic  Reply to topic  [ 1 post ] 
Author Message
 Post subject: Code question about loading model files
PostPosted: Mon Oct 09, 2017 7:37 am 
Offline
DBB Ace
DBB Ace

Joined: Fri Sep 29, 2017 12:33 am
Posts: 21
I'm trying to find the code that reads polymodel files and builds the struct that represents them. I think I see it in read_model_file() in polyobj.cpp but it's confusing: the first thing this function does is read a "model_ID" int and assert that it must equal 0x4f505350 (or "OPSP"). So any block that describes a polymodel and gets read by read_model_file() must start with that value. So I looked in any ham, hog or pig file I could find in both Descent 1 and 2 with a hex editor, and didn't find "OPSP" anywhere (or "PSPO" since I know there are endian issues). Same for any of the other header IDs like "OHDR". As far as I can tell there is no model data anywhere in the Descent files that could be read by this particular function. So where are the files and/or which function is actually the one that reads model data?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Descent'rs have piloted these pages
 
The layout and contents contained within this site are © DescentBB.net 1997-2006.
Descent, Descent II are © Parallax Software Corporation.
Descent III is Outrage Entertainment.
Descent is a Trademark of Interplay Productions.

Miner Wars™ is trademark of Keen Software House s. r. o.
.


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group