[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4787: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4789: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4790: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4791: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
InsideQC Forums • View topic - 16 bit MDL models?

16 bit MDL models?

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

16 bit MDL models?

Postby drm_wayne » Wed Jun 24, 2015 12:43 pm

Im curious, the blender script for quake models seems to have a 16bit option.
After exporting with the 16bit option enabled the header seems to be different.ß
How can i enable support for this format in my engine (im using joequake).
(i guess it needs more than just support for the MDMD16 header).

Greets. :D
User avatar
drm_wayne
 
Posts: 232
Joined: Sat Feb 11, 2012 5:47 pm

Re: 16 bit MDL models?

Postby frag.machine » Wed Jun 24, 2015 9:17 pm

Never heard of this format before. Maybe some experimental option ?
What would be the advantages over original MDL ?
EDIT: Maybe it's some option to export to Half Life .mdl format ?
EDIT2: Looks like has your answer.
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2120
Joined: Sat Nov 25, 2006 1:49 pm

Re: 16 bit MDL models?

Postby drm_wayne » Thu Jun 25, 2015 1:25 pm

it has 16 bit vertex data, and i want to use it.
But i think it needs more in the engine than just the header.
User avatar
drm_wayne
 
Posts: 232
Joined: Sat Feb 11, 2012 5:47 pm

Re: 16 bit MDL models?

Postby mh » Thu Jun 25, 2015 4:59 pm

Look for everywhere the trivertx_t struct is used in the engine; you'll need to adjust that code to also work with the different vertex type.
User avatar
mh
 
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

Re: 16 bit MDL models?

Postby drm_wayne » Thu Jun 25, 2015 5:06 pm

thanks.

Is the format (apart from the MD16 header and the 16 bit verts) similar?
I guess the texture is still stored like in a regular quake mdl.
User avatar
drm_wayne
 
Posts: 232
Joined: Sat Feb 11, 2012 5:47 pm

Re: 16 bit MDL models?

Postby mh » Fri Jun 26, 2015 8:02 am

User avatar
mh
 
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

Re: 16 bit MDL models?

Postby drm_wayne » Sat Jun 27, 2015 4:41 pm

I already looked at QF source, but its totally different how they handle the models..
Oh well :?
User avatar
drm_wayne
 
Posts: 232
Joined: Sat Feb 11, 2012 5:47 pm

Re: 16 bit MDL models?

Postby Spike » Sat Jun 27, 2015 5:07 pm

I had a look at QuakeForge, the 4-byte ident is different, the version is not. the vertex data is doubled-up, with the first set being the high-order data, with the second set being low-order data.
you can should be able to load these by just recognising the header, and skipping over the extra data (just double the vertex count for purposes of on-disk frame size).
the extra data is 'optional' data, in that its all 0, nothing else changes. there's also some extra nomalindex stuff in that data, which should be considered padding.
I've not actually tested this of course as I'm too lazy to figure out how to use the various tools, but it looks fairly simple to load these (actually using the data might be a little more complex if you're making a software renderer, but it should be somewhat easy in gl - especially if you already handle mdl+md2+md3 in a generic way).
.
Spike
 
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Re: 16 bit MDL models?

Postby drm_wayne » Sat Jun 27, 2015 7:09 pm

problem is i dont know much about the model code, and i see that my engine has alot different things like SetupAliasBlendedFrame etc, which isnt
in QuakeForge. I already sended the developers a mail, i hope they can help me adding this stuff.
User avatar
drm_wayne
 
Posts: 232
Joined: Sat Feb 11, 2012 5:47 pm

Re: 16 bit MDL models?

Postby frag.machine » Sun Jun 28, 2015 3:13 pm

TBH I wonder if it's a good idea to work with a model format so obscure. The supposed advantage of avoiding vertex wobbling can be obtained with md3, a fairly well known standard format nowadays, supported by a good number of tools.
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2120
Joined: Sat Nov 25, 2006 1:49 pm

Re: 16 bit MDL models?

Postby drm_wayne » Sun Jun 28, 2015 4:03 pm

MD3 takes too long to load because of the normal calculating..
Oh well, i think i stay with MD2 then :oops:
User avatar
drm_wayne
 
Posts: 232
Joined: Sat Feb 11, 2012 5:47 pm

Re: 16 bit MDL models?

Postby frag.machine » Mon Jun 29, 2015 3:12 am

I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2120
Joined: Sat Nov 25, 2006 1:49 pm

Re: 16 bit MDL models?

Postby drm_wayne » Mon Jun 29, 2015 2:04 pm

User avatar
drm_wayne
 
Posts: 232
Joined: Sat Feb 11, 2012 5:47 pm

Re: 16 bit MDL models?

Postby Spike » Mon Jun 29, 2015 2:57 pm

what are pitch+yaw for? why do you need those?
.
Spike
 
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Re: 16 bit MDL models?

Postby drm_wayne » Mon Jun 29, 2015 3:07 pm

This is the original loader from JoeQuake, i didnt added anything. :shock:
User avatar
drm_wayne
 
Posts: 232
Joined: Sat Feb 11, 2012 5:47 pm

Next

Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 2 guests