Home Forum Downloads My Favorites Register FAQ Mark Forums Read

Go Back   EQInterface Forums > Tutorials & Info. > Misc Tutorials & Info.
User Name
Password

Reply
 
Thread Tools Display Modes
Old 11-20-2002, 05:45 PM   #1
Cairenn
Credendo Vides
 
Cairenn's Avatar
 
Join Date: Jul 2002
Posts: 3,866
Interface Author - Click to view interfaces
Default /viewport command explained

Okay, here's the low down

When you type the /viewport command, it tells you it wants 4 numbers: x; y; w and h.

x = where you want the viewing area to start from the left of the screen
y = where you want the viewing area to start from the top of the screen

So, 0,0 would mean that it starts in the very top farthest left corner of your screen.

w = how wide you want the viewing area to be from x
h = how high you want the viewing area to be from y

So, 1280X1024 means that your viewing area would be 1280 pixels wide and 1024 pixels high

Put it together, and you get:
/viewport 0 0 1280 1024

This is telling your computer to start drawing the viewing area at the top left corner and to make it 1280 wide and 1024 high.

If you put in a view port of
/viewport 0 0 1000 750

it would be telling your computer that it wants it to start drawing the viewing area at the top left corner, but to only make it 1000 pixels wide and 750 pixels high. This would let you put stuff down the right hand side of the screen and across the bottom, without them hiding the viewing area at all.

Now, say you wanted to put some stuff down the left hand side of the screen, and across the top, but again, you don't want to have it hide stuff on the screen. Let's say that the items you are putting down the right hand side are 20 pixels wide, and the ones across the top are 24 pixels high. What you would type is:

/viewport 20 24

That tells it to move over 20 pixels and down 24.

But you still need the last two numbers, right?

You figure that out by taking the width and height of your screen and subtracting the two amounts above.

So, if you have a viewing area that is 1280 wide by 1024 high, yoou would go:

1280 wide minus 20 (the amount you are moving it over) = 1260
and
1024 high minus 24 (the amount you have moved it down) = 1000

Which means that your complete command line would be

/viewport 20 24 1260 1000

Make sense?
__________________
"My friends, love is better than anger. Hope is better than fear. Optimism is better than despair. So let us
be loving, hopeful and optimistic. And we’ll change the world."


Co-Founder & Admin: MMOUI
FaceBook Profile, Page, Group
Avatar Image by RafM
Cairenn is offline   Reply With Quote
Old 11-26-2002, 06:39 AM   #2
birdboy
A Treant
 
Join Date: Oct 2002
Posts: 25
Default

God madeth the /viewport command
And the people rejoiced
__________________
Luzienne Riverstorm
Bard
Winds of Truth
Tarew Marr
birdboy is offline   Reply With Quote
Old 12-03-2002, 09:13 AM   #3
Kedrak
A Treant
 
Kedrak's Avatar
 
Join Date: Aug 2002
Server: Antonious Bayle
Posts: 24
Default thanks

Thanks for the tutorial, needed the info.
__________________


<< La vida sin honor no es mas que una muerte lenta... >>
Kedrak is offline   Reply With Quote
Old 01-21-2003, 10:56 PM   #4
Simonz
A Ghoul
 
Join Date: Jan 2003
Server: Lanys T'Vyl
Posts: 10
Default

Great info, was wonderin what the 4 numbers meant
Simonz is offline   Reply With Quote
Old 01-22-2003, 03:39 AM   #5
Kuvasie
A Tempest Toad
 
Kuvasie's Avatar
 
Join Date: Oct 2002
Server: Luclin
Posts: 466
Featured Artist
Default

Quote:
Originally posted by Simonz
Great info, was wonderin what the 4 numbers meant


Cairenn actually explained it very well. Maybe this will help a little more the first two numbers (20 24) are like x and y on a graph ... the starting point - read her post to see which way it goes up and over.

The second two numbers (1260 1000) are how wide the screen will be and how high it will be from your new starting point (20 24). Put it all together with the command and you get /viewport 20 24 1260 1000.

