Feral Heart

Help & Guidance => Game Help => Topic started by: bunnylions on June 13, 2017, 08:22:59 pm

Title: Text on signs?
Post by: bunnylions on June 13, 2017, 08:22:59 pm
I'm making a town map and would like to put "WELCOME TO TUNDRA TOWN" on a sign, so it feels more welcoming. How do I do it?
Title: Re: Text on signs?
Post by: Kuri on June 13, 2017, 09:13:06 pm
So draw a small picture (128x128 pixels is ok, 256x256 has better detail) and put in folder "objects/my_objects"   Make a material file like this
(https://i.imgur.com/NYEBo60.jpg)
Recycling another material file (open with notepad or similar) and renaming it (save as a .material file not a notepad ect file) makes it easy.
Open object maker, Mesh tab, type "flatplane.mesh" without the " symbols and press "add new".
Should find a tiny little postcard thing appears, enter the "MyMaterialNameHere" name (whatever you called it, probably "welcometotundratown" in your case) in the material text thingy in the object creator and it should change to what you drew in the small picture, scale it to suit your tastes.

You may need to distribute the material file with the map to people who visit it, i haven't quite figured out how to package everything into one neat little file yet.
Title: Re: Text on signs?
Post by: Kynvuu on June 14, 2017, 12:22:10 am
Moving this over to game help c:
Title: Re: Text on signs?
Post by: bunnylions on June 14, 2017, 12:35:30 am
So draw a small picture (128x128 pixels is ok, 256x256 has better detail) and put in folder "objects/my_objects"   Make a material file like this
(https://i.imgur.com/NYEBo60.jpg)
Recycling another material file (open with notepad or similar) and renaming it (save as a .material file not a notepad ect file) makes it easy.
Open object maker, Mesh tab, type "flatplane.mesh" without the " symbols and press "add new".
Should find a tiny little postcard thing appears, enter the "MyMaterialNameHere" name (whatever you called it, probably "welcometotundratown" in your case) in the material text thingy in the object creator and it should change to what you drew in the small picture, scale it to suit your tastes.

You may need to distribute the material file with the map to people who visit it, i haven't quite figured out how to package everything into one neat little file yet.
What kind of picture?
Title: Re: Text on signs?
Post by: Bloo. on June 14, 2017, 01:30:29 am
You could also download a pre-made sign mesh and edit the texture file in GIMP or any other art program!
Title: Re: Text on signs?
Post by: bunnylions on June 14, 2017, 02:00:31 am
You could also download a pre-made sign mesh and edit the texture file in GIMP or any other art program!
I am unable to download GIMP due to the evil monster called password protection.
Title: Re: Text on signs?
Post by: Bloo. on June 14, 2017, 05:06:37 am
You could also download a pre-made sign mesh and edit the texture file in GIMP or any other art program!
I am unable to download GIMP due to the evil monster called password protection.

No problem! You can edit the texture in any art program, even MS Paint!
Title: Re: Text on signs?
Post by: Kuri on June 14, 2017, 09:53:40 am
So draw a small picture (128x128 pixels is ok, 256x256 has better detail) and put in folder "objects/my_objects"   Make a material file like this
(https://i.imgur.com/NYEBo60.jpg)
Recycling another material file (open with notepad or similar) and renaming it (save as a .material file not a notepad ect file) makes it easy.
Open object maker, Mesh tab, type "flatplane.mesh" without the " symbols and press "add new".
Should find a tiny little postcard thing appears, enter the "MyMaterialNameHere" name (whatever you called it, probably "welcometotundratown" in your case) in the material text thingy in the object creator and it should change to what you drew in the small picture, scale it to suit your tastes.

You may need to distribute the material file with the map to people who visit it, i haven't quite figured out how to package everything into one neat little file yet.
What kind of picture?




Oh, like...
(http://i.imgur.com/Ajnb9W6.jpg)
Start with those as a base, you may have seen them in lonelycave?
Title: Re: Text on signs?
Post by: Bawfle on June 14, 2017, 05:13:10 pm
Here's a tutorial on how to make text for a sign, as well as some things provided which you will need in order to create what you're looking to create.



What you will need.
You will need the following files/documents, which you can download here. (http://www.mediafire.com/file/4f621nwsvii2zt4/Floating+Text+Object.zip) The download contains; textfield.material, textfield.mesh and ENTERIMAGENAMEHERE.png, as you can see highlighted in the image below.

(http://i.imgur.com/4dABvNU.png)



Step 1.
Download all the resources in the download link I provided to you, and place all the files/documents that are in that download folder into Local Disk \\ Feral Heart \\ Media \\ Objects \\ My Objects.

Step 2.
Once you have placed the resources where they should be, launch the Feral Heart game and go to Creative Den \\ Object Maker.

Step 3.
Load the Rock object, which can be found in Group \\ Default then Object \\ Rock. Be sure to keep the rock highlighted as shown by either pressing the bab key on your keyboard, or by clicking on the object itself.

(http://i.imgur.com/auJJgTU.jpg)

Step 4.
Once the above step is complete, select the 'Mesh' tab and rename the text in the Mesh box/field from rock.mesh to textfield.mesh, and then rename the text in the Material box/field from rockMat to textfieldMat then click on the 'Update' button afterwards, as shown below.

(http://i.imgur.com/WGvgJIZ.png)    (http://i.imgur.com/vZeExeM.png)

Step 5.
Once you have hit that update button, you should succesfully be able to see this (front and back examples):

(http://i.imgur.com/Jq6aaiC.jpg)

(http://i.imgur.com/8UQLJFw.jpg)

If the image shows a screenshot of a character, all you need to do is rename the Material again in the box/field in the Mesh tab in order for the text to show correctly. The mesh itself will look small at first, so all you'll need to do is re-size it as I have done in the images provided above.



What if I don't want things named as 'textfield'?
If you don't want things named as textfield, then all you need to do is rename the following that are located in Local Disk \\ Feral Heart \\ Media \\ Objects \\ My Objects:

‣  textfield.mesh This is what is used as a base for the text, also known as the object itself.
‣  textfield.material This is the name of the notepad/notepad++ document which holds the coding required for the object/mesh.
‣  Open up textfield.material in notepad or notepad++ and rename the following highlighted to something else.

Quote
material textfieldMat This what will be typed into the Material box/field in Object Maker.
{
   transparency_casts_shadows off
   receive_shadows off
   technique
   {
      pass
      {
         //lighting off
         cull_hardware none
         cull_software none
         scene_blend alpha_blend
         alpha_rejection greater_equal 199
         
         texture_unit
         {
            texture ENTERIMAGENAMEHERE.png This is the image/text that will show on the mesh/object.
         }
      }
   }
}

What if I want to make more text like this?
If you're wanting to make more, just open up textfield.material in notepad, or whatever you may have renamed the textfield.material to. Once you have opened it up, all you need to do is copy the first lot of coding, then paste it under the other, or on top. Either should work, as long as you rename the new coding a littl as shown below:

Quote
material textfieldMat
{
   transparency_casts_shadows off
   receive_shadows off
   technique
   {
      pass
      {
         //lighting off
         cull_hardware none
         cull_software none
         scene_blend alpha_blend
         alpha_rejection greater_equal 199
         
         texture_unit
         {
            texture ENTERIMAGENAMEHERE.png
         }
      }
   }
}
material textfieldMat2
{
   transparency_casts_shadows off
   receive_shadows off
   technique
   {
      pass
      {
         //lighting off
         cull_hardware none
         cull_software none
         scene_blend alpha_blend
         alpha_rejection greater_equal 199
         
         texture_unit
         {
            texture ENTERIMAGENAMEHERE2.png
         }
      }
   }
}

Once you've done this, be sure to save. Then just follow the steps that were provided above with the new information provided, and you should see this:

(http://i.imgur.com/OJt34Bm.jpg)

Okay, cool. So how do I change the text?
Easiest way is to open a new canvas on either GIMP, Paint Tool SAI or PhotoShop. Though, I recommend GIMP or PhotoShop as they both have text and fonts. If you want to use Paint Tool SAI, let me know and I'll tell you the best way to use it for text. You want to open the new canvas with the size of 512x512px. Alternatively, you could open up the image in either GIMP or PhotoShop and just erase what's already there, then just use your own text by using the text/font tool. I'm sure you can change the size of your canvas, if you have a lot to write, as it will come out in better quality. However, this is just an example, so for now just use 512x512px unless you absolutely need to change the size.



I guess that's it for now? If you need further help in understanding, or help in general, just ask and either I or someone else will have an answer or solution to provide. Please keep note that it is always recommended to rename your .mesh, .material, Mat (located in the .material) and image to something unique. If you don't, then it is likely that your meshes, materials or images/textures will get muddled up with other people's as they would be named the same.
Title: Re: Text on signs?
Post by: bunnylions on June 15, 2017, 10:06:07 pm
So draw a small picture (128x128 pixels is ok, 256x256 has better detail) and put in folder "objects/my_objects"   Make a material file like this
(https://i.imgur.com/NYEBo60.jpg)
Recycling another material file (open with notepad or similar) and renaming it (save as a .material file not a notepad ect file) makes it easy.
Open object maker, Mesh tab, type "flatplane.mesh" without the " symbols and press "add new".
Should find a tiny little postcard thing appears, enter the "MyMaterialNameHere" name (whatever you called it, probably "welcometotundratown" in your case) in the material text thingy in the object creator and it should change to what you drew in the small picture, scale it to suit your tastes.

You may need to distribute the material file with the map to people who visit it, i haven't quite figured out how to package everything into one neat little file yet.
What kind of picture?




Oh, like...
(http://i.imgur.com/Ajnb9W6.jpg)
Start with those as a base, you may have seen them in lonelycave?

Well, I can't do transparency. There's a thing called password protection.
Title: Re: Text on signs?
Post by: Kuri on June 15, 2017, 11:45:41 pm
Transparency is only a problem if you want the wooden part of the sign showing.  If you did want the wood you could probably take a picture of the sign and write over it in MS paint or similar (probably don't need to overcome passwords for that.)
Title: Re: Text on signs?
Post by: bunnylions on June 16, 2017, 12:00:37 am
Transparency is only a problem if you want the wooden part of the sign showing.  If you did want the wood you could probably take a picture of the sign and write over it in MS paint or similar (probably don't need to overcome passwords for that.)
I've actually done that.