Page 1 of 2

Problem with xmodel_export converting :(

Posted: August 22nd, 2010, 10:27 am
by R4d0xZz
Hey guys.
I tryed to import the portal gun from portal into cod4.
So I read some tutorials and stuff.
Its all fine till I try to convert it to an real xmodel.

here a picture:
Image

1. I converted the portalgun from "w_portalgun.mdl" to "weapon_pgun.OBJ"
2. I opened it in maya and made the color of the model white.
3. I exported it as a .OBJ again and used "xmodel_Creator_v0.6".
4. Then I was going to set up the material and all worked fine. I can convert the Material w/o any errors.
5. After that I tryed to convert the xmodel_export to an xmodel but i got that error and I dont know why.

Could anyone help me with that?

Re: Problem with xmodel_export converting :(

Posted: August 22nd, 2010, 12:37 pm
by R4d0xZz
nvm made it now =)
btw: wth xD
http://screenshot.xfire.com/s/103034372-4.jpg

Re: Problem with xmodel_export converting :(

Posted: August 22nd, 2010, 1:02 pm
by Drofder2004
I think Dan has the model ezported with skins already, its hidden away in the portal map :)

Re: Problem with xmodel_export converting :(

Posted: August 22nd, 2010, 1:06 pm
by R4d0xZz
I know that he did that and i saw it on mp_portal.
he also made a real portal mod for cod4 ... but he wont send it to anyone / or he doesnt have it anymore.

so drofder. How can i make that xmodel to a weapon now so i can pick it up and stuff ?

Re: Problem with xmodel_export converting :(

Posted: August 22nd, 2010, 1:15 pm
by Opel
You have to add tags to the weapon in maya so you can make it usuable for players. Check Modsonline or Iwnation Moddeling part, there is most likely some tutorials.

Re: Problem with xmodel_export converting :(

Posted: August 22nd, 2010, 2:47 pm
by R4d0xZz
i know that i dont get it .... just started maya and baah

Re: Problem with xmodel_export converting :(

Posted: August 22nd, 2010, 2:48 pm
by Drofder2004
R4d0xZz wrote:I know that he did that and i saw it on mp_portal.
he also made a real portal mod for cod4 ... but he wont send it to anyone / or he doesnt have it anymore.

so drofder. How can i make that xmodel to a weapon now so i can pick it up and stuff ?
As said, you need to do all the structures and tags, and animations... for the benefit of seeing it in a players hands, I think you can just modify a weapon file and change the models...

But I have never done modelling/skinning/anims/imprting or anything close...

Re: Problem with xmodel_export converting :(

Posted: August 22nd, 2010, 3:18 pm
by R4d0xZz
:D
http://screenshot.xfire.com/s/103042377-4.jpg

i fix that if i add tags in maya yea ?

Re: Problem with xmodel_export converting :(

Posted: August 22nd, 2010, 5:39 pm
by Rezil
In all IW scenes they did in Maya, Z is up. Check your orientation in Maya. You need tags so the game engine will know where to place your gun in relation to the viewsleeves.

Re: Problem with xmodel_export converting :(

Posted: August 22nd, 2010, 7:23 pm
by R4d0xZz
yeah noticed that already.
http://screenshot.xfire.com/s/103054866-4.jpg

now i need to get a texture on it :D

Re: Problem with xmodel_export converting :(

Posted: August 22nd, 2010, 7:30 pm
by Rezil
Very cool. About the textures: the name of the material in Maya needs to MATCH the material name in AssMan, otherwise it will report it not found.

Re: Problem with xmodel_export converting :(

Posted: August 22nd, 2010, 7:37 pm
by R4d0xZz
yea liam told me about uv mapping ... just watched 20 secs. of a tutorial and now it looks like this <3
http://screenshot.xfire.com/s/103055840-4.jpg

Re: Problem with xmodel_export converting :(

Posted: August 22nd, 2010, 7:48 pm
by Rezil
Have fun with the animation and getting it to look good in cod! :)

Re: Problem with xmodel_export converting :(

Posted: August 23rd, 2010, 9:17 am
by |Master|
Haha :P Well done man, it looks awesome :D now get it working!

Re: Problem with xmodel_export converting :(

Posted: August 23rd, 2010, 3:32 pm
by R4d0xZz
so got the model fully working now ...
i got some basic script too but ... it does not work so could somebody check that script because im not soo good at scripting :D
http://pastebin.com/zm3armfS