Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 7 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Soldier of Fortune
Category: SoFII Mapping
Mapping, modeling, scripting, skinning and all forms of editing for the game Soldier of Fortune II
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Tutorial: Adding a camera to a map
awesom-o
General Member
Since: Oct 15, 2005
Posts: 25
Last: Apr 29, 2006
[view latest posts]
Level 1
Category: SoFII Mapping
Posted: Saturday, Apr. 1, 2006 09:29 am
Quote:
my_portal.shader
-------------------------
textures/my_portal/portal_tex
{
qer_editorimage textures/my_portal/a_portal.tga
surfaceparm playerclip
surfaceparm nolightmap
portal
{
map textures/my_portal/a_portal.tga
blendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA
depthWrite
alphaGen portal 2048
}
}

textures/my_portal/portal_tex2
{
qer_editorimage textures/my_portal/a_portal2.tga
surfaceparm playerclip
surfaceparm nolightmap
portal
{
map textures/my_portal/a_portal2.tga
blendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA
depthWrite
alphaGen portal 2048
}
}


1. make an enity misc_portal_camera
2. push n (add noswing) (targetname: cam1) (target: eye1)
3. add an enity info_notnull (targetname: eye1)
4. the camera will look trough cam1 in the direction of eye1
5. now u made your camera so now to add a tv to look at it :)
6. make a brush with one side (my_portal/portal_tex)
7. make an enity misc_portal_surface (target: cam1) and place it near the portal_tex texture

You're done :D

ps: don't add two portal_tex for 2 different camera close together else one will not work

edited on Apr. 1, 2006 04:34 am by awesom-o
Share |
AcE
General Member
Since: Nov 19, 2003
Posts: 459
Last: Feb 28, 2008
[view latest posts]
Level 5
Category: SoFII Mapping
Posted: Saturday, Apr. 1, 2006 11:34 am
Good info [thumbs_up]
Share |
awesom-o
General Member
Since: Oct 15, 2005
Posts: 25
Last: Apr 29, 2006
[view latest posts]
Level 1
Category: SoFII Mapping
Posted: Saturday, Apr. 1, 2006 11:54 am
ty

make sure u add the my_portal shader in the shader directory of your file else it won't work
Share |
foyleman
Preferred PLUS Member
Since: Nov 7, 2001
Posts: 95762
Last: Apr 13, 2021
[view latest posts]
Level 10
Admin
Forum Moderator
Im a fan of MODSonair
Im a HOST of MODSonair
Category: SoFII Mapping
Posted: Saturday, Apr. 1, 2006 12:24 pm
added to the tutorials sections. thanks.
Go ahead... You Play I Mod : Support Modsonline by becoming a PREFERRED MEMBER today!
Have you heard the MODSonair Podcast?:
MODSonair is a weekly podcast bringing you the news from a modders perspective.
Tune in every Sunday at 12pm EST to listen LIVE.
Quake 4 Mods for Dummies - Half-Life 2 Mods for Dummies
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Soldier of Fortune : SoFII Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»