Piorun Posted January 5, 2014 Share Posted January 5, 2014 Hi, I thought today about new event called onClientWorldRender. When it would work? Before world rendering. It could give more oportunities for creating 3d HUD etc. What u think? Link to comment
DiSaMe Posted January 5, 2014 Share Posted January 5, 2014 onClientPreRender? This event is triggered every time before GTA renders a new frame. Link to comment
Piorun Posted January 5, 2014 Author Share Posted January 5, 2014 Yup its good, but here: https://wiki.multitheftauto.com/wiki/Gam ... sing_Order we see that MTA draws lines (including material lines) AFTER world rendering. Link to comment
myonlake Posted January 7, 2014 Share Posted January 7, 2014 And so what's the big deal? It would do the same thing if there was onClientWorldRender event. In fact, I think it wouldn't even work simply because world has to be drawn first before anything else. Link to comment
diegofkda Posted January 8, 2014 Share Posted January 8, 2014 I guess you're getting it wrong. It's not needed to draw the hud behind of anything to make it 3D. A 3D hud can be easily done by doing math equations, but has nothing to do with the kind of rendering. Anyway, I don't really understand your point as you wanted to render it 'before' the world first, and then you wanted to render it after the world. However, useless. Link to comment
Piorun Posted January 12, 2014 Author Share Posted January 12, 2014 Example: I want to create 3D HUD (for ex. attached to weapon). Its ok im rendering and then .. whoops - rendered material line disapear in world elements like buildings, cars even players. Anyway there is another option to add 3rd dimension for rotation in dxDrawImage dxDrawImageSection. That would be really OK. Link to comment
ixjf Posted January 12, 2014 Share Posted January 12, 2014 There are already functions to draw 3D lines which can also be used to draw other primitives: dxDrawLine3D, dxDrawMaterialLine3D and dxDrawMaterialSectionLine3D. Link to comment
Piorun Posted January 12, 2014 Author Share Posted January 12, 2014 Ok, but: I want to create 3D HUD (for ex. attached to weapon). Its ok im rendering and then .. whoops - rendered material line disapear in world elements like buildings, cars even players. Link to comment
DiSaMe Posted January 12, 2014 Share Posted January 12, 2014 Then maybe you should try drawing them closer to camera? Link to comment
Recommended Posts