[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/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 - Using md3's instead of mdl [Help!]

Using md3's instead of mdl [Help!]

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Postby jim » Sun Dec 05, 2010 3:29 pm

zbang!
User avatar
jim
 
Posts: 599
Joined: Fri Aug 05, 2005 2:35 pm
Location: In The Sun

Postby Karall » Sat Dec 11, 2010 3:00 pm

Well, Md3's doesnt pack the textures in the model. But do md2's do that? And also would the texture quality be better then mdl.
Karall
 
Posts: 128
Joined: Thu Jul 15, 2010 5:23 pm

Postby Sajt » Sat Dec 11, 2010 5:14 pm

md2s do not store the texture in the model, only the path (like md3). So you can use whatever quality texture you want with md2.
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
Sajt
 
Posts: 1215
Joined: Sat Oct 16, 2004 3:39 am

Postby Karall » Sat Dec 11, 2010 6:08 pm

Is there any file format that darkplaces can use that has the textures in the actual file, becouse i dont think ile ever succed with md3's. Isnt there any way to expand the quake pallete?
Karall
 
Posts: 128
Joined: Thu Jul 15, 2010 5:23 pm

Postby Sajt » Sat Dec 11, 2010 6:13 pm

No, mdl is the only format that internally stores the skin. You can't "expand the palette" unless you create a custom MDL format, with a custom exporter...

Maybe you could upload the md3 and tga you were trying to get work, and one of us could take a look at it.
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
Sajt
 
Posts: 1215
Joined: Sat Oct 16, 2004 3:39 am

Postby Karall » Sat Dec 11, 2010 6:59 pm

http://data.fuskbugg.se/dipdip/quake.rar

Thats the link to my model and the textures
Karall
 
Posts: 128
Joined: Thu Jul 15, 2010 5:23 pm

Postby Sajt » Sat Dec 11, 2010 7:08 pm

Okay, you've renamed the md3 to mdl.

First problem, your md3 doesn't seem to have normals generated properly (they all point in the same direction). The lighting will look screwed up unless this is fixed. Too bad Qwalk2 isn't around yet, it could have helped you with that... You'll have to figure it out with whatever exporter you're using.

Secondly, it looks like you want two surfaces/meshes, one for the hand and one for the gun. You need two surfaces if you want to use two textures. But your md3 only contains one surface (the hand). So there's no way to get the gun's texture on there. The hand texture will show up on both the gun and the hand. You probably exported it wrong somehow, or the exporter you used was crappy. I don't know.

Anyway, the texture path in the md3 for the texture is "F:\Modding\Quake Modding\Mod\TestQuake\ID1\Progs\Material.001". First of all, absolute paths are BAD! Second of all, I have no idea what "Material.001" is supposed to be.

If your texture is stored in TestQuake/ID1/Progs/Hand_TextureMap.jpg, the MD3's texture path should be "progs/Hand_TextureMap.jpg". (relative to the mod/id1 dir)

All this stuff has to do with the export to md3 process, which I can't help you with because I don't know which exporter you're using, and furthermore I've never used one.

Qwalk2 would be able to help with all of this except for the fact that your two surfaces/meshes seem to have been merged. But Qwalk2 won't be ready for a while, so I should shut up about that.
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
Sajt
 
Posts: 1215
Joined: Sat Oct 16, 2004 3:39 am

Postby Karall » Sat Dec 11, 2010 7:15 pm

I use the md3 exporter thats already integrated with blender. Could i use another one?
Karall
 
Posts: 128
Joined: Thu Jul 15, 2010 5:23 pm

Postby Sajt » Sat Dec 11, 2010 9:23 pm

Someone else will have to answer that... there are people here who know about exporting md3s from Blender...
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
Sajt
 
Posts: 1215
Joined: Sat Oct 16, 2004 3:39 am

Postby Karall » Sat Dec 11, 2010 10:05 pm

hope they will find this thread then
Karall
 
Posts: 128
Joined: Thu Jul 15, 2010 5:23 pm

Postby Karall » Sun Dec 12, 2010 12:57 pm

Alright so i got a new exporter wich let me choose a shader path. So inside progs i made a skin folder where i put my hand texture as hand.tga and my gun texture as gun.tga. Then inside blender i reassignd my textures following the textures i put in my skin folder. Then i exported directly into the progs folder as v_pistol.md3 ( i have fixed inside my code so theres a new weapon as v_pistol. Then i set the shader path to my skin folder inside progs. Then i renamned my v_pistol.md3 to v_pistol.mdl. So when i start darkplaces it says that it couldnt load progs/Skin/material . I tried renaming my gun texture to Material.tga and a bunch of that kinda stuff but i still cant get it to work. What am i doing wrong?
Karall
 
Posts: 128
Joined: Thu Jul 15, 2010 5:23 pm

Postby leileilol » Sun Dec 12, 2010 1:01 pm

in blender, name your actual Material as the filename of the texture (without path)

when you export, prepare to type progs/skin/ over and over again.


yeah it's stupid.
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Postby Karall » Sun Dec 12, 2010 1:08 pm

Herp derp still cant get it to work. Isnt there anyone here with in depth tutorials for getting an md3 to work with darkplaces? Or am i just retarded...
Karall
 
Posts: 128
Joined: Thu Jul 15, 2010 5:23 pm

Postby leileilol » Sun Dec 12, 2010 1:20 pm

leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Postby Baker » Mon Dec 13, 2010 12:43 am

My apologies for my previous post in this thread. I had too much beer and ... well ... I was a bit obnoxius.

Sorry.

[Stupid character flaw that surfaces from time to time ...]
The night is young. How else can I annoy the world before sunsrise? 8) Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

PreviousNext

Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 2 guests