Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, The_Judge, Grant), 898 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
shader on sky cube image #439743
04/08/14 11:05
04/08/14 11:05
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline OP
Expert
sivan  Offline OP
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
hi

is there any example available of a sky cube image shader? I want to make some simple effects on it, but the texture gets stretched, the same appears on each side, so I can't position them properly... and InNormal seems to be undefined similarly to sprites, not surprisingly because a sky cube is said to be rendered as 6 sprites.

thanks


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: shader on sky cube image [Re: sivan] #439748
04/08/14 16:17
04/08/14 16:17
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
are you using cubemaps and texCUBE()?


POTATO-MAN saves the day! - Random
Re: shader on sky cube image [Re: Kartoffel] #439753
04/08/14 18:10
04/08/14 18:10
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline OP
Expert
sivan  Offline OP
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
no. probably I did totally wrongly, just added a shader to mtl_sky containing a VS only (wanted to add a tint to the lower part of the sky cube).
thus I change my question to: how to do it? laugh

Last edited by sivan; 04/08/14 18:14.

Free world editor for 3D Gamestudio: MapBuilder Editor
Re: shader on sky cube image [Re: sivan] #439759
04/08/14 19:25
04/08/14 19:25
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
I have no idea how the default sky shader works (i think it's hardcoded)

...so sorry, I cant help you with this.


POTATO-MAN saves the day! - Random
Re: shader on sky cube image [Re: Kartoffel] #439764
04/08/14 21:09
04/08/14 21:09
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline OP
Expert
sivan  Offline OP
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
by default the engine probably uses no shader.
so I think I should write my own custom skybox shader that works with mirror views... maybe it would eliminate that bad close clipping at around 71% of clip_far of current sky cubes...


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: shader on sky cube image [Re: sivan] #439773
04/09/14 10:02
04/09/14 10:02
Joined: Oct 2004
Posts: 897
Lgh
rojart Offline
User
rojart  Offline
User

Joined: Oct 2004
Posts: 897
Lgh
Hi, Shade-C EVO uses skybox sc_gBuffer_sky.fx shader, maybe it helps.


Regards, Robert

Quote
Everything should be made as simple as possible, but not one bit simpler.
by Albert Einstein

PhysX Preview of Cloth, Fluid and Soft Body

A8.47.1P
Re: shader on sky cube image [Re: rojart] #439776
04/09/14 10:16
04/09/14 10:16
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline OP
Expert
sivan  Offline OP
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
thanks! (I browsed it but had not found)

edit: great, matTexture and Out.Tex = mul(float3(InTex.x,InTex.y,1),matTexture).xy; are what I needed laugh

Last edited by sivan; 04/09/14 10:46.

Free world editor for 3D Gamestudio: MapBuilder Editor

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