Zabuza Posted December 10, 2013 Share Posted December 10, 2013 Hey there JKHub community, I am having troubles getting a "camera" to work with misc_portal_surface and misc_portal_camera. The camera will be used to look upon another part of the map. So far, I can get a mirror to work but the camera isn't. What I've done: I have the portal_surface pointing towards the portal_camera and the portal_camera pointing at a target_position. The portal_surface is 32-64 map units away from the mirror shader The brush that contains the shader is textured with the system/nodraw texture except for the surface facing the player. Here's the shader I'm using (and yes I know it says mirror but it should still work with a camera ): textures/testmap/mirror_test { qer_editorimage textures/testmap/qer_mirror2 portal q3map_nolightmap { map textures/testmap/qer_mirror2 blendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA depthWrite } { map textures/testmap/screen blendFunc GL_DST_COLOR GL_SRC_COLOR alphagen portal 2048 } Any and all help is appreciated! Link to comment
Solution Zabuza Posted December 11, 2013 Author Solution Share Posted December 11, 2013 Fixed. Instead of using my custom shader I used the shader "camera" in the ... camera folder. Herp derp Morabis, Key, Circa and 1 other like this Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now