MODSonline
  Welcome Guest to MODSonline Home | Forums | Register | Login
Main-Menu
Home
Login
Register
Add Download
Add News
Add Tutorial *
Forums

Advertise
Affiliate Store US *
Affiliate Store UK *
Affiliate Store CA *
Angry Letter Generator
Avatar Upload
Calendar of Games
Contact
Downloads
FAQs
Forums
Member List
Member Projects
News
News Grabber *
Policy
Polls
Private Messages
Reviews
Screenshot Gallery
Search
Servers - Game
Store - Shirts *
Subscribe
Topics
Tutorials
Weblinks
Wiki *
Tutorials
CoD Mapping
CoDUO Mapping
CoD2 Mapping
CoD4 Mapping
CoDWW Mapping
CoD FAQs
HL2 Mapping
HL2 FAQs
SOF1 Mapping
Crysis Mapping
Q4 Mapping
Doom 3 Mapping
Doom 3 FAQs
UT2K3 Mapping
SOF2 Mapping
SOF2 FAQs

Lightray Modeling
General Modeling
General Modding
Adobe Photoshop
Common Mapping Errors

Readme.txt Generator
Members-Online

0 Members and 14 Guests
Chat MODSonline
0 People Now Chatting
MODSOnline TeamSpeak

download TeamSpeak

In-The-News
Friday, Nov. 21st
CoD:WW Video Tutorial is up!
Friday, Nov. 21st
MODSonair Episode 154
Thursday, Nov. 20th
Call Of Duty World At War - Mod Tools
Wednesday, Nov. 19th
Half-Life 1 $0.98
Sunday, Nov. 16th
MODSonair 154 Live
Latest Poll
Would you pay for mod tools?
I would pay a one time fee for mod tools for my favorite title 8.46%
I would pay a monthly/yearly subsrciption fee for mod tools for my favorite title 0.5%
I already paid for the game - Tools should come bundled because I am just fixing what the developers broke 68.16%
100% definitely NOT! 18.91%
I haven't seen a game yet that wasn't 100% perfect when the developers released it 2.49%
Games are the devil! 1.49%
Read More...
16 comments

