3rd Party Models/Media Chat / Exporting Models from Blender to Game Guru

Author
Message
CorzaX24
8
Years of Service
User Offline
Joined: 22nd Dec 2015
Location: Melbourne, VIC
Posted: 3rd Jan 2016 05:37
Hello all,

A bit of background information to get started - Have been using GG for a few weeks now, and now I'm at the point where I want to add my own made models into GG. I have been in and out of almost the entire forum, and am still stuck.

My understanding is: (Probably wrong, hence this thread)

-Each section of model goes through the UV Smart Project, image saved and Export UV layout
-Edit each UV Layout via GIMP (Adding colour or whatever) and export as "Name_D.dds" (where name is whatever you're naming this model part)
-Model to be exported from Blender as .X format (After research, I am using Blender V2.69 )
-Bring all files together in a folder
-Add/edit .fpe file to match model - If there's more than 1 .dds file, how do i enter this in the.fpe? Leaving it blank doesn't work either.
-Import model in GG

*And yes, every single file has the same name, spelt correctly and all.

For me, the model is black and when i load the test game, the ground is black.

Where am I going wrong?

Thank for any and all support!

Attachments

Login to view attachments
PM
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 3rd Jan 2016 09:46
Usually the reason objects come out black in GameGuru is because the object textures need to be stored in the same directory as the object and the "texturefilename" within the .X file must point to the same directory as the object within GameGuru.
For multiple textures, in the FPE just make sure the TEXTURED= is left blank.
Hope this helps.
BOTR
Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++, SQL, PL-SQL, JavaScript, HTML, Darkbasic Pro (still love this language), Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; LG TFT monitor (widescreen). Wanting a new PC at some point.
Interests: Drumming, Saxophone, Art, Theatre, Music.
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 3rd Jan 2016 20:56 Edited at: 3rd Jan 2016 21:00
There's two types of .x file we can import into GG, the first has textures that are referenced externally and the second references them internally.

First Type (externally referenced textures):

If your model is called "ball", you should have the following files:

ball.x (this is your model file)
ball.bmp (this is your thumbnail, 64x64)
ball.fpe (this is your models control file)
ball_D.dds (this is your diffuse texture)
ball_N.dds (this is your normal texture)
ball_S.dds (this is your specular texture)

1. Place all of your files into the same folder in the entitybank
2. Open up your fpe
3. Change the desc line to desc = ball
4. Change the model line to model = ball.x
5. Change the textured line to textured = ball_D.dds
6. Close and save

Your model should now work in gameguru.

Second Type (internally referenced):

If your model is called "ball", you should have the following files:

ball.x (this is your model file)
ball.bmp (this is your thumbnail, 64x64)
ball.fpe (this is your models control file)
and a bunch of png texture files

1. Make sure all of your files are in the same folder, don't put the textures in their own folder
2. Open your .x file using notepad
3. Press ctrl+f
4. Type in texturedf and hit find next, hit find next a second time (the first one is usually blank so you need to find the second one)
5. You will see a URL to the texture, comething like "C:\\blah\blah\nameoftexture.png", highlight and copy everything in the URL before the texture
6. Go to the edit menu and select replace
7. In the "find what" field paste what you just copied
8. leaving the "replace with" field blank click the replace all button, basically what you are doing is making it so the line only has the name of the texture in it, so if the texture line says "C::\\my stuff\textures\ball.png" you want it to be changed to "ball.png".
9. Save and close notepad
10. Open your fpe file in notepad
11. Open up your fpe
12. Change the desc line to desc = ball
13. Change the model line to model = ball.x
14. Leave the textured line blank
15. Close and save

It should now work in GG.
CorzaX24
8
Years of Service
User Offline
Joined: 22nd Dec 2015
Location: Melbourne, VIC
Posted: 8th Jan 2016 11:52
Thanks heaps for the replies guys! Much appreciated

I will give both procedures a go, and let you know how I go.

*On another note, I did manage to do this a different way:

Create model in Blender, UV Wrap and load texture(s) to model, Export model in .X format, Load GG and File -> Import Model, adjust settings as required, load texture and save. The model is now in the User folder within entities. This creates the .fpe and .dbo files.

This method works, to an extent. If the model has more than one texture, I can't load more than 1 texture in the model importer in GG?

Thoughts?

Thanks
PM
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 8th Jan 2016 13:58
The model importer is only really any good for single texture items or creating the fpe for you custom models.

What you need to do to get the multiple textures models working is what I posted above. Depending on what type of .x file you have.


Login to post a reply

Server time is: 2024-11-22 14:15:40
Your offset time is: 2024-11-22 14:15:40