Feral Heart

Help & Guidance => Game Help => Topic started by: ShadowMT13 on January 06, 2018, 07:53:31 am

Title: Help with converting .obj to .mesh OGRE IS NOT WORKING.
Post by: ShadowMT13 on January 06, 2018, 07:53:31 am
I wish there was a way to simply export a thing I made in Blender to .mesh with out all this other stuff. Someone I met told me about something called DeleD but when I try searching it I get no results from google and what i do get is no where near what I wanted. Please help, is there any other way to convert .obj files to .mesh or must i use this stupid Ogre stuff, because ogre is not working anyways is this really the only thing I can use to make a mesh for feral heart? Please help I am sick and tired of all this non-sense when i just want to make a house or something for feralheart to use in my maps and share with others so they can also use it.
Title: Re: Help with converting .obj to .mesh OGRE IS NOT WORKING.
Post by: Kuri on January 06, 2018, 08:42:24 am
lol ok try this bad of tricks, i don't think it even has to be on drive C. From memory i just chucked a mesh exported at the command line via drag & drop, came out as XML, threw it at it again, came out as .mesh, job job, worked a treat.
http://www.mediafire.com/file/i8ccmilduap1cc8/OgreCommandLineTools_1.7.2.zip (http://www.mediafire.com/file/i8ccmilduap1cc8/OgreCommandLineTools_1.7.2.zip)
Title: Re: Help with converting .obj to .mesh OGRE IS NOT WORKING.
Post by: ShadowMT13 on January 06, 2018, 09:41:38 am
I am no coder, it would be helpful to know just what I have to do to make this do what I want it to do... only code I know how to do is making material files for already made meshes...
Title: Re: Help with converting .obj to .mesh OGRE IS NOT WORKING.
Post by: ShadowMT13 on January 06, 2018, 09:53:55 am
This is what I get when I try using the tools of the ogre thing.

04:53:15: Creating resource group General
04:53:15: Creating resource group Internal
04:53:15: Creating resource group Autodetect
04:53:15: Registering ResourceManager for type Mesh
04:53:15: Registering ResourceManager for type Material
04:53:15: Registering ResourceManager for type Skeleton
04:53:15: Unregistering ResourceManager for type Skeleton
04:53:15: Unregistering ResourceManager for type Material
04:53:15: Unregistering ResourceManager for type Mesh
Title: Re: Help with converting .obj to .mesh OGRE IS NOT WORKING.
Post by: FlyingGrass on January 06, 2018, 01:10:23 pm
Drag the file onto the Ogre converter while it's closed(Drop the file right on top of the converter's icon), the converter will convert any file that's dropped onto the icon.
Title: Re: Help with converting .obj to .mesh OGRE IS NOT WORKING.
Post by: Kynvuu on January 06, 2018, 01:29:46 pm
Hi there! Bloo has written out a lovely tutorial on how to convert things using DelEd. Its very easy and no coding is required! I use this method myself and it takes only a few minutes to convert things.

https://feral-heart.com/smf/index.php?topic=61246.msg845607#msg845607
Title: Re: Help with converting .obj to .mesh OGRE IS NOT WORKING.
Post by: ShadowMT13 on January 06, 2018, 10:17:21 pm
Hi there! Bloo has written out a lovely tutorial on how to convert things using DelEd. Its very easy and no coding is required! I use this method myself and it takes only a few minutes to convert things.

https://feral-heart.com/smf/index.php?topic=61246.msg845607#msg845607
Thank you, but I am having trouble with things i export from blender, DeleD can't seem to export it in mesh form even though I have the OBJ importer and the Multiverse Exporter that supports .mesh conversion.
Title: Re: Help with converting .obj to .mesh OGRE IS NOT WORKING.
Post by: Kynvuu on January 07, 2018, 01:42:55 pm
Hi there! Bloo has written out a lovely tutorial on how to convert things using DelEd. Its very easy and no coding is required! I use this method myself and it takes only a few minutes to convert things.

