Jump to content

Draw a rotated image (texture)


Soamp
 Share

Recommended Posts

Hi,

How can I draw a rotated image (texture)?

 

I cant use a 3d model parented to the camera (like the compass model) because I need alpha blending.

I'm trying to make a "shot angle indicator" that draws a blood arc on screen, shows the angle that FPS character has been shot from.

Link to comment
Share on other sites

thanks guys,

I thought about moving the model to transparency world, but I need to change the alpha value in code. Can I change the transparency of a model in real time with code when it's in transparency world?

 

you know I need texture rotating for another reason too. I'm making a minimap on corner of screen (like any FPS game). I have a big texture as game map, I show player a part of map that the player is in. I use GUI panels with alpha value of 0.0 to show the part and value of 1.0 to hide rest of the map.

 

In most FPS games, the map rotates when character rotates, I want to do it too. so I kinda need texture rotating for this reason too.

 

does anyone have any idea how to do it?

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.
Note: Your post will require moderator approval before it will be visible.

Guest
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.

 Share

×
×
  • Create New...