Jump to content
  • Advertisement
Sign in to follow this  
commy2005

Rotate bitmap arbitrary -WIN32 3d viewer

This topic is 4822 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi expert and guys including ladies, I really tearing my hair out of my head.I still cannot rotate a bitmap in 3d-space.I read the gamedev's Bitmap Rotation by Mike Morton.I still having problem.:( ..I ohpe someone could give me a good explaination on it.I can't seem to rotate a bitmap on the 3d-space.I could rotate in x and y but not z yet.Hope someone could give me an idea doing it.:( confused, commy [Edited by - commy2005 on July 12, 2005 2:05:12 AM]

Share this post


Link to post
Share on other sites
Advertisement
I was writing in Win32 not directx.:( ...I found it hard to figure out that part on the Win32 program.Thanx for your reply

Share this post


Link to post
Share on other sites
You don't want to do this with Win32 API, especially if you are not an experienced programmer. Start learning OpenGL or DirectX - they are industry standard for 3D games. They are hardware optimised and relatively easy to work with. Or, you could make it even easier on yourself and start with SDL or some other library that simplifies their use - they are kind of confusing, and I sometimes struggle with them, being no expert myself. Best of luck to you.

Share this post


Link to post
Share on other sites
a) Create a Quad in 3D space
b) Texture map the bitmap onto the Quad
c) Apply the Rotation Matrix to the Quad

Share this post


Link to post
Share on other sites
Acepilot suggestion sounds more like Directx to me.I did that in directx.It was so easy and much more convienent than Win32.Win32 is a killer man if you need to write out the rotation algo function to use it.I finally believe that I need to start on Directx now.I have been stuck in Win32 for a while.Didn't have that courage to jump into directx,but I guess finally is time.

Thanx guys.All the best for you guys who replied me.

commy2005

Share this post


Link to post
Share on other sites
I dont know about you but It was heck a lot easier in OpenGL.

You don't really have to write your own rotation routines in Win32, you
can use existing 3D math libraries. The fact is, that Win32 isn't really built
for 3D, so it's better to just not bother with Win32.

Good luck with your switch to DirectX,

AcePilot

Share this post


Link to post
Share on other sites
Thanx acepilot,thanx for good luck charm.I actually came across a 3d viewer in WIN32 just then while I was googling.I was not happy when I found out that there are such things in the NET.I found out that it was really hard but I can't seem to figure out how to map a bitmap(or others format) to it. If you interested,maybe I will post the link for it.

Commy

Share this post


Link to post
Share on other sites
Yeah,you can..but If you find out how to map texture to it let me know,mates!

here is the link:
http://www.codeguru.com/Cpp/G-M/multimedia/graphics/article.php/c4727/

If you have any chance to get the texture part working,at least write a article about it.Or let me know how you do it.I want to map texture to it too.Of course the speed of the stuff are too slow to use for games.But I wish I could change the way it is to map texture like direct3d does.

regards,
Commy

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!