Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Cales on June 04, 2012, 06:06:13 AM
-
Hi everybody,
I'm trying to create a GUI that behaves like a book with turnable pages and different sprites for the particular page.
The problem is that sprites are two-sided. So when a page rotates the sprite with the higher depth is shown until it's deactivated. And that looks odd. :o
Is there a way to make a sprite only one-sided? Or any other ideas?
Thanks,
Cales
-
Inside the shader (pretty much all of them inside the Resources/Shaders) there are is a property "Cull Off" this is preventing any sort of culling to happen (why you see the mesh from both sides). If you turn this into "Cull Back" you will only see the object from the front.
As a note i'm not 100% sure why culling is turned off my guess is performance but just incase some things start to look strange.
-
Yay! That is exactly what I was looking for. :D
Thanks a lot, PhilipC!
-
This solved my issue as well, thank you.
-
Hi everybody,
I'm trying to create a GUI that behaves like a book with turnable pages and different sprites for the particular page.
The problem is that sprites are two-sided. So when a page rotates the sprite with the higher depth is shown until it's deactivated. And that looks odd. :o
Is there a way to make a sprite only one-sided? Or any other ideas?
Thanks,
Cales
And how do you implement this book-page turning GUI? I would be interested to hear that... If not confindential, of course :-)
-
And how do you implement this book-page turning GUI? I would be interested to hear that... If not confindential, of course :-)
Hi, thanks for your interest. :)
I took an empty game object as parent and added two sprites to it, one of it rotated by 180° so it acts as backside. Then I just animate the parent. The turning page isn't perfect as it doesn't bend, but sufficient enough.
Meanwhile our game is actually finished. It's called "Reperfection". There's also a demo (at tinnitus-games.de) if you want to take a look at how I implemented the sprites as a book.
Best regards,
Cales