https://feral-heart.com/smf/index.php?topic=61246.msg845607#msg845607
Thank you, but I am having trouble with things i export from blender, DeleD can't seem to export it in mesh form even though I have the OBJ importer and the Multiverse Exporter that supports .mesh conversion.

When you export from blender, are you exporting in a .blend format or a .obj format? Because Deled should work smoothly if you have an .obj file to convert. I wouldn't use the Multiverse Exporter since it only works for static meshes...instead I would use the ogre exporter plugin on Deled as its specific to .obj ---> .mesh. The Ogre Exporter is also specific in that it will give you everything you need to put the mesh into an Ogre specific game, such as Feral Heart.
Title: Re: Help with converting .obj to .mesh OGRE IS NOT WORKING.
Post by: ShadowMT13 on January 07, 2018, 09:14:50 pm
Hi there! Bloo has written out a lovely tutorial on how to convert things using DelEd. Its very easy and no coding is required! I use this method myself and it takes only a few minutes to convert things.

https://feral-heart.com/smf/index.php?topic=61246.msg845607#msg845607
Thank you, but I am having trouble with things i export from blender, DeleD can't seem to export it in mesh form even though I have the OBJ importer and the Multiverse Exporter that supports .mesh conversion.

When you export from blender, are you exporting in a .blend format or a .obj format? Because Deled should work smoothly if you have an .obj file to convert. I wouldn't use the Multiverse Exporter since it only works for static meshes...instead I would use the ogre exporter plugin on Deled as its specific to .obj ---> .mesh. The Ogre Exporter is also specific in that it will give you everything you need to put the mesh into an Ogre specific game, such as Feral Heart.

I actually tried both, first i tried the .obj format which is what would of been the format I would use, but upon trying to export it as .mesh DeleD said "Could not export Computer/User/Destination/Object Name" something like that. Sometimes the mesh I made would not even open in DeleD giving me an error message saying it failed to import something like that.
Title: Re: Help with converting .obj to .mesh OGRE IS NOT WORKING.
Post by: Kynvuu on January 08, 2018, 01:07:02 am
Did you follow the tutorial that I provided before? If you follow that everything should work smoothly.  You have to have .obj importer installed in order to open the .obj in Deled.
Title: Re: Help with converting .obj to .mesh OGRE IS NOT WORKING.
Post by: ShadowMT13 on January 08, 2018, 06:05:23 am
Did you follow the tutorial that I provided before? If you follow that everything should work smoothly.  You have to have .obj importer installed in order to open the .obj in Deled.
I appreciate the tutorial but it does not help much since I am not doing WoW meshes I am making my own, I tried following the steps that would apply to me though no success, and yes I made sure I had the OBJ importer and was using it.
Title: Re: Help with converting .obj to .mesh OGRE IS NOT WORKING.
Post by: Kynvuu on January 08, 2018, 03:06:03 pm
Hmm it should not matter if you are not using Wow meshes, as I convert my own meshes made in sculptris using the same method. So let's go step by step and see where its giving ya an error.

