Jump to content

Rendering 2D on top of 3D?


Cobradile

Recommended Posts

I'm making a 3D game for the Atari Jaguar game jam, and am using the Jaguar SDK. I gotten myself familiar with the 3D demo and learned how to import my own models to it.

I'm at the stage where I need to render 2D sprites on top of the 3D for things like the HUD and menus (or as billboard sprites?). However, there are no demos for doing so in C, so need to use assembly.

I'm not familiar with assembly at all, but I found the code to load up the bitmap from one of the demos and added it to the video code of my project, but the closest I've gotten to it working is it flashing the sprite on the screen and then just a black screen. I've attached a txt of the code if you want a look at that.

I've been told about the removers' library for 2D. Can this be used for what I want to achieve?

What do I do?

video.s.txt

Link to comment
Share on other sites

18 hours ago, Cobradile said:

I'm making a 3D game for the Atari Jaguar game jam, and am using the Jaguar SDK. I gotten myself familiar with the 3D demo and learned how to import my own models to it.

I'm at the stage where I need to render 2D sprites on top of the 3D for things like the HUD and menus (or as billboard sprites?). However, there are no demos for doing so in C, so need to use assembly.

I'm not familiar with assembly at all, but I found the code to load up the bitmap from one of the demos and added it to the video code of my project, but the closest I've gotten to it working is it flashing the sprite on the screen and then just a black screen. I've attached a txt of the code if you want a look at that.

I've been told about the removers' library for 2D. Can this be used for what I want to achieve?

What do I do?

video.s.txt 8.38 kB · 1 download

Yes, a custom display manager was added to the Removers' library so it can use the 3D renderer from the Jaguar SDK.

This demo uses the 3D renderer from the Jaguar SDK trough the Removers library. Note the cockpit image, e.g. a large sprite put in front of the 3D rendering area. Also the Removers' library is used for playing the music you hear in the background. Not recorded so well because the sound come from a pair of headphones in front the the mobile phone I used to record this video, but you get the idea:

PS. If you are interested, please PM me and I can share some code.

Edited by phoboz
Link to comment
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

Loading...
×
×
  • Create New...