User Decals - A Tutorial On How To Make .SVG (Request in separate thread)

  • Thread starter daan
  • 1,460 comments
  • 349,227 views
That's impressive, how does it render to svg? If you're happy to upload it here I could look at the code. I'd guess multiple paths, but I don't see obvious edges.

Sorry, only just clocked you'd asked me this.

Attached the file.

It is multiple paths, in Corel, creating these paths and applying the suitable colour is a couple of clicks.
 

Attachments

  • Untitled-6.svg
    8.6 KB · Views: 3
Question about saving a SVG file. Does it matter how you save the file when you are finished? I was told that if I would save the file as a OPTIMIZED SVG that it would be smaller in file size than if I save it as a PLAIN SVG file. Is this right? I've always just saved it s a plain svg file and if the file size was to large I would then go to the SVGOMG website and make it smaller so I would be able to upload it. I'm having some trouble with some of my decals getting them under the 15kb limit so thats why I asking if there is another way to save the svg file to make it smaller so you can them upload it.

garystevens64
 
If it says svg not supported that's because the file is to large. Some even show as 15kbs but they are still actually too large just not read correctly by the program. If a file is bang on 15KBs that's to large, the SVGs have to actually be 14.9kbs and under to get on the PS servers .

Inkscape is all I ever use and do many different gradients on , as long as you save as a optimised svg and then run it through Vecta.nano no matter how small the file is it will keep it's gradients.
If you don't run it through vecta.nano you run the risk of bad nodes and or a black image.
Vectra.nano lowers the file but also makes the gradients work in GT7
 
If it says svg not supported that's because the file is to large.
If it's too large it says...

1710590029871.png


Not supported can be because of a number of other reasons. Bad XML, wrong SVG version, wrong number of bits in the file encoding (16-bit instead of 8-bit for example).

Some even show as 15kbs but they are still actually too large just not read correctly by the program. If a file is bang on 15KBs that's to large, the SVGs have to actually be 14.9kbs and under to get on the PS servers
Not quite.

The maximum file size is 15,360 Bytes. 15,360 bytes dived by 1024 bytes in a kB = 15kB.. so the number you really want to be looking at is the size in bytes...

This file is exactly on the limit, 15,360 bytes, which equals 15kB exactly - 1 byte more and it won't upload. It shows in the status bar summary as 14.9kB...

1710590460353.png


The point being, go by the size in bytes, it must be 15360 or less.


If you don't run it through vecta.nano you run the risk of bad nodes and or a black image.
Vectra.nano lowers the file but also makes the gradients work in GT7
This is interesting, it sounds like that program is re-writing matrix transforms in gradients, which would be a big plus for people struggling with how badly some programs write gradients. Out of curiosity, does it work with skewed radial gradients?
 
Vectra.nano lowers the file but also makes the gradients work in GT7
Ever since vectornator became Curve, my gradients have been broken. I just went and tested and if I run it through vectra.io I am back in business, thank you so much.
 
If it says svg not supported that's because the file is to large. Some even show as 15kbs but they are still actually too large just not read correctly by the program. If a file is bang on 15KBs that's to large, the SVGs have to actually be 14.9kbs and under to get on the PS servers .

Inkscape is all I ever use and do many different gradients on , as long as you save as a optimised svg and then run it through Vecta.nano no matter how small the file is it will keep it's gradients.
If you don't run it through vecta.nano you run the risk of bad nodes and or a black image.
Vectra.nano lowers the file but also makes the gradients work in GT7
Ok. Thanks for the information & getting back to so quickly. Sometimes its hard to get a response this late in the game. Much appreciated.

garystevens64
 
Ok. Thanks for the information & getting back to so quickly. Sometimes its hard to get a response this late in the game. Much appreciated.

garystevens64
Question. To use vectra.io is there a cost to use this program or is it a free one? And if its is free how do you use it? Any help that you can give me would be greatly appreciated.

garystevens64
 
Question. To use vectra.io is there a cost to use this program or is it a free one? And if its is free how do you use it? Any help that you can give me would be greatly appreciated.

garystevens64
No, it is free.

All you have to do is upload your SVG file and the website will then optimize the file. Then you just download it.
 
If it's too large it says...

View attachment 1337609

Not supported can be because of a number of other reasons. Bad XML, wrong SVG version, wrong number of bits in the file encoding (16-bit instead of 8-bit for example).


Not quite.

The maximum file size is 15,360 Bytes. 15,360 bytes dived by 1024 bytes in a kB = 15kB.. so the number you really want to be looking at is the size in bytes...

This file is exactly on the limit, 15,360 bytes, which equals 15kB exactly - 1 byte more and it won't upload. It shows in the status bar summary as 14.9kB...

View attachment 1337610

The point being, go by the size in bytes, it must be 15360 or less.



This is interesting, it sounds like that program is re-writing matrix transforms in gradients, which would be a big plus for people struggling with how badly some programs write gradients. Out of curiosity, does it work with skewed radial gradients?
Afte uploading 7800 decals in to the game I'm quite up on what it takes and doesn't take.

As for vecta.nano yes it has worked for skewed gradients.

If you have issues with a file that is 14.9 but showing as 15kbs just pass it through vecta or svgomg once to knock it down a bit to see if it'll go through.
If ever have issues feel free to send to bigeasynz@gmail.com and I'll happily have a look at it and remake it if I can
 
