Planetside Software Forums

General => Terragen Discussion => Topic started by: mhaze on September 03, 2011, 11:03:00 AM

Title: rotating an image map
Post by: mhaze on September 03, 2011, 11:03:00 AM
Hi All

Tried everything I can think of - so how do I rotate an image map?

Mick
Title: Re: rotating an image map
Post by: freelancah on September 03, 2011, 11:11:20 AM
Did you try transform shader?
Title: Re: rotating an image map
Post by: mhaze on September 03, 2011, 11:14:08 AM
yep but 1) not sure how to use it 2) cannot get any result
Title: Re: rotating an image map
Post by: freelancah on September 03, 2011, 11:19:20 AM
Hmm..What projection method are you using? It might help if you show a screenie of what you have and want to do too
Title: Re: rotating an image map
Post by: mhaze on September 03, 2011, 11:22:22 AM
orthographic camera and through camera projection.  Ihave an image map of footsteps going into the displacement input of a surface shader
Title: Re: rotating an image map
Post by: mhaze on September 03, 2011, 11:29:46 AM
here's an image
Title: Re: rotating an image map
Post by: freelancah on September 03, 2011, 11:30:37 AM
I'm not 100% but I suspect you cant use transform shader to rotate camera projections, the only solution would be to rotate the projection camera itself or change the projection type to PlanY
Title: Re: rotating an image map
Post by: mhaze on September 03, 2011, 11:35:53 AM
thanks anyway, I just realized myself that I can rotate the camera and that does it - that could be really useful in the future why didn't I think of that before so simple and so obvious. Hah
Title: Re: rotating an image map
Post by: dandelO on September 03, 2011, 11:38:24 AM
Yes, that's right. To rotate an image map with a transform shader you need to use one of the 'planned' projection methods.

I'd think you want the footsteps to go between the mounds in the preview? To do that, use the 'Y' value in your camera's 'rotation' field to turn the image with the camera view, looks to me to be about an extra -15 to -25 degrees you'll need.
Title: Re: rotating an image map
Post by: dandelO on September 03, 2011, 11:38:58 AM
Doink! You beat me to the post, mhaze. :)
Title: Re: rotating an image map
Post by: mhaze on September 03, 2011, 12:16:25 PM
that's life ;)

Thanks all the solution came to me through you prodding me to rethink
Title: Re: rotating an image map
Post by: Dune on September 04, 2011, 03:53:08 AM
Here's another solution.
Title: Re: rotating an image map
Post by: mhaze on September 04, 2011, 04:56:21 AM
Interesting will this rotate other shaders too?
Title: Re: rotating an image map
Post by: dandelO on September 04, 2011, 07:55:00 AM
Sure will, that's how I made this little whirlwind, before rotation controls were available in the transform shader, I rotated a fractal blended by a simple shape shader(the better examples are on page 2)... http://forums.planetside.co.uk/index.php?topic=10895.0