Jump to content

3D minimap with second camera position


Awang

Recommended Posts

Posted

Hello everybody! :D

 

I'm new in the foum, and I have a question for you guys ( what a suprise :o:D) . I found this video on the internet, but I haven't got any idea, how the scripter made this.... Have you got any ideas guys? I really want to make something like this, couse I have an own city in SA and I haven't better idea, how to make possible the minimap :/

Thank you guys for our help, and in last case, sorry for my bad English :D

Posted (edited)

Pretty sure it's based on the rear-view mirror script. Basically, you switch the camera every frame back and forth - effectively cutting your FPS in half(hence the awkward flickering of objects as well, another side effect). You then render the other camera on a render target.

It's not efficient and not a very good solution, but as of now it's the only way to do it.

Edited by Dealman

If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.

Posted
12 minutes ago, Awang said:

So, if I understand clearly, if the player have, for example 30fps, its decrease to 15fps?

Pretty much yes. Since you'll be switching to another camera matrix every consecutive frame. For example;

Frame 1: Car
Frame 2: Overtop view
Frame 3: Car
Frame 4: Overtop view

And so on...

If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.

Posted

I can see now... But I think, if I want I can update the second position less time, for example each third frame... Am I sure?

Posted

Well, I guess, but that would result in a very choppy experience and wouldn't look all that great. By all means download the rear-view mirror script from the community and check out how he did it. Play around with it.

If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.

Posted

Did anyone ever try to find out how that big screen in the LS Stadium works?

It shows the player from a different position, so there maybe  is some actual second camera stuff going on.

Posted
11 hours ago, Bonsai said:

Did anyone ever try to find out how that big screen in the LS Stadium works?

It shows the player from a different position, so there maybe  is some actual second camera stuff going on.

Is't it working with the Browser functions?

Resources I made:

Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!

 

Posted
16 hours ago, Bonsai said:

Did anyone ever try to find out how that big screen in the LS Stadium works?

It shows the player from a different position, so there maybe  is some actual second camera stuff going on.

Interesting point, might be something the MTA devs could take a look at?

5 hours ago, Tekken said:

Is't it working with the Browser functions?

I think you misunderstood him entirely :P

If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.

Posted

If I'm correct Renderware does support multiple cameras. SA might be using another camera (View point) to render the screen in the stadium. If some how we could get a function to create another view point then that would add a whole lot of possibilities; including this, but also proper vehicle reflections, rear view mirrors (With out frame lag), etc.

Wolf Inc Discord

Youtube channel
Github

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...