Jump to content

Misc_portal_surface and Misc_portal_camera help.


Go to solution Solved by Zabuza,

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...