Soamp Posted September 23, 2010 Share Posted September 23, 2010 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. Quote Link to comment Share on other sites More sharing options...
Canardia Posted September 23, 2010 Share Posted September 23, 2010 The 3D compass uses alpha blending too, since it moves the model to the transparency world. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
L B Posted September 23, 2010 Share Posted September 23, 2010 The transparency world can handle alpha blending as long as the objects are not affected by any deferred rendering lights. Quote Link to comment Share on other sites More sharing options...
Canardia Posted September 24, 2010 Share Posted September 24, 2010 There are no lights in the transparency world. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Soamp Posted September 26, 2010 Author Share Posted September 26, 2010 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? Quote Link to comment Share on other sites More sharing options...
Canardia Posted September 26, 2010 Share Posted September 26, 2010 When the map rotates, your texture doesn't rotate. You just render the map with a rotated camera. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Recommended Posts
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.