Help me vet this MDL importer.

#11
Ah, I've found the meaning of all the packets. It turns out they are identical to the PSOne HMD primitive packets. I just didn't realize it because they are not ordered by their code numbers in the documentation I have (probably the order in the manual makes more sense if you know how the codes are derived)

I also understand the frame buffer now. Assuming Som follows the same rules you're limited to a 256x256 texture (what we already know) but also a single MDL file can only have 8 such textures. On the PSOne a great deal of the framebuffer is taken up by the screen but I'm assuming Som is not limited by that requirement.

You could have more than 8 smaller textures I suppose as long as they can be crammed into the frame buffer space without overlapping. If you use the indexed modes you can maybe have 512x512. Or 1024x1024 if you can settle 16 colours (and Som actually supports that mode) ...EDITED: Scratch that. I'm not sure that would work because I don't think you could map the 8bit texture coordinates beyond 256x256. The PSOne might have some way of scaling that but I doubt Som would have gone that far unless one of the models required it.

Still there are a ton of packets and I have a feeling only the ones actually used by Som files are supported by Som though it might not hurt to try others out some day. I think I have most of them but there might be others and I won't add any until we see them.

I added black texel (texture pixel -- let's be technical) knockout but Assimp totally shit itself as soon as one transparent texel was tossed into the mix. Not sure why that is (looking into it) but I will leave it disabled for now.



PS: I want to implement the framebuffer logic tomorrow before uploading a new importer demo.
Reply



Messages In This Thread
Help me vet this MDL importer. - by HolyDiver - 2010-04-13, 05:35 AM
Re: Help me vet this MDL importer. - by HolyDiver - 2010-04-13, 08:52 AM
Re: Help me vet this MDL importer. - by HolyDiver - 2010-04-13, 10:23 AM
Re: Help me vet this MDL importer. - by dmpdesign - 2010-04-13, 01:25 PM
Re: Help me vet this MDL importer. - by HolyDiver - 2010-04-13, 09:57 PM
Re: Help me vet this MDL importer. - by HolyDiver - 2010-04-13, 10:10 PM
Re: Help me vet this MDL importer. - by dmpdesign - 2010-04-14, 01:09 AM
Re: Help me vet this MDL importer. - by HolyDiver - 2010-04-14, 06:31 AM
Re: Help me vet this MDL importer. - by HolyDiver - 2010-04-14, 12:22 PM
Re: Help me vet this MDL importer. - by HolyDiver - 2010-04-14, 10:56 PM
Re: Help me vet this MDL importer. - by HolyDiver - 2010-04-15, 06:22 AM
Re: Help me vet this MDL importer. - by HolyDiver - 2010-04-16, 01:41 AM
Re: Help me vet this MDL importer. - by HolyDiver - 2010-04-16, 08:09 AM
Re: Help me vet this MDL importer. - by HolyDiver - 2010-04-16, 08:16 AM
Re: Help me vet this MDL importer. - by HolyDiver - 2010-04-16, 10:53 AM
Re: Help me vet this MDL importer. - by HolyDiver - 2010-04-26, 01:11 AM
Re: Help me vet this MDL importer. - by HolyDiver - 2010-04-29, 01:45 AM
Re: Help me vet this MDL importer. - by HolyDiver - 2010-05-04, 05:20 AM
Re: Help me vet this MDL importer. - by HolyDiver - 2010-05-04, 11:30 PM
Re: Help me vet this MDL importer. - by Verdite - 2010-05-26, 07:29 PM
Re: Help me vet this MDL importer. - by HolyDiver - 2010-05-27, 09:39 PM
Re: Help me vet this MDL importer. - by Verdite - 2010-07-22, 11:52 AM
Re: Help me vet this MDL importer. - by dmpdesign - 2010-07-23, 01:34 PM
Re: Help me vet this MDL importer. - by HolyDiver - 2010-07-27, 12:40 AM
Re: Help me vet this MDL importer. - by Verdite - 2010-07-27, 01:01 AM
Re: Help me vet this MDL importer. - by HolyDiver - 2010-08-23, 02:39 AM
Re: Help me vet this MDL importer. - by Verdite - 2010-08-25, 12:15 PM
Re: Help me vet this MDL importer. - by HolyDiver - 2010-08-29, 06:43 AM
Re: Help me vet this MDL importer. - by HolyDiver - 2010-08-29, 07:07 AM



Users browsing this thread:
5 Guest(s)