Hope that helps.

Kuv
__________________
Kuvasie ~ Sherry
Kuvasie is offline   Reply With Quote
Old 01-31-2003, 05:31 PM   #6
kenney
Bad Ass Kitty
 
kenney's Avatar
 
Join Date: Aug 2002
Server: if you know me you know =P
Posts: 695
Interface Author - Click to view interfaces
Default

Ok ok i know how to do viewport but if i use lets see 800 buy 600 and change the viewport to say 800 buy 400... You will cut off at the bottom ... Meaning at 800 600 youll see that rat at the bottom and viewport 800 400 you will not see the rat ....Anyway to make it show the hole screen not cutting from the bottom ???
kenney is offline   Reply With Quote
Old 01-31-2003, 05:59 PM   #7
Talyns
The Tablets Guy
 
Talyns's Avatar
 
Join Date: Jul 2002
Server: Lanys
Posts: 520
Interface Author - Click to view interfaces
Default

Using something in 4/3 ratio will fix that for example 400x300 or 780x585 or 600x450, etc, etc
__________________
Talyns
Lanys Characters:
-Acarrion (51 BST)
-Hawkren (20 SHM)
Talyns is offline   Reply With Quote
Old 03-13-2003, 03:24 PM   #8
Rieve
A Gray Wolf
 
Join Date: Sep 2002
Posts: 6
Question But what about video use?

I understand the viewport command, and love my 'letterbox' eq screen, but what does it do to the video card demands?

If I run a 1024x768 window but viewport down to 640x400 does my video card have the demand of a 640 screen or 1024?

I wan to know because my 1024 is a bit laggy 800 works great. If I jump all the way to 1280x1024 can I viewport down to 1024x768 and still play the game? Giving myself plenty of black frame for all my cool looking UI windows?

bottom line. Does viewport affect video perfomance?
__________________
If the fish is on the other foot, then get the ducks lined up for a party at my place.
Rieve is offline   Reply With Quote
Old 03-13-2003, 04:37 PM   #9
Unmei
A Treant
 
Join Date: Nov 2002
Posts: 27
Default

I've never noticed that fiddling with my viewport had any real impact on my video performance. =/
Unmei is offline   Reply With Quote
Old 03-13-2003, 07:25 PM   #10
Caleal
Enhanced Imperial Golem
 
Join Date: Sep 2002
Posts: 201
Interface Author - Click to view interfaces
Default

Reducing your viewport will only affect your system performance if your vidio card is what is causing your slowdown.

I have been messing with a program called fraps that will display your framerate real time in D3D games. Interestingly, in every zone I tried it in, I got no difference in framerate on my main system regardless of what resolution I set in game.
I have vsynch enabled, so my maximum framerate is 75, well above what is detectable by even the most sensative of humans. 30fps is above what like 99%+ of humans are able to detect.

In the Plane of Water deep in, I was getting 15-17 fps in about a 56 person raid. My fps stayed consistant throughout the range of resolutions from 640x480 through 1600x1200. This was with all models off exept dark elf and wood elf males, and horses and elementals on.

In the plane of tranquility, I got 50-75 fps consistantly regardless of resolution. Looking up from inside the waterfall in tranquility, I got 9-10 fps regardless of resolution.

This is all with an AthalonXP 2700+ cpu, geforce4 ti4200, nForce2 motherboard with 1 gig of 400mhz ram.

I actually got VERY SIMILAR results on an AthalonXP 1700+ system with a via KT266 motherboard wtih geforce3 ti500 and a gig of 266 mhz ram.

When I turn all models off, the performance of both systems goes up, and is ALMOST IDENTICAL.

When I turn on all models, both systems performance goes down. It is with all models on that I start seeing a big difference in performance between the 2 systems. All models on with the xp1700+ system is nearly unplayable on a raid, heh.

Both systems also have a sharp dropoff in performance if I remove any ram from them, regardless of is models are on or off. The 2700+ had a higher percentage dropoff than the 1700+. I suspect the higher dropoff of the 2700+ was because removing a stick of ram dropped it down to single chanel DDR, thus reducing the memory bandwidth. Single chanel DDR actually comes very close to maxing out the available bandwidth to the cpu, so upgrading to dual chanel is actually only a minimal performance boost.

