Problem with camera shader on Mac but not windows.


(Teuthis) #1

Hi Folks,

I recently switched from Windows to Mac and running the MacRadiant gives me a little pain in the neck currently. Problem is that I successfully used a camera before (with the misc_portal_camera, misc_portal_surface entity) under windows but can’t get it to work with the MacRadiant. Enclosed the shader file which worked for me under windows.I also made sure that the shader is listed in the shaderlist.txt file and that I have all required textures and the shader file in the right folders. The shader has it’s white borders and the path in the shader file is correct (/textures/common/camera). Any suggestion to solve this problem is highly appreciated.

here the shader file that worked previously:

textures/common/camera

{
portal
surfaceparm nolightmap

{
    map textures/tutcam/portal_ground.tga
    blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
    depthWrite
}

{
    map textures/tutcam/portal_ground.tga
    blendfunc gl_src_alpha gl_one_minus_src_alpha
    alphagen portal 256
    rgbGen identityLighting    

}

}


(Teuthis) #2

No hint from the pros? I’m kinda stuck and Would Love to implement the Camera. Any help Would be appreciated.

Thanks


(acQu) #3

Sadly can’t help you, but you don’t describe it very well, you just say it doesn’t work. That is not much info there.

A guess in the wild: maybe check that entities.def thingy and see if your MacRadiant version supports misc_camera and all the other stuff you need.


(Teuthis) #4

alright, first of all thanks a lot for the hint. I thought I clearly emphasized what I did but you know sometimes it sounds strange for others but super clear to yourself. Anyhow, I’ll give it a try with the entities.def file. As you mentioned, the info for the misc_camera surface and misc_portal_camera might be corrupt. I thought if it appears in the Radiant the entities should work but what you say sounds reasonable. I’ll give it a try and keep you in the loop.

Thanks a lot acQu


(stealth6) #5

Well the problem with saying it doesn’t work is that we have no idea what doesn’t work?

  • You can’t see the entities in radiant?
  • You can’t compile the map?
  • You get a “hall of mirrors” effect in game?
  • You get shader missing in game?

Some things you could try:

  • Check the console for errors (both radiant and W:ET)
  • Take the bsp from windows and try it on mac (then you know if it’s W:ET or radiant giving you the problem)
  • Remove the misc_portal_camera (Then it should act like a mirror)

(Teuthis) #6

Sorry and understood.

  • I can See the entities in radiant
  • no Problems with Compiling, also the Log sheet After Compiling Reports no errors
  • no Strange mirrors when i Run the Map, the Screen Where the Camera is supposed to be is just grey
  • no Indikation of missing Shaders
  • Console does Not Report any errors

Will Try to Test the Bsp file no Windows as suggested (sincere Tranks for this Suggestion)
Also the Removal of the Portal Cam entity is a Great Suggestion.

Tranks a Lot. Your Suggestions are highly appreciated


(stealth6) #7

The misc_portal_surface has to be within 64 units of the screen. Are there multiple screens? If so they can’t be set up facing each other.