Newsletter
Name:
Email:
Newsletter Archives
Your Membership
User Name:
Password:
Register.
In The Forums
Running a mod with downloads from redirect
CoD:WW Scripting.. Posts: (2) Views: (8) by Tally
[WIP] SP_Paradise
CoD 4 Single Pla.. Posts: (17) Views: (532) by starkk
Spawn = screwed up
CoD:WW Level Des.. Posts: (1) Views: (11) by starkk
Question: Portal Test
CoD 4 Level Desi.. Posts: (4) Views: (57) by JerryAtricks
Art of War Central Half-Life 2 Mods for Dummies
CoDWW Download
Forums
MODSonline.com 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 Editing, Gaming, and Design
Mapping, modeling, scripting, skinning and all forms of editing for the game Soldier of Fortune II
Moderators: foyleman, narc, ReverendTed, rEdrUmMDK, Foxhound, PleaseMYOB, batistablr, Welshy
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access subscribe
Author Topic: Portals / cameras
PsychoMark~rb
General Member
Since: Dec 23, 2006
Posts: 215
Last: Dec 23, 2006
[view latest posts]
Level 4
Category: SoFII Editing, Gaming, and Design
Posted: Sunday, Oct. 12, 2003 02:22 pm
I've been trying to follow this tutorial to get the portal/camera to work. If I put the portal shader on my "viewer" I get nothing. The face simply appears to be invisible. I tried covering my whole brush in the _portal shader, tried only the front, but nothing will work. The only thing I got working is turning it into a mirror, and that's not what I want :(.

Is there anyone who has been succesful in doing a portal in SOF2?


Thanks in advance!
PsychoMark~rb
General Member
Since: Dec 23, 2006
Posts: 215
Last: Dec 23, 2006
[view latest posts]
Level 4
Category: SoFII Editing, Gaming, and Design
Posted: Sunday, Oct. 12, 2003 02:58 pm
Why is it that you always find the answer after you post a thread? :D. Anyways, for anyone else struggling with it, I copied the shader from this tutorial and it worked great!
ooFunk~rb
General Member
Since: Dec 23, 2006
Posts: 25
Last: Dec 23, 2006
[view latest posts]
Level 1
Category: SoFII Editing, Gaming, and Design
Posted: Tuesday, Oct. 14, 2003 08:16 am
Dude....

Have you actually got this to work?? I tried many moons ago but found out that it didnt work.

Man i need this if it does work..

Funk
ooFunk~rb
General Member
Since: Dec 23, 2006
Posts: 25
Last: Dec 23, 2006
[view latest posts]
Level 1
Category: SoFII Editing, Gaming, and Design
Posted: Tuesday, Oct. 14, 2003 08:33 am
Cool dont worry.. that tut is good...
PsychoMark~rb
General Member
Since: Dec 23, 2006
Posts: 215
Last: Dec 23, 2006
[view latest posts]
Level 4
Category: SoFII Editing, Gaming, and Design
Posted: Tuesday, Oct. 14, 2003 08:35 am
Yeah it works, here's the screenshot... just added a quick TV-like screen which'll definitely not be there in the final map...


Two things to note:

1. The portal shows a 3D rendering of the camera as if the scene was actually there. Like in a mirror, when you move, the viewpoint also moves (as you can see in the screenshot, the camera shows a little more of the left side, while it shows both sides equal when standing right in front of the "TV")

2. It kills FPS. I normally get at least 60 FPS standing there. When I accidentally forgot to pass-protect my testserver and 4 people were suddenly playing in it, 10 FPS was no exception. For this reason I will only use a portal in a secret area where you can see people die (if a player falls on the rails they will be teleported before dying so it seems they've stopped moving through the tunnel)... I wouldn't recommend using it anywhere in normal gameplay...



...well, I was gonna try to explain it, but it seems you figured it out in the meantime :D. If anyone else needs a small tutorial, just ask...
rkcrazybite
General Member
Since: Jan 16, 2008
Posts: 2
Last: Jan 29, 2008
[view latest posts]
Level 0
Category: SoFII Editing, Gaming, and Design
Posted: Monday, Jan. 28, 2008 02:24 pm
shame that one line was left out the shaders file that awesome-o wrote.

If you try to use it radiant errors at line 15 in that file.

Here's the shaders file that works fine:
--------------------------Copy/Paste-----------------------------
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
}
}
-----------------------Copy/Paste--------------------------------
into a new textfile and save it as my_portal.shader (use all file extensions tab when saving as)

then for a_portal.tga (can also be a_portal.jpg) and a_portal2.tga
You can download them by reading through here
You'll need to save these two files in C:\SOF2SDK\Base\textures\my_portal\

If you want to use the images click textures and you'll see that my_portal entry (alfabetical order?) and your textures.

Your new my_portal folder and shader file need to be in your pk3 file. Don't forget the shaderlist.txt in the shader folder..

- Hope this helped more-less?
Restricted Access Restricted Access subscribe
MODSonline.com Forums : Soldier of Fortune : SoFII Editing, Gaming, and Design
All logos and trademarks and information in this site are property of MODSonline LLC © 2008.
The comments are property of their posters.
RSS news feeds for MODSonline can be found News.php.
Art of War Central
Partners
Battle for Europe COD2
XoXide
The Firing Box
Frag Universe
modbase.be
Call of Duty Headquarters
CODAddicts - Call of Duty News & Downloads
Ask About
Advertising
Friends
Volcano
CoD 4 Base
SOF2 Files and Downloads
Ask About
Advertising
Link to Us
MODSonair
View in iTunes
Please help us to raise in the ranks of podcasting and subscribe to our itunes feed using the link above.
MODSonair Releases
MODSonair Episode 154
MODSonair Episode 153
MODSonair Episode 152
MODSonair Episode 151
Video server move
Next Show
The next MODSonair show will air LIVE on:
11/23/2008 12:00 EST

Time remaining:
Copyright © 2008 MODSonline
Tresware Content Management System Copyright © 2008 Tresware
Website Designed and Hosted   Tresware