Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
6 registered members (TipmyPip, Niels, dBc, Ed_Love, 3run, 1 invisible), 17,843 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
view.portal_z - camera.z problem #321281
04/27/10 21:34
04/27/10 21:34
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Nidhogg Offline OP
Serious User
Nidhogg  Offline OP
Serious User

Joined: Dec 2006
Posts: 1,086
Queensland - Australia
I hope I get an answer to this one laugh .
I have a water stream that travels downward over steps and I was wondering if there was anyway to detect at what camera.z's height has to be for the portal to reflect properly.

If I just have the standard code (view.z = 2*view.portal_z - camera.z) the block entities in my level down't show up when shaders are applied to them.
(Yes I excluded the NOSHADER flag).

But they do show in the reflection if I exclude the NOPORTAL or I move the level either up or down in WED.
Excludeing the NOPORTALCLIP option is no good as when I am in the third person view the reflections are horrible.
So is there anyway of doing this with maybe a c_scan or c_trace to set camera.z properly.
Any help would be greatly appreciated.


Windows XP SP3
Intel Dual Core CPU: E5200 @ 2.5GHz
4.00GB DDR3 Ram
ASUS P5G41T-M LX
PCIE x16 GeForce GTS 450 1Gb
SB Audigy 4
Spyware Doctor with AntiVirus
Re: view.portal_z - camera.z problem [Re: Nidhogg] #321502
04/29/10 20:12
04/29/10 20:12
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Nidhogg Offline OP
Serious User
Nidhogg  Offline OP
Serious User

Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Anybody, Or can't it be done.


Windows XP SP3
Intel Dual Core CPU: E5200 @ 2.5GHz
4.00GB DDR3 Ram
ASUS P5G41T-M LX
PCIE x16 GeForce GTS 450 1Gb
SB Audigy 4
Spyware Doctor with AntiVirus
Re: view.portal_z - camera.z problem [Re: Nidhogg] #321510
04/29/10 20:42
04/29/10 20:42
Joined: Apr 2010
Posts: 172
W
wdlmaster Offline
Member
wdlmaster  Offline
Member
W

Joined: Apr 2010
Posts: 172
The clipping plane in HLSL is in clip space not world space. You must either write you own clipping algorithm in every HLSL-Shader that needs clipping, or you must use the NOSHADER flag in the view (yes i know, this is no option...)

And in a river ... ther is no defined "plane" for refelctions. For the river i would unly use environment mapping.

Re: view.portal_z - camera.z problem [Re: wdlmaster] #321545
04/30/10 04:44
04/30/10 04:44
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Nidhogg Offline OP
Serious User
Nidhogg  Offline OP
Serious User

Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Bit of a pain but oh well I like the effect I got in my stream so I guees I'll have to go with what I have achieved thus far.

Thanks for the info and tips wdlmaster I will go with your advice.



Windows XP SP3
Intel Dual Core CPU: E5200 @ 2.5GHz
4.00GB DDR3 Ram
ASUS P5G41T-M LX
PCIE x16 GeForce GTS 450 1Gb
SB Audigy 4
Spyware Doctor with AntiVirus

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | 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