I wanted to make a mirror effect and that's what I did:

1) I made a fully white image using a paint programme ,then saved it as .pcx
2) I put the sprite in the level using WED ,then attached it to an action
3) In the code, before the sprite action, I defined a view with with pos_x ,pos_y = 0 and size_x ,size_y equal the same size of the sprite that is smaller than that of the screen resolution and with SHOW and CULL_CW flag set
4) In the action attached to the sprite, I set its pan angle to 360 to be oriented, then set x, y, z, pan, tilt and roll of the view equal to those of the sprite (my). After that, I added that line


mirror_view.bmap = bmap_for_entity(my,0);


The problem is that the view is rendered over the screen instead of the sprite texture bitmap

Thank you for reading and any help will be appreciated

Last edited by The_KING; 06/28/13 02:05.