MX Bikes Official Forum

Mods => Bikes => Topic started by: Kermit on October 11, 2014, 08:53:00 PM

Title: Importing Models HELP!
Post by: Kermit on October 11, 2014, 08:53:00 PM
(http://i59.tinypic.com/2wozwhf.jpg)
Okay so this is what we have so far. We really need help with the shading and the normal maps everything else we think we can do we've got the Bars to turn we can get the Swing arm to work the shocks to work. We also got first person textures to work but we still need the bike to turn in first person which isn't that hard.

Anyone that knows how to do Normal Maps and change the shadow please help us that would be awesome. Yes we have fallowed all the tutorials nothing has helped.
Title: Re: Importing Models HELP!
Post by: JC#21 on October 11, 2014, 11:08:26 PM
For the shadows, export the model without textures, your model must be grey and don't forget to select flat shading.
Title: Re: Importing Models HELP!
Post by: Snappe on October 13, 2014, 03:56:24 PM
for normal maps you need to create a text file and rename it the same name as your colour map but with the extension .shd.

http://docs.piboso.com/wiki/index.php/Track_Creation_Rules#Shaders (http://docs.piboso.com/wiki/index.php/Track_Creation_Rules#Shaders)

Example:

bike.tga would need bike.shd, containing something like:


bump
{
map = normal_map.tga
}
specular
{       
shininess = 6
}
Title: Re: Importing Models HELP!
Post by: frankie on October 13, 2014, 10:02:02 PM
Quote from: Snappe on October 13, 2014, 03:56:24 PM
for normal maps you need to create a text file and rename it the same name as your colour map but with the extension .shd.

http://docs.piboso.com/wiki/index.php/Track_Creation_Rules#Shaders (http://docs.piboso.com/wiki/index.php/Track_Creation_Rules#Shaders)

Example:

bike.tga would need bike.shd, containing something like:


bump
{
map = normal_map.tga
}
specular
{       
shininess = 6
}


Okay now i did what u wrote here, but it comes out as this..again

(http://i61.tinypic.com/167sb5t.png)

When i dont do the normal map and shininess on it it doesnt have any problems in game
Title: Re: Importing Models HELP!
Post by: RiccoChicco on October 13, 2014, 10:56:07 PM
@Snappe & PiBoSo about Frankie :

Note that I exported his model directly with 3ds max 2010 exporter and I hadn't any problem whereas Frankie is using blender/fbx2edf. We were both using the same texture and .shd file.

Maybe something's wrong with fbx2edf?
Title: Re: Importing Models HELP!
Post by: JC#21 on October 13, 2014, 10:58:40 PM
Check your textures original and normal map. Delete the alpha channel.

In the shd file, increase value of shininess to 85 for example
Title: Re: Importing Models HELP!
Post by: Kermit on October 14, 2014, 01:05:13 AM
We used Blender and the fbx3edf and it comes out fine without norms but we have never tested with norms because we don't know how to make it work but if anyone could please help that would ne awesome Also Piboso we did try using that txt thing and it did not work but we could have did it wrong we will try again thanks for all the help
Title: Re: Importing Models HELP!
Post by: Snappe on October 14, 2014, 04:02:34 PM
Quote from: frankie on October 13, 2014, 10:02:02 PM
Okay now i did what u wrote here, but it comes out as this..again

When i dont do the normal map and shininess on it it doesnt have any problems in game

You're changing the normal_map.tga line to the actual name of your normal map, right?
Title: Re: Importing Models HELP!
Post by: m121c on October 14, 2014, 09:34:04 PM
If you are trying to use a model made for mx simulator you have to remember to re-invert the normal map as well. Remember the norm on sim is -X and -Y for whatever reason.
Title: Re: Importing Models HELP!
Post by: frankie on October 15, 2014, 08:16:27 PM
Quote from: Snappe on October 14, 2014, 04:02:34 PM
Quote from: frankie on October 13, 2014, 10:02:02 PM
Okay now i did what u wrote here, but it comes out as this..again

When i dont do the normal map and shininess on it it doesnt have any problems in game

You're changing the normal_map.tga line to the actual name of your normal map, right?

Yes i am






Quote from: m121c on October 14, 2014, 09:34:04 PM
If you are trying to use a model made for mx simulator you have to remember to re-invert the normal map as well. Remember the norm on sim is -X and -Y for whatever reason.

So i need to re-invert the normal map as it was when exported from blender?
Title: Re: Importing Models HELP!
Post by: m121c on October 16, 2014, 04:45:54 AM
Yes if you inverted them original you need to re-invert them. For normal maps to look good in MXS you need to flip the Red and Green channels, re-invert them for MxB.
Title: Re: Importing Models HELP!
Post by: frankie on October 16, 2014, 05:25:25 PM
Quote from: m121c on October 16, 2014, 04:45:54 AM
Yes if you inverted them original you need to re-invert them. For normal maps to look good in MXS you need to flip the Red and Green channels, re-invert them for MxB.
Alright i will try it thanks!
Title: Re: Importing Models HELP!
Post by: ChrisK on October 20, 2014, 08:03:32 PM
did u solve the problem frankie??? waiting for the husky :)