Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, VoroneTZ), 1,258 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Distortion Shader #44919
04/26/05 20:12
04/26/05 20:12
Joined: Apr 2005
Posts: 190
Variable
A
ArchitectTempest Offline OP
Member
ArchitectTempest  Offline OP
Member
A

Joined: Apr 2005
Posts: 190
Variable
I believe this is a shader. For those who have seen Legacy of Kain- Defience, or anybody who has seen heat rise off a source (so that the air around the heat is distorted), is there a way to create a Beam or shader that creates that effect? As in LoK Defeience, the trail that follows the Reaver blade is distored. Is there a way to duplicate this in 3dGs?

Re: Distortion Shader [Re: ArchitectTempest] #44920
04/27/05 03:53
04/27/05 03:53
Joined: Mar 2003
Posts: 1,524
Canada
Stansmedia Offline
Serious User
Stansmedia  Offline
Serious User

Joined: Mar 2003
Posts: 1,524
Canada
I asked the same question a while ago... I was thinking a refraction map that scrolls upwards on say... a model that constantly faces the player. I usually run through these idea's creativly, but I cant say ive tried this since i havent got my hands on a refraction shader. Sorry if i make no sense, i do that alot.


Decessus - 80% done. 100% abandoned.
GET MY ANDROID GAME! https://play.google.com/store/apps/details?id=com.lasertrain.zspinballfree&hl=en
Re: Distortion Shader [Re: Stansmedia] #44921
04/27/05 04:16
04/27/05 04:16
Joined: Jan 2003
Posts: 1,142
California
Daedelus Offline
Senior Developer
Daedelus  Offline
Senior Developer

Joined: Jan 2003
Posts: 1,142
California
Would this be the same effect as the one used for weapons in Minority Report for PS2?


Formula Games - A place to buy and sell Indie games.
Re: Distortion Shader [Re: Daedelus] #44922
04/27/05 05:46
04/27/05 05:46
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
This can be done.. however you need the Pro render-to-texture feature.

If you have pro, then simply render the view to a texture, and then map onto an entity Then you will have simply a rendered view of you camera view on a sprite

Now you must apply an actual distortion pixel shader.. i currently dont have one, but such things aren't to hard to find.. i think Nvidia has one on their website ( do a search for nvidia postprocessing or some such).

Perhaps the easiest way to do it is to use a bump environment map technique.. there are several available on this forum, and instead of a reflection map use your render view texture, then just mnodify it with the normal map.. and then make the whole thing slightly transparent.

Re: Distortion Shader [Re: ArchitectTempest] #44923
04/27/05 07:13
04/27/05 07:13
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
please ppl, use the search button , there are many distortion shaders in this forum.
its a simple thing:

distortionOffset=tex2D(distortionMap,(texCoord+float2(xSpeed,ySpeed)*vecTime.w/generalSpeed)+float2(xScale,yScale));
distorted=tex2D(renderedView,texcCoord+distortionOffset*levelOfDistortion);

you need to place this into the pixelShader and there aou are. apply the shader to a screenaligned quad. check my download-section to fine a good startup-set.

as matt says, pro-version or his render_dll


www.earthcontrol.de
quoted: We want to maintain a clean, decent, American family suited forum look... which means you may post zombies or chainsaw massacres, but no erotic.
Re: Distortion Shader [Re: ello] #44924
04/27/05 20:07
04/27/05 20:07
Joined: Apr 2005
Posts: 190
Variable
A
ArchitectTempest Offline OP
Member
ArchitectTempest  Offline OP
Member
A

Joined: Apr 2005
Posts: 190
Variable
Thanks for the help, but...ello; will you first method work with Commercial Edition? I don't have pro...


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