Jump to content

LED display. View from camera in real time on e.g. billboard


polakg1140

Recommended Posts

Hi. I'm the begginer in LUA, and I have a few questions about displaying previously set camera target on e.g. billboard.

Please give me some advices what functions i must use to obtain this effect.

Thing what i want to do:

  • displaying previously set camera target on e.g. billboard
  • if is possible real time changes camera target in specified time

If I use the functions listed below will be able to do something like that?

dxCreateScreenSource 

DxDrawImage 

fadeCamera 

setCameraTarget 

setTimer 

Please targeting me how to do this, because I have no idea.

Thanks in advance.

(Sorry for my english, but I write about it in my native language (Polish) forum, and Global moderator dzek (varez) told me to write here)

Link to comment

You should first get the position of the billboard.

Then setCameraTarget, I do not know what you mean by the second point, but I think you me so it happens realistically, if that's what you mean, then it should already do it after setCameraTarget (Remember, to be able to set Camera target as x, y ,z it must be Client Side)

Link to comment
  • Moderators

use:

setCameraMatrix 

Require the X,Y,Z of the place were the camera starts, and the X,Y,Z were the billboard is.

  
function myFunction () 
end 
addEventHandler("onClientRender",root,myFunction) 
getTickCount() 

variables.....

maybe a table for the camera locations.

You don't need:

setTimer -- because you have tickCount..... 
dxCreateScreenSource -- why you need this? 
setCameraTarget -- because that isn't just going to work on objects..... 

And no I am not going to build it for you.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...