Frictional Games Forum (read-only)

Full Version: [Request] Adding picture to grunts face
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
The texture needs to be scaled according to the power of two, and should be a .dds textures, .tga might work aswell. THe engine does not read JPG or PNG.
(03-12-2012, 05:36 PM)Traggey Wrote: [ -> ]The texture needs to be scaled according to the power of two, and should be a .dds textures, .tga might work aswell. THe engine does not read JPG or PNG.
What does the power of two mean? And can I just save it as .dds/.tga or do you have to convert it in another way?

The power of two is basicly scaling, for example 32 x 32, 128 x 128, 256 x 256, 512 -- 1024 -- 2048. The list goes on. And just save it as dds or tga? I don't know what you mean, of course you save it as one of the following formats.
(03-12-2012, 06:07 PM)Traggey Wrote: [ -> ]The power of two is basicly scaling, for example 32 x 32, 128 x 128, 256 x 256, 512 -- 1024 -- 2048. The list goes on. And just save it as dds or tga? I don't know what you mean, of course you save it as one of the following formats.
I mean like, if you're using paint you just press "save as" and write PICTURE.dds

The engine does read PNG and JPG, you just need a material file that references these images.
(03-12-2012, 09:05 PM)Your Computer Wrote: [ -> ]The engine does read PNG and JPG, you just need a material file that references these images.
though .dds and .png files are prefered, right?
(03-12-2012, 10:43 PM)darkadders Wrote: [ -> ]though .dds and .png files are prefered, right?

DDS is the better choice due to mipmap support, but for already small images any supported image format would do.
Since you're obviously totally new to the Level Editor (considering you didn't even know what a billboard was) I'll walk you through what to do, since no one else is giving you the full process, but rather fragments of it...

1. Scale your image to the power of two (I usually go with 512x512)
2. Apply an alpha channel to the image and erase everything you don't want (so basically erase everything in the background/everything you don't want on the monster) then save it as a .png
3. Open up the Material Editor
4. Under type select "soliddiffuse", then check off "diffuse" and "alpha" under Texture Units
5. Click the "..." under Diffuse and find your image, then repeat this step, but instead find your image under Alpha instead of under Diffuse
6. Hit file and Save As, name it whatever you want and put it in the billboards folder, then put the original image of it in your billboards folder too
7. open up the Model Editor
8. Load the grunt model
9. Click the tab on the left that says "Billboards" and find your billboard
10. Select your billboard, on the right go to the tab that says "Billboard" and pick the billboard type "Fixed Axis"
11. Adjust the billboard and position it where you'd like it to show up in game
12. Select the joint in the head of the Grunt, then go into the "Attachments" tab
13. Click "Bi" then "Attach", click your billboard, and then hit done
14. Save it as something other than "servant_grunt" or you will overwrite your original file, maybe do "Servent_Grunt_Two"
15. Place it in game and it should work fine

Hope this helps.
(03-12-2012, 11:54 PM)kman Wrote: [ -> ]Since you're obviously totally new to the Level Editor (considering you didn't even know what a billboard was) I'll walk you through what to do, since no one else is giving you the full process, but rather fragments of it...

1. Scale your image to the power of two (I usually go with 512x512)
2. Apply an alpha channel to the image and erase everything you don't want (so basically erase everything in the background/everything you don't want on the monster) then save it as a .png
3. Open up the Material Editor
4. Under type select "soliddiffuse", then check off "diffuse" and "alpha" under Texture Units
5. Click the "..." under Diffuse and find your image, then repeat this step, but instead find your image under Alpha instead of under Diffuse
6. Hit file and Save As, name it whatever you want and put it in the billboards folder, then put the original image of it in your billboards folder too
7. open up the Model Editor
8. Load the grunt model
9. Click the tab on the left that says "Billboards" and find your billboard
10. Select your billboard, on the right go to the tab that says "Billboard" and pick the billboard type "Fixed Axis"
11. Adjust the billboard and position it where you'd like it to show up in game
12. Select the joint in the head of the Grunt, then go into the "Attachments" tab
13. Click "Bi" then "Attach", click your billboard, and then hit done
14. Save it as something other than "servant_grunt" or you will overwrite your original file, maybe do "Servent_Grunt_Two"
15. Place it in game and it should work fine

Hope this helps.
I'll try this, thank you. And the leveleditor has nothing to do with it so your statement was false.

(03-13-2012, 09:42 AM)LulleBulle Wrote: [ -> ]I'll try this, thank you. And the leveleditor has nothing to do with it so your statement was false.
Billboards are a big part of the game. The level editor is the main tool to use billboards. Seeing how you do not know what one is, one might think that you do no know alot about the level editor.

Pages: 1 2 3