Page 1 of 1

rendertarget aspectratio an angle of view

Posted: 25 Mar 2015, 12:05
by s-petersen
hi there,
i have a realy simple setup:
color axis rendertarget texture texture rectangle

i will only send the mixed texture into a rendertagret to render it on another rectangle, both have the same aspect (1:1)

the rendertarget renders i project aspect, doesnt matter is screenaligned or not.
the rendered texture is also not centered, or it is "scenecentered", means my rendered texture is not centered on my rectangle.

if i put a projection between rendertarget and textures i can "calibrate" my rendered texture on my rectangle.
but,
now i want to safe the rendered texture into a folder, and the saved image showes the "original" (not projected) rendered texture.

vza is attached.

is this a bug, or i have to read the manual correctly?

cheers

Re: rendertarget aspectratio an angle of view

Posted: 25 Mar 2015, 15:59
by lerou
s-petersen wrote:vza is attached.
It's not ;)

cheers,
rou

Re: rendertarget aspectratio an angle of view

Posted: 26 Mar 2015, 11:42
by s-petersen
ups,

here it is.

Re: rendertarget aspectratio an angle of view

Posted: 26 Mar 2015, 17:42
by Karol
Where?

Re: rendertarget aspectratio an angle of view

Posted: 26 Mar 2015, 18:07
by lerou
s-petersen wrote:ups,

here it is.
After selecting the file you have to upload it. It's a bit confusing compared to other forums.

cheers,
rou

Re: rendertarget aspectratio an angle of view

Posted: 27 Mar 2015, 07:20
by s-petersen
i did.
ahhh, now i get the message...its too big.
so, here we are. next try.

cheers

Re: rendertarget aspectratio an angle of view

Posted: 27 Mar 2015, 07:56
by lerou
Hi,

I'm not completely sure what you want to achieve. But you do have a few nodes that transform your objects. Disable the axis in front of and the projection behind your rendertarget. Now the texture is centered. Also you should not apply a mapping to your rectangle if you expect the saved file to look exactly like your rendered rectangle. The texture mapping is applied during rendering, it is not applied on the stored file.

If you have no projection setup, the default projection is applied. And since you have a square texture, your result is not square any more (a 16:9 image is mapped to a square rendertarget). This is sometimes a bit confusing. You should use an orthogonal projection behind your rendertarget. Set it to width = 1, height = 1. Don't scale the rectangle and you'll get a completely filled rendertarget. Now apply that to your rectangle without any mapping and your texture fills up the whole rectangle.

Scale down the rectangle in the rendertarget and you'll shrink the texture on your target rectangle and the saved file.

If I misunderstood you and you wanted to achieve something else, please feel free to ask again :)

Attached is a file with the modifications I mentioned.

cheers,
rou

Re: rendertarget aspectratio an angle of view

Posted: 27 Mar 2015, 15:54
by s-petersen
hi rou,

got it. and start to understand the technical things behind that.
thnx a lot. helped in both ways ;)

cheers
sven