When you export the .blend to a .obj in blender, it should give you the mesh output as a .obj, correct? If you mesh has a texture, you should also be sure to export this as a .png (https://blender.stackexchange.com/questions/23878/saving-texture-painted-material-externally)

Now if you open Deled, you should go to the Plugins menu and use the Wavefront OBJ importer and load in the .obj file that blender had given you. Ignore the texture for now, and make sure in the Scale is set to 10.

Now if that worked, go back to the Plugin menu and use Ogre Mesh Exporter. The box will already have a file name, but you have to type .MESH at the end otherwise it won't work. Hit okay and then it should export.

Then it will output a .mesh and a .material folder. You need to move both of these files as well as the .png texture into your FeralHeart>>Media>>Objects>>My_Objects folder. Then you have to open up the material file and type the exact name of the .png in after the space in the code that says "texture" and make sure you save it. From there, the object should appear in the Feral Heart object maker when you type in the name of the mesh and hit add new.

If this does not work for you, please pinpoint the point along these steps where you receive an error so I can try and figure out what is not working correctly.
Title: Re: Help with converting .obj to .mesh OGRE IS NOT WORKING.
Post by: ShadowMT13 on January 09, 2018, 02:32:00 am
Hmm it should not matter if you are not using Wow meshes, as I convert my own meshes made in sculptris using the same method. So let's go step by step and see where its giving ya an error.

When you export the .blend to a .obj in blender, it should give you the mesh output as a .obj, correct? If you mesh has a texture, you should also be sure to export this as a .png (https://blender.stackexchange.com/questions/23878/saving-texture-painted-material-externally)

Now if you open Deled, you should go to the Plugins menu and use the Wavefront OBJ importer and load in the .obj file that blender had given you. Ignore the texture for now, and make sure in the Scale is set to 10.

Now if that worked, go back to the Plugin menu and use Ogre Mesh Exporter. The box will already have a file name, but you have to type .MESH at the end otherwise it won't work. Hit okay and then it should export.

Then it will output a .mesh and a .material folder. You need to move both of these files as well as the .png texture into your FeralHeart>>Media>>Objects>>My_Objects folder. Then you have to open up the material file and type the exact name of the .png in after the space in the code that says "texture" and make sure you save it. From there, the object should appear in the Feral Heart object maker when you type in the name of the mesh and hit add new.

If this does not work for you, please pinpoint the point along these steps where you receive an error so I can try and figure out what is not working correctly.

Okay thanks, will do, I will follow the steps you stated. Though I do know it would not matter if it was a WoW mesh, I just could not following along easily because it was explaining something a bit different then I was trying to do. I will let you know what happens after I follow your steps.
Title: Re: Help with converting .obj to .mesh OGRE IS NOT WORKING.
Post by: ShadowMT13 on January 10, 2018, 10:11:49 am
Hmm it should not matter if you are not using Wow meshes, as I convert my own meshes made in sculptris using the same method. So let's go step by step and see where its giving ya an error.

When you export the .blend to a .obj in blender, it should give you the mesh output as a .obj, correct? If you mesh has a texture, you should also be sure to export this as a .png (https://blender.stackexchange.com/questions/23878/saving-texture-painted-material-externally)

Now if you open Deled, you should go to the Plugins menu and use the Wavefront OBJ importer and load in the .obj file that blender had given you. Ignore the texture for now, and make sure in the Scale is set to 10.

Now if that worked, go back to the Plugin menu and use Ogre Mesh Exporter. The box will already have a file name, but you have to type .MESH at the end otherwise it won't work. Hit okay and then it should export.

Then it will output a .mesh and a .material folder. You need to move both of these files as well as the .png texture into your FeralHeart>>Media>>Objects>>My_Objects folder. Then you have to open up the material file and type the exact name of the .png in after the space in the code that says "texture" and make sure you save it. From there, the object should appear in the Feral Heart object maker when you type in the name of the mesh and hit add new.

If this does not work for you, please pinpoint the point along these steps where you receive an error so I can try and figure out what is not working correctly.

Okay I am happy to say I can get my meshes in the game now and they don't crash it or anything, but now remains another issues. I tested the process using the basic cube modal that blender starts up with and certain textures are not displaying properly, it all just looks one color and not like the texture I have chosen, I have tried multiple textures I have to see if any may work right but none do. Can you tell me what to do about this problem? I am trying not to get stressed since, being able to get meshes in the game (Textured or not) is a huge step forward from where I was before you helped me, but problems still remain, I need to get textures to show up properly on the meshes.
Title: Re: Help with converting .obj to .mesh OGRE IS NOT WORKING.
Post by: Kynvuu on January 10, 2018, 05:16:16 pm
Glad that you were able to get them into the game! Can you explain to me how you texture your objects? Do you paint them in the blender, or texture them by another method? If not, I would recommend using this method and then exporting the texture map as a .png. Here's a video tutorial on how to paint within blender https://www.youtube.com/watch?v=LcCQKuWPhXk

If you already have a painted texture that you exported as an image format, such as .png or .jpg, let me know.
Title: Re: Help with converting .obj to .mesh OGRE IS NOT WORKING.
Post by: ShadowMT13 on January 11, 2018, 03:32:19 am
Glad that you were able to get them into the game! Can you explain to me how you texture your objects? Do you paint them in the blender, or texture them by another method? If not, I would recommend using this method and then exporting the texture map as a .png. Here's a video tutorial on how to paint within blender https://www.youtube.com/watch?v=LcCQKuWPhXk

If you already have a painted texture that you exported as an image format, such as .png or .jpg, let me know.
I use Blender Nodes and then tried using FeralHeart default textures like the oak leaf and oak bark, when I tried to bring them to the game the only one that seemed to work right was the oak leaf texture, the others where just showing the color, not the image, I followed some video tutorials on youtube to figure out how to do it.
Title: Re: Help with converting .obj to .mesh OGRE IS NOT WORKING.
Post by: ShadowMT13 on January 11, 2018, 03:50:31 am
Also I have another issue, my mesh did not come out properly when I took it to DeleD, some of the things on it are messed up.

What it is suppose to look like in blender:
(https://orig00.deviantart.net/2515/f/2018/010/e/3/capture2_by_kurainekomt13-dbzm2j5.png)

What it come out as when importing it to DeleD and exporting to .mesh:
(https://orig00.deviantart.net/f3aa/f/2018/010/e/4/capture_by_kurainekomt13-dbzm2jf.png)

As you can see some of the holes I made in it did not come out when importing and exporting properly...
Title: Re: Help with converting .obj to .mesh OGRE IS NOT WORKING.
Post by: Kynvuu on January 11, 2018, 03:18:21 pm
I'm not too familiar with Blender Nodes, but if possible, try to export the texture map as a .png. This will give you the UV map of the texture which is necessary for Feral Heart use.

As for the mesh, I'm not quite too sure why it wouldn't maintain the same properties while converting. It could be possible that you have too many vertices in the original blender mesh and DelEd does not recognize all of them. Perhaps try to merge some vertices together in blender and try re-converting.
Title: Re: Help with converting .obj to .mesh OGRE IS NOT WORKING.
Post by: ShadowMT13 on January 12, 2018, 03:18:33 am
I'm not too familiar with Blender Nodes, but if possible, try to export the texture map as a .png. This will give you the UV map of the texture which is necessary for Feral Heart use.

As for the mesh, I'm not quite too sure why it wouldn't maintain the same properties while converting. It could be possible that you have too many vertices in the original blender mesh and DelEd does not recognize all of them. Perhaps try to merge some vertices together in blender and try re-converting.

I connected ever bit of the object making the whole thing one object. Any advice on how to connect stuff that I may not of?
Title: Re: Help with converting .obj to .mesh OGRE IS NOT WORKING.
Post by: Kynvuu on January 12, 2018, 01:54:42 pm
I'm not too sure I understand your question. If you have already merged the most of the vertices, I would try to re-convert the .obj through DelED again and see if the mesh comes out as it was intended to appear. I wouldn't be concerned if you missed merging some vertices, as long as you decreased the amount you originally had.
Title: Re: Help with converting .obj to .mesh OGRE IS NOT WORKING.
Post by: Bloo. on January 12, 2018, 08:20:58 pm
Sometimes there are hidden planes in blender that you don't see until the .obj file is loaded into DelED. Make sure when you have blender open that there none of those hidden triangles or planes on your doorway and window, if there are make sure you right click and delete them.

DelED also has a hard time loading in files made in blender if the original blender model had too many vertices or triangles, so it attempts to condense them which creates a sudden blockiness to your model once it's loaded in.