multiple cameras to textures

Blitz3D Forums/Blitz3D Programming/multiple cameras to textures

Hardcoal(Posted 2013) [#1]
Hi. Im trying to transmit multiple cameras to multiple textures.

For example if i have a racing game and i have two mirrors.

Ive managed to produce only one mirror but the second mirror keeps displaying the same image as the first!

And i did renderworld twice while changing the target buffer to the different texture.
Still not working.
Erm. Dont know why


RemiD(Posted 2013) [#2]
Try to use only one Camera and 2 pivots.
Position rotate each pivot as you want.
Then each loop, position rotate the camera like the first pivot, set the size of the viewport as you want, set the rendermode as you want, renderworld, copy the image to another imagebuffer with copyrect.
Then do the same thing with the other pivot.
You will have 2 images that you can either draw one on top of the other, or copy in different texture buffers.


Hardcoal(Posted 2013) [#3]
Thanks RemiD
I Managed to do that. not in the way you said but still.
Im working with Xors3D along with Alba.
And I wanted to project into a Window To Camera Viewports.
I did everything right but the stupid was that alba works created a confusion
that only with hundreds of trail and errors i managed to solve.
AlbaLynx is not the easiest interface. althow the guy who made it is really friendly and helfule.

I ofter advice at blitz3d forum to get help for xors. thats one advantages of xors. but shame its a dying interface. still for now i use it.

but thanks any way.
still i didnt quite understood what u meant by creating two pivots
did you mean that i will switch the camera parent betwin the pivots?


RemiD(Posted 2013) [#4]

still i didnt quite understoof what u meant by creating two pivots
did you mean that i will switch the camera parent betwin the pivots?


You don't need to set the camera as a child of a pivot.
You can simply position rotate the camera like one pivot, do your render, then position rotate the camera like the other pivot, do you render.


Hardcoal(Posted 2013) [#5]
but what i dont understand is why do i need the 2 pivots for.
for keeping the coords?

you know i broke my head with this problem only to find that the reason of my problem was in alba and not in my code.
erm

anyway mate its all cleared as it is. i just want to know for the record
what ive asked above..

(omg understoof. you've quoted my typo:)