Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by mistery. 12/05/26 12:48
contractUpdate() is filtering if >2 rows
by mistery. 12/04/26 19:03
Removing outliers from files
by AndrewAMD. 12/02/26 15:26
SGT_FW
by Aku_Aku. 11/30/26 08:19
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (AndrewAMD), 2,576 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 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