Jump to content

Render on top of initial render

Recommended Posts

I'm trying to get a 3D character to display on top of the screen as part of the HUD (so unaffected by anything in the scene as if it's it's own scene).


How could I achieve this effect?

Share this post

Link to post

Anything you draw after world->Render() will be drawn ontop of the world - so an alternative approach would be to use the RTT( render to texture ) tutorial and and render the character as a transparent sprite ontop.

Share this post

Link to post

@Aggror: I tried that, and it works to some extent, but when you use a mesh with multiple textures, the textures start cutting through each other. With the character I'm using, the person starts to look like a zombie. biggrin.png


@Genebris and Guppy: That looks like it should work. Thanks! I'll test later today.


Edit: I tested it, but the game crawls after that. I think I'm just going to take a much simpler route with prerendered images of the characters since this would be quicker and easier to implement.

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...