Product Chat / [SOLVED] How to Import Decals

Author
Message
Protag
5
Years of Service
User Offline
Joined: 1st Nov 2019
Location:
Posted: 1st Feb 2020 01:00
im trying to add guide signs to my game as writing on the walls but i dont know how to import decals into the game. or even how to write on walls. i was told i could use blender to apply a texture to a flat plane but im not all that proficient with blender and even if i was, how would i export it to the correct file type that gameguru uses?

The author of this post has marked a post as an answer.

Go to answer
PM
OldFlak
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 27th Jan 2015
Location: Tasmania Australia
Posted: 1st Feb 2020 05:32
Hey there Protag
With sign decals use a plane as you described. Export as .x (Blender 2.79)
If you have more than one sign, I would use the same plane unwrapped to different parts of the texture. That way you can have multiple signs using the same texture.

If you want the signs to look like writing on the wall, then the texture will need to have an alpha channel so it is transparent where there is no writing, save it using dtx5 and put transparency = 6 in the FPE.

OldFlak....
aka Reliquia
i7-4790 @ 3.2GHz. 8GB Ram. NVidia GeForce GTX 1060 6GB. M1: Acer 31.5" @1920x1080 M2: Samsung 31.5" @ 1920 x 1080. M3: Acer 24" @ 1920 x 1080. OS: Windows 10 Pro 64-bit Insider.
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 1st Feb 2020 08:51
Edit one of the stock decals, you can just edit the image/texture then and copy the exiting .fpe and paste with a new name and make it point to the new texture
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Protag
5
Years of Service
User Offline
Joined: 1st Nov 2019
Location:
Posted: 1st Feb 2020 16:38
@smallg this ALMOST worked but im not sure what you mean by "point at the new texture". when i try to add the new edited decal in-game, its just invisible. what do i have to type into the .lua script?
PM
Wolf
Forum Support
17
Years of Service
User Offline
Joined: 8th Nov 2007
Location: Luxemburg
Posted: 1st Feb 2020 16:47
For entities like this you never have to do anything in LUA

Quote: ""point at the new texture""


Copy your texture into the same folder as the mesh and fpe. Open the .fpe and insert the name of your texture. Make sure your texture is in .dds format for best results.



-Wolf
Protag
5
Years of Service
User Offline
Joined: 1st Nov 2019
Location:
Posted: 1st Feb 2020 17:26
okay i have an understanding of what i need to do but i dont think i have a proper program that can edit .dds files. i tried using gimp but gimp converted them into gimp files
PM
Wolf
Forum Support
17
Years of Service
User Offline
Joined: 8th Nov 2007
Location: Luxemburg
Posted: 1st Feb 2020 18:33
Use "save as". If gimp does not support .dds you can grab the free tool "paint.net".
Might be daunting at first, but once you get the hang of it you can make entire collections of overlays (decals) in minutes
Protag
5
Years of Service
User Offline
Joined: 1st Nov 2019
Location:
Posted: 1st Feb 2020 18:35
gimp doesnt support .dds by default but i managed to install a plugin that allows for .dds support but i cant save it as a dds file
PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 1st Feb 2020 18:48
Paint.net does if it helps .. Its Free
https://www.getpaint.net/
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
Protag
5
Years of Service
User Offline
Joined: 1st Nov 2019
Location:
Posted: 1st Feb 2020 18:58
alright so, after using paint.net, it worked. i got the decal in the game. i still need to calculate the scale and size it needs to be so the player can read it. the only issue i have left is that the decal is automatically animated, im assuming because i copy/pasted the .fpe and .dds file of an animated decal already in the folder. what editting do i need to make to the script so it becomes a static, readable decal?
PM
Wolf
Forum Support
17
Years of Service
User Offline
Joined: 8th Nov 2007
Location: Luxemburg
Posted: 1st Feb 2020 19:19
Oh yes, every engine has a bit of a different nomenclature. Decals in GG are animated sprites. What you aim to create is an -> overlay.
Nevermind calculating the scale. You can scale it in engine using the widget.

Don't use the animated decal as a template. Use what I attached.

Attachments

Login to view attachments
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 1st Feb 2020 19:26
This post has been marked by the post author as the answer.
Edit decal fpe file and line below:
effect = effectbank\reloaded\decal_animate4.fx

Should looks like:
effect = effectbank\reloaded\entity_basic.fx
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
Protag
5
Years of Service
User Offline
Joined: 1st Nov 2019
Location:
Posted: 1st Feb 2020 19:33
and there we go. what 3com said was the last thing i needed to do. i now have a consistent way to add static decals as signs to the game.
PM
Wolf
Forum Support
17
Years of Service
User Offline
Joined: 8th Nov 2007
Location: Luxemburg
Posted: 1st Feb 2020 19:39
That works too! Glad you got it sorted.
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 1st Feb 2020 19:56
Glad to help.
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 2nd Feb 2020 09:32
In gimp save and save as are only project save, to save them as different formats you use file/export and the change the name so it says .DDS . PNG etc.

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Primary Laptop:
i5, NV1050 4GB, 8GB memory, 1x 1TB HDD, Win10.

Secondary Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.

Login to post a reply

Server time is: 2024-11-23 19:36:07
Your offset time is: 2024-11-23 19:36:07