Jump to content

3D object image over screen


iPanda

Recommended Posts

Posted

Hello everyone!

I am interested in the question, what I can use to make draw a 3D object image over screen? To use it on top of other 2D DX functions. I know that this is possible in the MTA. Tell me, how do I do this and that I should use?

Example screenshot:

VYidgDVc32A.jpg

  • Moderators
Posted

Depends, you can render your peds as the image you showed me.

A far as I can see, that is what you want to do.

Or do you mean something else by 3D object image ?

And about what kind of files/formats are you talking about?

  • 5 weeks later...
Posted

Bumping the topic:

I have dealt with cameraMatrix lagging when cameraTarget is localPlayer. All the issues regarding scaling, positioning and rotating object are also out of the way. The video doesn't show the object being rendered in a separate RT but that will be an option.

Posted
Bumping the topic:

I have dealt with cameraMatrix lagging when cameraTarget is localPlayer. All the issues regarding scaling, positioning and rotating object are also out of the way. The video doesn't show the object being rendered in a separate RT but that will be an option.

Can you tell me how you did it pls ? :shock:

Posted
Can you tell me how you did it pls ? :shock:

Get 4x4 matrix of the camera, multiply by rotation matrix, change the position offsets, apply to the vehicle.

Then send camera position, forward vector, and roll to shader so we could recreate camera matrix (needed for fixing the "camera lag" i mentioned before). Then there is a matter of recreating the projection matrix - to make it easy to scale the object. And ofcourse making the vehicle render in front of everything else. Then we need to recreate a gtasa vehicle effect (shader). Lighting should not be affected by vehicle position and rotation. Done effects for peds and objects as well.

Still got some issues with volumetric shadows. But i guess it can't be helped.

Posted
What about video memory ie mean that the resource is demanding more powerful PC

It requires as much resources as if the object was rendered normally.

Posted

A player's real-time display can be?

example

that it clothed, etc.

And I can download your resource? the resource is not working

Posted
A player's real-time display can be?

example

that it clothed, etc.

And I can download your resource? the resource is not working

Works for every camera condition. Renders properly with current FOV setings. Will support every static world object, vehicle and ped elements. The resource is still WIP. So no download yet.

  • 3 weeks later...
  • 1 month later...
Posted

How can I make sure that the source createObjectPreview draw on the screen on top of all the elements of DX? Parameter postGUI=true does not help.

Posted
make sure you mut MRT argument true and yeah those players who have older ggraphic cards will not work for them :( I face the same problem :'(

I do not quite understand what I need to do.

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