💬

Community answer

Collected from the ACE community Discord archive around 2024-02-19. It may be informal or outdated — anyone can edit this page to improve it. Original discussion

Drawing a prop/hologram into a render target material

🧠 LogicUpdated 2 days ago•0 views
The 'render' hook has a 3D context so holo:draw() works directly; once you selectRenderTarget you only have a 2D context - use render.pushViewMatrix with type="…

How to draw a prop to a material on a screen / inside a render target

The 'render' hook has a 3D context so holo:draw() works directly; once you selectRenderTarget you only have a 2D context - use render.pushViewMatrix with type="3D" plus origin/angles keys to specify the view, then draw, then popViewMatrix. The holo_draw example works if you change drawhud to render. RenderTargets are limited (20 by default) and each material needs its own RT - don't reuse one name.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.