polakg1140 Posted January 11, 2014 Share Posted January 11, 2014 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
Lloyd Logan Posted January 12, 2014 Share Posted January 12, 2014 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 IIYAMA Posted January 12, 2014 Moderators Share Posted January 12, 2014 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
polakg1140 Posted January 12, 2014 Author Share Posted January 12, 2014 Okay. Thank you for help. But how I can display it on billboard for example? I must use DxDrawImage, and then will be displaying 'SetCameraMatrix' in real time? Link to comment
Renkon Posted January 13, 2014 Share Posted January 13, 2014 ScreenSource shal be used to create the texture for the billboard actually. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now