Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 767 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 4
Page 6 of 11 1 2 4 5 6 7 8 10 11
Re: Water Shader: Exchange the cube_map [Re: old_bill] #35863
01/04/05 09:02
01/04/05 09:02
Joined: Oct 2002
Posts: 815
NY USA
R
Red Ocktober Offline
Developer
Red Ocktober  Offline
Developer
R

Joined: Oct 2002
Posts: 815
NY USA
hey bill... the shader seems to work inside a closed cube for me...

i added a hollow cube and set the player inside... i even commented out the skycube block in the script and the shader still worked.

--Mike

Re: Water Shader: Exchange the cube_map [Re: Red Ocktober] #35864
01/04/05 09:16
01/04/05 09:16
Joined: Mar 2002
Posts: 7,726
old_bill Offline
Senior Expert
old_bill  Offline
Senior Expert

Joined: Mar 2002
Posts: 7,726
Hi Mike,
when i remove the skin2 part, the model is completly invisible and sometimes green,
depending on my view.angle .
From my understanding, that's correct, because there is now no bmap to use as mirrored bmap.
What i want is a function, that captures a bmap from the model position and use it as cube_map for the water.

But what was displayed on your level in case you removed the water_cube skin?

old_bill


Success is walking from failure to failure with no loss of enthusiasm.
Re: Water Shader: Exchange the cube_map [Re: old_bill] #35865
01/04/05 09:36
01/04/05 09:36
Joined: Oct 2002
Posts: 815
NY USA
R
Red Ocktober Offline
Developer
Red Ocktober  Offline
Developer
R

Joined: Oct 2002
Posts: 815
NY USA
i think that that is just what is happening... the shader is using montskysma+6.tga (the statement bmap water_cube=<montskysma+6.tga>;


and then the material is using water_cube as skin1 and the bumpmap texture as skin 2...

don't remove anything from the material code... just comment out the skycube block of code that starts with sky skycube{ ...}

(be right back gotta run to the train station )


--Mike

Re: Water Shader: Exchange the cube_map [Re: old_bill] #35866
01/04/05 09:55
01/04/05 09:55
Joined: Dec 2003
Posts: 1,097
Maryland, USA
Steempipe Offline OP
Serious User
Steempipe  Offline OP
Serious User

Joined: Dec 2003
Posts: 1,097
Maryland, USA
I just now did a copy and paste of the wiki code you referenced (the improved version) and it rendered the cubemap from my camera position when I pressed "c".

I did get an engine crash before I put a blank "render.tga" image in the project directory. Mine was a blank texture, 256x256.

Re: Water Shader: Exchange the cube_map [Re: Steempipe] #35867
01/04/05 14:45
01/04/05 14:45
Joined: Nov 2004
Posts: 23
R
Robin Offline
Newbie
Robin  Offline
Newbie
R

Joined: Nov 2004
Posts: 23
Does water reflect only skycubes? Can it refelect geomatrical enviorment?
Cause, all I see in the examples is that only skycube are reflected.

Re: Water Shader: Exchange the cube_map [Re: Robin] #35868
01/04/05 15:57
01/04/05 15:57
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
in this shader it only relfects the skycube.. however if you own pro you can use render to texture to make it reflect everything.

Re: Water Shader: Exchange the cube_map [Re: Matt_Aufderheide] #35869
01/04/05 17:49
01/04/05 17:49
Joined: Nov 2002
Posts: 148
Italy
Leon Offline
Member
Leon  Offline
Member

Joined: Nov 2002
Posts: 148
Italy
the exe works fine..
when i use the code in my work folder i got a problem

"parameter unknown d3d_shaderversion"

i'm using 6.30 commercial

ps: the watershader.fx is already included!

??????????????????


Pietro Nifosė >> digital artist / game developer My Personal Portfolio
Re: Water Shader: Exchange the cube_map [Re: Leon] #35870
01/04/05 20:38
01/04/05 20:38
Joined: Aug 2003
Posts: 511
Hilden in Germany
RobH Offline
User
RobH  Offline
User

Joined: Aug 2003
Posts: 511
Hilden in Germany
Only the Com and Pro Editions have shader support.
Also you should update to version 6.31.4 to have the newest version.

Re: Water Shader: Exchange the cube_map [Re: Matt_Aufderheide] #35871
01/05/05 00:21
01/05/05 00:21
Joined: Nov 2004
Posts: 23
R
Robin Offline
Newbie
Robin  Offline
Newbie
R

Joined: Nov 2004
Posts: 23
Well I do own the Pro verstion but I don't really know HLSL language to change what I need.
Anyone got a complete version of it?

Re: Water Shader: Exchange the cube_map [Re: Steempipe] #35872
01/05/05 04:26
01/05/05 04:26
Joined: Mar 2002
Posts: 7,726
old_bill Offline
Senior Expert
old_bill  Offline
Senior Expert

Joined: Mar 2002
Posts: 7,726
Hey,
thanks for the hint Steempipe, that did the trick also for me!

old_bill


Success is walking from failure to failure with no loss of enthusiasm.
Page 6 of 11 1 2 4 5 6 7 8 10 11

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