Community Forum

How to create render texture?

Forum Overview >> Scripting

CategoryScripting
Created19.11.2014 15:23


Slavo Ls Modding (SLAVO) 19.11.2014 15:24
I want create texture for render viewport from camera. I see on youtube and i find video where can render video to texture. https://www.youtube.com/watch?v=LQOjtvNFtro Please help me.

I want render video from my rear camera to screen in cabine - in PC monitor. I have in PC monitor plane with empty texture. I want render video from rear camera to this plane.

Slavo Ls Modding (SLAVO) 22.11.2014 21:20
Here is example.....PLS HELP me with this:

http://www.opengl-tutorial.org/intermediate-tutorials/tutorial-14-render-to-texture/

Emil Drefers (Unknown) 10.12.2014 10:06
Hi,

you can't use openGL stuff in LUA directly, you can only use the available engine functions.

But there are possibilities to do, what you want to do.
There is even a mod, which does exactly what you wanto to do.

http://www.landwirtschafts-simulator.de/mod.php?lang=de&mod_id=163&title=fs2013

Well, the mod is for FS13, but i think the used functionalities for rendering a second view could work in FS15 as well.

Cheers,
Emil

Slavo Ls Modding (SLAVO) 10.12.2014 10:25
Hi Emil,

thanks, but my idea is rendering video to texture or plane in my cabine. I dont want render to screen with lua funciotn - overlay:render() - I dont want render to viewport...

I want render video from my back camera to 3D display in cabine. If you know what I mean.

Thanks,
Slavo


Note: Log in to post. Create a new account here.