Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Akow), 1,361 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Panel shader #401557
05/21/12 16:33
05/21/12 16:33
Joined: Apr 2008
Posts: 245
GameScore Offline OP
Member
GameScore  Offline OP
Member

Joined: Apr 2008
Posts: 245
is there a way to adapt shaders for panels?

i need a nice glossy effect for some panels
with a dynamic reflection

Re: Panel shader [Re: GameScore] #401590
05/22/12 06:48
05/22/12 06:48
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
use a view entity (ent_createlayer) as overlay for your panel and assign a shader to it laugh


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Panel shader [Re: Espér] #401593
05/22/12 07:55
05/22/12 07:55
Joined: Apr 2008
Posts: 245
GameScore Offline OP
Member
GameScore  Offline OP
Member

Joined: Apr 2008
Posts: 245
tnx, i will try that laugh

Re: Panel shader [Re: GameScore] #402009
05/28/12 19:30
05/28/12 19:30
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
I just don't want to spam forum with new same thread. Is there any way to handle this without view entities? I'm using shade-c, so view entities aren't visible..


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Panel shader [Re: 3run] #402011
05/28/12 19:38
05/28/12 19:38
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
@3run

You can create models / sprites in your level for the interface and use shaders...
but the difficult part is to get the right position and orientation for all that stuff

EDIT: the flag ZNEAR can be really helful, to make the interface not clipping through level blocks / entitys

Last edited by Kartoffel; 05/28/12 19:45.

POTATO-MAN saves the day! - Random
Re: Panel shader [Re: Kartoffel] #402013
05/28/12 19:47
05/28/12 19:47
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Sorry, but I guess that I've explained my problem wrong.. What I need is, to be able to add shaders for panels in my game (such as HUD or menu stuff).


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Panel shader [Re: 3run] #402014
05/28/12 20:11
05/28/12 20:11
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Well I maybe explained it wrong:

It might be not always worth it, but in the game I'm currently working on I am using Models and Sprites for the Interface (Buttons, Healthbar and this stuff)

I create them with ent_create(...); and then always set the position in front of the camera and change the angles so that it faces the camera.

It's much harder than 'just' using Panels... but sometimes it can look really great

Last edited by Kartoffel; 05/28/12 20:15.

POTATO-MAN saves the day! - Random
Re: Panel shader [Re: Kartoffel] #402016
05/28/12 20:18
05/28/12 20:18
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
I guess that isn't the way to go.. how do you handle for example digits?


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Panel shader [Re: 3run] #402019
05/28/12 20:23
05/28/12 20:23
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
well... for displaying strings or vars I use PANELs... everything else would be too much work

Quote:
I guess that isn't the way to go

Youre right. Using this for the whole Inteface isn't worth all the work.
Because of that I only use it where It doesn't take too much time and work.


I'm sorry but thats the only way I know to create an interface with shaders and without using view-entitys.

Last edited by Kartoffel; 05/28/12 20:24.

POTATO-MAN saves the day! - Random
Re: Panel shader [Re: Kartoffel] #402020
05/28/12 20:30
05/28/12 20:30
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
That is sad, I hope there is a way to attach shaders to panels.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Page 1 of 2 1 2

Moderated by  Blink, Hummel, Superku 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1