JeViCo Posted April 20, 2018 Posted April 20, 2018 (edited) Hello everyone. Can i draw somehow gta objects in 3D? I mean i spawn a vehicle somewhere and i show it in my window like this: https://auto.ndtvimg.com/car-images/medium/mercedes-amg/gla-45/mercedes-amg-gla-45.jpg I don't want to spawn a car in front of player especially when i want to display several cars p.s. sorry for my bad english Edited April 20, 2018 by Juuve
LilDawage Posted April 20, 2018 Posted April 20, 2018 try to use createStaticImage (here put the size and the Cordi...lile ( 80,20,25,25) ," Name of image .png" ) --------------------------------then the Image will be showing in your Window RPG/CnR servers Developer , You want help ? contact me on discord >>>lilDawage#8508<<< i'm at your Service 10/24 hours 7/7 days , >>>Welcome<<< Asking Discord Channel JOIN US ON here , you are welcome 10/24 active
JeViCo Posted April 20, 2018 Author Posted April 20, 2018 (edited) 17 minutes ago, LilDawage said: try to use createStaticImage (here put the size and the Cordi...lile ( 80,20,25,25) ," Name of image .png" ) --------------------------------then the Image will be showing in your Window i don't want to take picture of each vehicle . I'm going to make little dxCreateScreenSource (image) of this vehicle and i need some sort of advice for this action --- i haven't done it before Edited April 20, 2018 by Juuve
Awang Posted April 20, 2018 Posted April 20, 2018 You may want like @Ren_712's object viewer can do... You should check the resource:https://community.multitheftauto.com/index.php?p=resources&s=details&id=11836 1
JeViCo Posted April 21, 2018 Author Posted April 21, 2018 20 hours ago, Awang said: You may want like @Ren_712's object viewer can do... You should check the resource:https://community.multitheftauto.com/index.php?p=resources&s=details&id=11836 Thank you and @Ren_712 for this script. I was looking for it but This is a shader or vehicle problem? I can simply draw something on back to hide holes but can i fix it somehow? 1
JustinMTA Posted April 21, 2018 Posted April 21, 2018 (edited) 11 hours ago, Juuve said: Thank you and @Ren_712 for this script. I was looking for it but This is a shader or vehicle problem? I can simply draw something on back to hide holes but can i fix it somehow? The window/lights need to be placed below the rest of the car in the hierarchy treeview of a modeling program maybe. Add me to Skype. Edited April 21, 2018 by JustinMTA I can do 3D vehicle/object mods and basic scripts from scratch, contact me for free help!! Skype/Discord/Telegram: [email protected] / Justin|X5|#0977 / @JustinX5 Xtreme 5 Gaming - COMING SOON! I'd love it if more people in MTA utilized these amazing features, so please ask me anything related to 3D modeling/basic scripting/etc. The expert knows more and more about less and less until they know everything about nothing.
Ren_712 Posted April 21, 2018 Posted April 21, 2018 14 hours ago, Juuve said: Thank you and @Ren_712 for this script. I was looking for it but This is a shader or vehicle problem? I can simply draw something on back to hide holes but can i fix it somehow? @Juuve It's not really a vehicle problem, that's how the alpha channel is handled in this effect. I'd have to rewrite it ... If you don't want draw the vehicle post gui use this: https://www.solidfiles.com/v/mdy5QRqrMraZ2 or use non mrt variant instead 1 I make shaders .. mainly. My community resources I'll do some custom stuff, I'm open for cooperation.
JeViCo Posted April 22, 2018 Author Posted April 22, 2018 (edited) 7 hours ago, Ren_712 said: @Juuve It's not really a vehicle problem, that's how the alpha channel is handled in this effect. I'd have to rewrite it ... If you don't want draw the vehicle post gui use this: https://www.solidfiles.com/v/mdy5QRqrMraZ2 or use non mrt variant instead Thank you! Using non mrt shader solved my problem But now i can't place any image on the background. I used dxDrawImage. As the game ordering says i should use onClientPreRender to draw the image (before fx) but it becomes invisible then. I can also create an object, draw an image on it and set player's camera position facing toward the object. But i don't think that this is a good idea\ p.s. PostGUI and second render target options don't work with this shader for some reason Edited April 22, 2018 by Juuve
Ren_712 Posted April 22, 2018 Posted April 22, 2018 (edited) the nonMRT effect transforms view and projection matrix to render the resized object/vehicle/ped close to the near clipping plane. So the vehicle is drawn on the screen when "GTA draws world'. the MRT effect draws the vehicle to a renderTarget that can be drawn dxDrawImage (onClientRender). Example: https://nightly.multitheftauto.com/files/shaders/shader_multi_rt_test.zip Edited April 22, 2018 by Ren_712 2 I make shaders .. mainly. My community resources I'll do some custom stuff, I'm open for cooperation.
JeViCo Posted April 23, 2018 Author Posted April 23, 2018 16 hours ago, Ren_712 said: the nonMRT effect transforms view and projection matrix to render the resized object/vehicle/ped close to the near clipping plane. So the vehicle is drawn on the screen when "GTA draws world'. the MRT effect draws the vehicle to a renderTarget that can be drawn dxDrawImage (onClientRender). Example: https://nightly.multitheftauto.com/files/shaders/shader_multi_rt_test.zip ok, i understand it now. Thank you!
Ren_712 Posted May 8, 2018 Posted May 8, 2018 @Juuve https://community.multitheftauto.com/index.php?p=resources&s=details&id=11836 1 I make shaders .. mainly. My community resources I'll do some custom stuff, I'm open for cooperation.
JeViCo Posted May 9, 2018 Author Posted May 9, 2018 17 hours ago, Ren_712 said: @Juuve https://community.multitheftauto.com/index.php?p=resources&s=details&id=11836 Thank you so much! I also combined it with setDistanceSpread function and got exactly what i wanted. Thank you again!
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