You get the original View when using
m_flOffCenterBottom = 0.0f;
m_flOffCenterLeft = 0.0f;
m_flOffCenterTop = 1.0f;
m_flOffCenterRight = 1.0f;
Best would be to use ConVars and try out different values to figure out
how to use these vars. As far as i can see this really is what you
searched for.
- Archy

Torben Schou wrote:
> When I set OffCenter to true and set all the offsets to 0, it stops rendering 
> the world, but still renders the player weapon. Do you have any thoughts on 
> how these variables are meant to be properly used?
> 
> Cheers
> Torb
> 
> --- On Wed, 25/6/08, Julian Moschüring <[EMAIL PROTECTED]> wrote:
> 
>> From: Julian Moschüring <[EMAIL PROTECTED]>
>> Subject: Re: [hlcoders] Altering the Vanishing Point
>> To: "Discussion of Half-Life Programming" <hlcoders@list.valvesoftware.com>
>> Received: Wednesday, 25 June, 2008, 9:19 PM
>> It seems to me CViewSetup's OffCenter is offering
>> enought to do what you
>> want.
>> You will have to set
>> m_flOffCenterTop
>> m_flOffCenterBottom
>> m_flOffCenterLeft
>> m_flOffCenterRight
>> of CViewSetup too, when using OffCenter.
>>
>> -archy
>>
>> Julian Moschüring wrote:
>>> Sounds like you want to implement support for
>> something like this:
>>> http://www.youtube.com/watch?v=Jd3-eiid-Uw
>>>
>>> I don't think that there is a vanishing point you
>> just have to change
>>> implemented in the sdk. You will propably have to mess
>> with the
>>> projection matrix yourself.
>>> -archy
>>>
>>> Justin Krenz wrote:
>>>> I don't think you understand what a vanishing
>> point is.
>>>> Torben Schou wrote:
>>>>> Does anyone know if it's possible to alter
>> the
>>>>> position of the vanishing point? I ask, as I
>> want to
>>>>> make the view look natural if you're head
>> was off
>>>>> centre from the middle of the screen. For
>> example, if
>>>>> your head was to the right, the vanishing
>> point would
>>>>> located further left.
>>>>>
>>>>> As a starting point, I saw that there was an
>> OffCenter
>>>>> variable in the CViewSetup, but setting this
>> to true
>>>>> just screwed up the rendering.
>>>>>
>>>>> Worth mentioning is that I'm using the
>> Episode 1
>>>>> version of the Source engine.
>>>>>
>>>>> I've also asked this question on the Steam
>> forums:
>> http://forums.steampowered.com/forums/showthread.php?t=694407
>>>>> Feel free to reply to either.
>>>>>
>>>>> Anyone got any ideas?
>>>>> Thanks
>>>>>
>>>>>
>>>>>       Get the name you always wanted with the
>> new y7mail email address.
>>>>> www.yahoo7.com.au/mail
>>>>>
>>>>>
>> _______________________________________________
>>>>> To unsubscribe, edit your list preferences, or
>> view the list archives, please visit:
>> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>>>>>
>>>> _______________________________________________
>>>> To unsubscribe, edit your list preferences, or
>> view the list archives, please visit:
>> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>>>
>>> _______________________________________________
>>> To unsubscribe, edit your list preferences, or view
>> the list archives, please visit:
>> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>>
>>
>> _______________________________________________
>> To unsubscribe, edit your list preferences, or view the
>> list archives, please visit:
>> http://list.valvesoftware.com/mailman/listinfo/hlcoders
> 
> 
>       Get the name you always wanted with the new y7mail email address.
> www.yahoo7.com.au/mail
> 
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to