I do not own a pentium system to do any testing with it, but I suspect there would be similar results based on what some folks in my guild were telling me.

I'm really starting to think that its rather pointless go with anything over a geForce3 vidio card at this time, unless you like running with models on. I hate the Luclin models myself.

It seems like system ram actually has a huge impact on game performance.

I was really suprised that the xp2700+ and 1700+ CPUs had similar performance. That little tidbit, and my observation of what happened when I removed ram, seem to indicate that one of the main bottlenecks for EQ is memory quantity and bandwidth to the CPU rather than vidio card performance.

This would somewhat explain why litterally every single person to ever raid in the Plane of Water has poor system performance, even when sitting inside a cubby hole staring at the back of it. The 3d under water environment just has to many things for the system to track, so the memory and cpu buss gets flooded and performance degrades. No amount of vidio performance or resolution changes will help it at all because the vidio is not the bottleneck.

If this is true, then a P4 system using RAMBUS would perform slightly better than an equivelent speed AthalonXP system using dual chanel DDR, due to the higher memory bandwidth.

I may do some more detailed testing on it. One of the things I want to do is try swapping the vidio cards in the systems, and borrow some ram from someone so I can test more memory configurations. I want to test with 256 megs, but I don't curently own a stick of 266+mhz ram that is under 512 megs.
__________________
Caleal P`Terak
BATTLE CLERIC of Innoruuk, ret
Cazic-Thule server
Shadowed Soul
Caleal is offline   Reply With Quote
Old 03-13-2003, 10:29 PM   #11
Rieve
A Gray Wolf
 
Join Date: Sep 2002
Posts: 6
Post Thank you

Very good info. It's amazing what this game does for system literacy my GF plays on the brand new box next to me and we compare performance constantly. After just a year of EQ she has picked up quite a vocabulary (of tech terms) and now throws questions my way that make me hit the tech sites to answer

Funny enough, this question of the viewport is one of them.

Now if I can just keep her off the sites I use to answer her questions ~chuckle~
Rieve is offline   Reply With Quote
Old 10-05-2003, 03:43 PM   #12
issey
A Tundra Mammoth
 
Join Date: Nov 2002
Server: fv, stormhammer
Posts: 61
Interface Author - Click to view interfaces
Default

Just a quick thank you for the information in this post and 3 cheers for Search!
__________________
drael
who believes Issey Miyake should get to design special occassion (tradeskill) garb for our alts.
issey is offline   Reply With Quote
Old 01-03-2004, 07:43 PM   #13
Mogur
A Crystal Gargoyle
 
Mogur's Avatar
 
Join Date: Jan 2003
Server: Lanys T'Vyl
Posts: 99
Default

I was wondering tho. If you set the hight value to something other than that which would be required for a 4:3 ratio, is the view cut off at the top, the botton, or both?
Mogur is offline   Reply With Quote
Old 01-03-2004, 07:57 PM   #14
Talyns
The Tablets Guy
 
Talyns's Avatar
 
Join Date: Jul 2002
Server: Lanys
Posts: 520
Interface Author - Click to view interfaces
Default

I believe both..

Also,
the 4/3 ratio was just my example for kenney because he was using 800x600 (=4/3)

To get the smallest distortion posible you should use the same aspect ratio as your resolution.. For instance if you normally run at 1280x1024 (=5/4), A viewport with a ratio of 5/4 would be best.. 4/3 would look ok though..
Talyns is offline   Reply With Quote
Old 01-03-2004, 08:03 PM   #15
kenney
Bad Ass Kitty
 
kenney's Avatar
 
Join Date: Aug 2002
Server: if you know me you know =P
Posts: 695
Interface Author - Click to view interfaces
Default

wow that was posted almost a year ago hehe..
kenney is offline   Reply With Quote
Reply



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -5. The time now is 03:27 PM.


vBulletin Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI