A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate
in the Unity community.
Discussion in 'Assets and Asset Store' started by garrido86, Nov 3, 2015.
Screen Overlay is not supported but I will look into it, maybe I can make a special UI Shader.
I have normal mapped sprites with the standard shader giving order in layer, receiving shadows and diffuse tint/colour etc. but when my main character flips he disappears. If I turn off backface culling then the normal maps are inverted when he flips.
Does this shader support flipped sprites with normal maps that can still be tinted or receive shadows?
Is there any way I can trial this asset?
You can either rotate or flip( by scaling x -1) with no problems, at least no other users reported any problem on this topic
I just downloaded and imported the full package but I get this red error:
Property (_Layer4) already exists. Use SetTexture instead.
I've tried the shader on my main character but I'm having several issues:
My normal map is not affecting the sprite and the sprite is overlapping everything - the order in layer seems to be ignored.
Also, the sprite only receives shadows when facing right (not when facing left), and is not receiving ambient light when shadowed.
This is the standard shader for reference:
Here I switched the rocks to your shadowed shader with their normal maps applied:
Right now it seems your shader does nothing it claims..
I will look now into it, but if things don't work out for you, I can give you a refund.
Do you mind sharing your scene? This would make troubleshooting faster and easy.
Thanks. I'd rather have it working than a refund, but see how you go.
I'm using deferred rendering and I have a single directional light in the scene.
When I switched my material to your shader, it automatically picked up the normal maps that I was already using, and the sprite seems to be lit correctly in the inspector preview but is not lit correctly in play mode at all..
Have you tried the provided demo scene in you project? Does it have any glitches?
Have you enabled double sided on the Materials?
Yes I enabled doublesided (you'll note that the rear of the sprite is drawn when flipped). Also multi-light and Shadow Receiver as you have.
Also the square fields in the inspector that show the normal maps and diffuse maps are slightly squashed and distorted (it's a rectangle instead of a square), and the images look taller but that's not my main concern right now and it doesn't affect the scene or play mode in any way..
I haven't tried the demo scene.
How do you "make" the shadows in your scene? Do you use some kind of plugin like the "2D Dynamic Lights" asset?
In NextGenSprites you receive shadows by having the sprites which are supposed to cast the shadow be physically on the Z-Axis in front of the shadow receiving sprites - well basically we handle them like normal 3D Objects.
The shadows are the default shadows from 3D geometry.
Well I am kinda out of fire here and this guesswork is not very productive, so with that I only see two options:
- You send me an example Scene of your project so that I can troubleshot your lighting problem.
- I refund you.
So please, don't get me wrong, I really like to help but troubleshooting remotely without insights into the project is not trivial.
I tried your example scene and found that your normal maps are only responding to your point light and not your directional light so that would be the first thing to fix. Some of the other effects like reflection seemed to have no effect and I didn't see anything on double sided sprites..
Though turning on bloom and hdr were a nice idea so thanks for that.
Alright after some intensive investigation I found two bugs on my ShadowCasting renderpass:
-Culling was not disabled
-Point Lights where ignored
Both are now fixed and will be submitted ASAP to the AssetStore!
Itch.io customers may receive the update already today or the next day.
If you bought NGS here on the AssetStore, then please send me a PM with your Invoice Number so that I can pass you directly the fixed version!
Normal Maps work with Directional and Point/Spot Lights simultaneously perfectly fine as long you use the Multi Lit and not Single Lit Shader.
When you enable the Reflection feature the strength is set by default at 0, so that you can ramp it up at your liking. Note: for real time reflections you need to use a Render Texture.
The double sided feature allows Sprites to be lit from the backsite (i.e. flipped or rotated) and corrects the normal direction.
I've been trying your asset, seems great, but I am struggling with one point : How can I change the hue shift properties of a material through scripting? Let's say I want to change the brightness value in code. I'm not seeing any enum value under ShaderFloat that would allow me to do that. Am I missing something?
you need to use the ShaderVector4, it goes like this:
//define a new Vector4
var hsbc = new Vector4 ();
//Set the desired values - make sure they are in range from 0 - 1
hsbc.x = 0.5;
hsbc.y = 0.35;
hsbc.z = 0.75;
hsbc.w = 0.25;
TargetMaterial.SetVector (ShaderVector4.HSBC.GetString (), hsbc);
I hope this helps
Hi, I just purchased this package and I'm wondering about the Dissolve Patterns. In the demo there are multiple patterns, but I only see "dissolve_demo" in the actual package. Am I missing something or are the other patterns not included with the package?
You can find the Bootstrap Assets on the Wiki.
On the righthand side you can see the Download button.
You can also create your own dissolve maps, they are basically grayscale images.
Just experiment a bit in Photoshop and you will find out how to create your own dissolve maps
I could create my own, but you've already created so many excellent textures, why bother? Seriously, great work. 5 stars for sure!
Awesome, I am happy to know that you like the Bootstrap Assets!
Hey Garrido, how do I actually enable or disable the hue via script? C# preferably....
No worries, I worked it out:
Also, you can define the Vector4 hsbc as a "Color hsbc" in Unity as technically they are the same thing in shader terms, I think.
I can't exactly follow you. The HSBC property on the Shader is already a Vector4. Or do you mean using a Color Inspector field for the Material Editor? Either way, I am happy to know that you got the Shader feature toggle working
I bought your asset and it's even better than I expected!!!
but I can't find the animation listener( code to handle the properties collection, that you said in a video tutorial).
I also tried to find it on the links of that specific video, but the link is not working...
can you help me?
I am sorry but I changed my username on Github and forgot to update the link on the Youtube Video.
Here is the working link: https://gist.github.com/rubit0/ca86dc31c708d6107aa6
Please let me know if you need anymore help
Wow... that was a fast reply
congratulations for the brilliant asset and for the very nice and fast support.
after buying your asset my game started to get reeally better to look at
when I have enough, I'll send you a demo of the game( if you want) and also, I'll put your name on the "Special Thanks" on the credits of the game
but I'm still with the same problem , because the code "Animation Event Listener" is not there in your new Github account
Wow that would be really awesome! I am also happy that you have good use for NGS
What kind of Game are you working on?
I will look at it ASAP once I am home back from my day-job!
Updates where kinda slow but I will work on remake the Web-Demo and include it into the Asset. You will be able to use it's assets for your own game I am also thinking making a iOS and Android Benchmark app, so that you can validate it for your target mobile platforms.
I'm working on a platfomer with some RPG aspects a.k.a "metroidvania style"
okay, I'll be waiting
I love Platformer! Can't wait to see it I also once worked myself on one but it was 3D and gave up due to time constraints and missing budget. Though you can watch here a Pre-Alpha build:
Anyway, I must excuse myself but the Animation Tutorial on youtube is actually deprecated and I will delete it asap!
This is the new animation Tutorial is kinda hidden because it is part of the 1.2 Update Walkthrough:
Note: You mustn't create a new Property Collection each time, you can use the export function from the Material Inspector and then duplicate it to make the variations.
Nice game you were doing
This kind of art generally fits well with crazy and unique game mechanics really reminds me of games released to nintendo ^^
Thank you very much for the tutorial!!!
it's working now
This looks useful! Dumb question, but what's the difference between this solution and the built-in Standard Shader? I've been using increasingly modified versions of the Sprite/Default and Sprite/Diffuse shaders, but the more I read about this, the more I forget why we don't just use the Standard Shader for 2D as well.
The standard 2D Shader offers none of NGS features, there is no Normal Mapping, Hue Shift, Emission Masking, Dissolvement etc.
Not the default 2D shader, but the Standard Shader that you're supposed to use for 3D. If I recall correctly, you can set Render Mode to Fade to enable alpha, and it supports features like normal maps. I had tried it with 2D back when I was first learning Unity, but I switched to the default 2D shaders because I figured you were supposed to, and now I'm wondering if that wasn't necessary at all.
Hey Ruben, may I ask that you push the 1.3.9 update to Itch.io?
I also noticed that the Bootstrap assets, at least in 1.3.7, isn't there in the Extras folder. Looking to play with those again.
I have a repetitive issue with this asset. I`ve created material with reflection, applied to cut-out character. It`s working Ok with one single sprite, but when I drag the different sprite on the scene (actually the different part of multi-sprite atlas) the scrolling speed of reflection stop working (as if it was zero valued).
Helloooo! is somebody here?! Need to finish the project!
Devs don't always receive prompt notification of new comments on their forum threads. If you want to get in touch with @garrido86 right away, then contact him via PM or his support email.
Hi, @garrido86, your plugin is very helpfull. a question, do you have a sample to use your shadow shader?
Thanks a lot!
Here you go mate:
Jump to minute 4, this is the section where I start to talk about shadows.
If this is isn't enough intel, just let me know
Yep you are right, but I will look from now on more often in this thread.
The bootstrap assets can be found on the Wiki page: http://wiki.next-gen-sprites.com/doku.php
On righthand side you can the download button.
I am very sorry that I couldn't respond sooner, do you still have those issues? Are the textures set in the settings to "repeat"?
Hi @garrido86 !
I restarted doing my entire project optimizing it and doing it better, so I still don't have a beta to send to you, but when it's ready, I'll send you like promised before
I just have a question.
Is this asset still going to be updated?
I ask this due to the fact that Unity engine is getting lots of improvements, and maybe now, shader can achieve new stuff that they weren't able to achieve before
thank you for your time and congratulations for this amazing asset
This would be massivley helpful for me. I'm guessing many others use Screen Space - Overlay as well!
Awesome, awesome product. Having a lot of fun with it. Have a question about lighting. I've set everything up in the scene as per the instructions. My directional light works but when I add a point light nothing is affected by it. Using 5.6.2f1. Camera is using unity's new post processing for bloom (instead of legacy effects) Sprites are using lit shaders with normal maps. As I said the directional light is affecting the sprites and they look awesome but adding a point light to the scene does nothing. Thanks for the great product!
Edit : Got it working. Sprites need the multi lit shader to be affected by point and spot lights. Single lit shader is affected by directional light though which is cool.
I'm sorry to not have responded earlier to you, as I'm currently moving to a new city for a job opportunity.
But I'm glad that you got it sorted it and please let me know if you need more help!
over a week ago I tried to contact the author of this asset but i haven't recieved any reply to my mail yet, so I'm going to ask here in the hope that either the dev or someone who bought the asset can answer my question.
I'm currently developing a 2.5D game and I'm looking for advanced sprite shader and it looks like this asset would be a really great addition to my game.
To cut a long story short: I basically just want to make sure the shader performs fine when using the perspective view. I would be grateful if anyone can answer me this question.
I use it on an orthographic camera normally but I've never had issues when trying it over on a perspective camera.
Ah this sounds good! And thanks for replying to my question.
Can I ask, is NextGenSprites supported on consoles?
Hi, I have imported the plugin in unity 2017 but doesn't works; do you have in schedule to create a compatible version? Thanks!
Unity 2018.1.0b7, macOS
Hey @garrido86 !
There is a new update online on asset store.
That made me really happy, as this is one of my favorite assets. I'll try it today again
These are gorgeous- excellent work.
Came for the dissolve shader, got an entire sprite shading suite instead