Gamestudio Links
Zorro Links
Newest Posts
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
ZorroGPT
by TipmyPip. 04/08/26 17:08
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (Grant, vince, 1 invisible), 4,149 guests, and 21 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Geir, ondrej, mredit, vestriaa, Lukudo
19206 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