Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - unity_stark

Pages: [1]
1
Hello,
Can I use only one sprite collection for both devices, and each one has its own images scale?
For example, on iPhone 4S, the images is too small; however on Samsung S3, the images just fine.
So I need to increase the scale on iPhone and I don't want to create another sprite collection to handle this.

any suggestions?


2
Support / How to keep custom shader setting when changing the sprite?
« on: June 26, 2013, 08:54:18 pm »
I follow your suggestion last time and create the custom shader and palette.
Now it's working! Thanks a lot!

But now I encounter the new problem.
Every time when I change the sprite at run time, it seems lost the connection between atlas0 material and custom shader.
The sprite can't display correctly.

I have to set the custom shader again after I change the sprite.

Do you have any suggestions?

4
Thanks a lot for your answer.
I think that the shader is the best way to solve this problem.
I'm studying shader and try to figure out how to filter unchanged pixel based on saturation value.

But how the shader can detect or calculate the value of saturation of pixel?



5
Support / Detect the saturation of pixel and change it during runtime
« on: June 13, 2013, 11:27:05 am »
Hello,
In my project, I need to change the colour of items such as hair or clothes based on user's selection.
but some area can't change and need to keep their origin colour.

So I need to get sprite's pixel information such as saturation property.
if this property match some conditions, 90% or 75%, then I will change the colour of this pixel at runtime.

How should I do or any suggestions?


Pages: [1]