Planetside Software Forums

General => Terragen Discussion => Topic started by: Kadri on January 29, 2015, 09:06:17 AM

Title: Vortex warp shader problem
Post by: Kadri on January 29, 2015, 09:06:17 AM

Does have anyone tried the Vortex warp shader on a second planet?
I tried to place it for the clouds and then for the ground but could not get it to work.

Then i used a default second planet as it is without changing size and place. It worked in this scene.

I suspect the big different center numbers might be the problem (the planet is far away from zero point for example).
But things like local clouds or image maps do work as they should.


Title: Re: Vortex warp shader problem
Post by: Dune on January 29, 2015, 12:41:22 PM
Quickly testing; works alright.
Title: Re: Vortex warp shader problem
Post by: Kadri on January 29, 2015, 12:58:31 PM

Yes you are right Ulco.I tried it with another default scene and it worked.
But the scene in that i need it, it is stubbornly not working :D

I am still working on it. I changed the extreme values to more reasonable numbers but still no luck.
Might have to do with some other nodes too. Will see.
Title: Re: Vortex warp shader problem
Post by: Kadri on January 29, 2015, 02:22:22 PM

I think i found the problem.

I had a "transform input shader before the vortex shader.
The vortex shader was the last node in the chain and i thought that it should show up.
But when in the transform shader "Use world space(final position)"  is enabled  the vortex shader doesn't show up.

Transform input and Transform merge shaders behave in the same way.

I don't remember why i had that option enabled but this behavior looks unintuitive to me. 
Title: Re: Vortex warp shader problem
Post by: Matt on January 30, 2015, 02:18:19 AM
All of Terragen's warp shaders work by warping texture coordinates. "Use world space" replaces the texture coordinates with world space coordinates, so the warp effect is lost.

Matt
Title: Re: Vortex warp shader problem
Post by: Kadri on January 30, 2015, 04:36:07 AM

Thanks Matt. Good to know. Feels like WYSIWYG is lost :)