Last edited:
Afte uploading 7800 decals in to the game I'm quite up on what it takes and doesn't take.
Yeah, that's a big number and everything, but it doesn't change the fact that file not supported isn't a size issue, and you can upload 15kb files, to the literal last byte.

As for vecta.nano yes it has worked for skewed gradients.

What about skewed radial gradients?

1710611837050.png
 
Question. To use vectra.io is there a cost to use this program or is it a free one? And if its is free how do you use it? Any help that you can give me would be greatly appreciated.

garystevens64
Vectra.io/nano is totally free web program. Just drag and drop your svg in to it. Then scroll down and you'll see it there for download. The good thing about that site is it will show you the results if you expand the information. Also if it has changed the image it'll show you straight away. If the shrinkage is all ok then hit download.
 
Question about doing Gradients, I've been trying to do just a simple black & white fade but every time when I open it up or try to upload it keeps coming up all black. What am I not doing right. Any help would be greatly appreciated. Thanks

Save as svg optimised, web search Vecta.nano run it through that then save. Now upload to game and it'll hold the fade
 
...
What about skewed radial gradients?

View attachment 1337687

That is what happens to any gradients to which a transform has been applied, and without transform, you are stuck with circular radial gradients (right? I'd love to be wrong 🙂) Ellipses (2-axis radial gradients) are out, if you apply a radial gradient to a square, then stretch it so it is a rectangular radial gradient, the code uses 'transform' to stretch the gradient, but GT ignores transform when uploading the decal. Mesh warps, envelope, they all use transform to alter a radial (circular) gradient.

You can stretch and skew the decal once in the game, so in theory you can work backwards, create your decal, then stretch/skew so that all the radial gradients are circular, but that will only work if you have a single radial gradient, or exactly the same degree of stretch/skew applied to all radial gradients.

The centre of the circular gradient does not have to be the centre of your shape, I've been trying to use that to move away from an obviously circular shape, but it can be difficult to match the gradiations between 2 shapes:
IMG_1186.jpeg

I've shared a couple of pie slice gradients which are useful for the same sort of thing.

@bigeasynz Thanks for the heads up on that vectra.io website, look forward to using that 👍
 
The centre of the circular gradient does not have to be the centre of your shape, I've been trying to use that to move away from an obviously circular shape, but it can be difficult to match the gradiations between 2 shapes
I've been experimenting with layering circular radial gradients with different origins and of different transparencies to create non uniform looking radial gradients. It's not working and I'm not yet sure if it's Corel or GT that's not working. The theory does work if you upload them as separate decals, layer them up and adjust the opacity in game.. but I want to do them as one file. Problem is when I do, areas that are overlayed node for node and have transparency disappear completely.
 
I've been experimenting with layering circular radial gradients with different origins and of different transparencies to create non uniform looking radial gradients. It's not working and I'm not yet sure if it's Corel or GT that's not working. The theory does work if you upload them as separate decals, layer them up and adjust the opacity in game.. but I want to do them as one file. Problem is when I do, areas that are overlayed node for node and have transparency disappear completely.
Try making them in Inkscape.
 
I've been experimenting with layering circular radial gradients with different origins and of different transparencies to create non uniform looking radial gradients. It's not working and I'm not yet sure if it's Corel or GT that's not working. The theory does work if you upload them as separate decals, layer them up and adjust the opacity in game.. but I want to do them as one file. Problem is when I do, areas that are overlayed node for node and have transparency disappear completely.
I tried vecta.io on a file with multiple radgrads; it's smart enough to detect when radgrads are effectively the same, (black in centre, transparent at edge) so it defines a single radgrad and applies it to each shape, but uses matrix transforms on the shapes, and that breaks the grad just like a gradienttransform does.

I was sooo hoping vecta would be a magic bullet :( It's good at compression, I guess it will convert to absolute co-ordinates if it is more efficient, but use matrix transforms if that is more efficient.

Having said that, I'm guessing you've already inspected the code to rule out transforms? Sometimes it feels like GT is just ornery for the sake of it, I'll spend too long this evening trying to work out why my latest file isn't working despite defining everything without transforms (gah!!)
 
Having said that, I'm guessing you've already inspected the code to rule out transforms? Sometimes it feels like GT is just ornery for the sake of it, I'll spend too long this evening trying to work out why my latest file isn't working despite defining everything without transforms (gah!!)
In all honesty, at the moment I can make do with workarounds for the odd skewed radial gradient if I need to do it. I'm working a livery that's got a bit a water colour wash-esque back ground so at the moment I'm just trying to combine as many gradients into one decal as I can to save layers and get smooth transitions in the x and y direction, most of my livery attention is on that.
 
In all honesty, at the moment I can make do with workarounds for the odd skewed radial gradient if I need to do it. I'm working a livery that's got a bit a water colour wash-esque back ground so at the moment I'm just trying to combine as many gradients into one decal as I can to save layers and get smooth transitions in the x and y direction, most of my livery attention is on that.
Ok who's killed Vecta.io/nano ? 😂😂
 
Ok who's killed Vecta.io/nano ? 😂😂
It seems to work well for most scenarios, but this niche issue of skewed radial gradients seems to persist and I'm still of the opinion it can only be properly solved at PD's end.

Try making them in Inkscape.
For nearly everything else Corel has worked fine and it's mostly better for gradients than Inkscape, except for this issue I'm experiencing at the moment where if a fill has a transparency, and that fill is a gradient with a transparency, it either becomes solid, or invisible in GT7 - which I'll be able to work around, I just like to figure out why.
 
Back