Slowly but surely... (ODQ3DM6)

Locked
User avatar
MKJ
Posts: 32581
Joined: Fri Nov 24, 2000 8:00 am

Post by MKJ »

or change the way stairs are handled.
quake2 had this issue as well out of the box. updating it to 3.20 fixed it though (maybe an earlier patch did it too, who knows).

tribes2 had the upupup thing going on as well. also a patch fixed it
[url=http://profile.mygamercard.net/Emka+Jee][img]http://card.mygamercard.net/sig/Emka+Jee.jpg[/img][/url]
TTK-Bandit
Posts: 190
Joined: Sat Sep 07, 2002 7:00 am

Post by TTK-Bandit »

awesome work o'dium :)
I'd really like to test it.
User avatar
Eraser
Posts: 19174
Joined: Fri Dec 01, 2000 8:00 am

Post by Eraser »

Great work! Does this stair clipping mean you can ramp jump off of stairs?
o'dium
Posts: 11712
Joined: Sun Mar 25, 2001 8:00 am

Post by o'dium »

Eraser wrote:Great work! Does this stair clipping mean you can ramp jump off of stairs?
Yes, of course. It was the whole point of me adding it to begin with. The other things that are fixed from this were jsut nice side effects :D
axbaby
Posts: 3424
Joined: Wed Dec 22, 1999 8:00 am

Post by axbaby »

MidnightQ4 wrote:o'dium,

Would you mind giving some of us nooblars some hints as to how to get started on mapping? I tried opening up a q3 map in the q4 editor (+editor on your exec line guys :) ) but that didn't seem to work. So I guess what I'm asking is, is there a way to open q3 maps so as to tweak them out and convert them into q4 maps? I thought maybe converting dm7 or something would be a good way to get familiar with everything then tackle making a map from scratch.
http://www.quake.de/q3tod3/

i used this to convert my q3 maps to d3 then moved em to quake4 folder and presto i could edit me maps.
entities need to be deleted and you need to re-texture
o'dium
Posts: 11712
Joined: Sun Mar 25, 2001 8:00 am

Post by o'dium »

There one problem on this level so far, and thats draw distance. With the amount of lights it needs in a few spots, the long stretch view from the red armor to the railgun walkway at the end is a huge gap, and so frame rate is gonna be at its worst there. I'm trying my hardest to optimize ATM.
MidnightQ4
Posts: 520
Joined: Tue Oct 18, 2005 7:59 pm

Post by MidnightQ4 »

axbaby wrote:
http://www.quake.de/q3tod3/

i used this to convert my q3 maps to d3 then moved em to quake4 folder and presto i could edit me maps.
entities need to be deleted and you need to re-texture
AWESOME! thx bro!
Don Carlos
Posts: 17509
Joined: Thu Jan 01, 1970 12:00 am

Post by Don Carlos »

Good work man :D
Where were you when the West was defeated?
[url=http://profile.mygamercard.net/doncarlos83][img]http://card.mygamercard.net/gbar/doncarlos83.gif[/img][/url]
o'dium
Posts: 11712
Joined: Sun Mar 25, 2001 8:00 am

Post by o'dium »

Right been messing with vis portals and so far its gotten me 10 extra FPS an locked me at 60 everywhere else. Thats good.

The problem is, this long stretch is a right twat to vis off... Anybody with any suggestions?

Ohhhh..> I could look how id did it on the original :D
R00k
Posts: 15188
Joined: Mon Dec 18, 2000 8:00 am

Post by R00k »

How exactly do vis portals work? They don't block you from viewing the things you would see otherwise, but they somehow lower framerates by not fully rendering everything?
o'dium
Posts: 11712
Joined: Sun Mar 25, 2001 8:00 am

Post by o'dium »

R00k wrote:How exactly do vis portals work? They don't block you from viewing the things you would see otherwise, but they somehow lower framerates by not fully rendering everything?
By default the engine draws everything in the level, no matter where you are. Frame rate is dependant on whats being drawn, thats why if you look at X corner, it could be fast, but at Y corner it could still be slow.

Vis Portals work by blocking off visibility at predefined ares, so that the level isn't fully drawn all the time.

Take for example, this level:

Image

Now, by default the whole level will be drawn. However, if we apply Vis faces here (Blue blocks):

Image

Then the engine will check what can actually be seen in these areas, and block visibility off where needed:

Image

Its a simple trick thats sometimes a pain in the arse to get right, but its the reason you can have huge levels instead of farty rooms.
axbaby
Posts: 3424
Joined: Wed Dec 22, 1999 8:00 am

Post by axbaby »

if you can't see it quake4 won't draw it.

good vis blocking helps in this matter but in an area with long hallway's, where you can see a long distance in all directions such as the Red Armour area the game draws too many triangles.

that's why many maps do not show large area with fancy shaders and lots of contruction.

fire up quake3 and load q3dm6
type r_showtris 1 and you'll see what good vis blocking does.
o'dium
Posts: 11712
Joined: Sun Mar 25, 2001 8:00 am

Post by o'dium »

Aye. I'm starting to think i should of caulked the map as well. Stock Quake 4 maps have caulk on everything except surfaces that can be seen and with a little test i did ages ago i found it caused odd shadows... I really should do that here as well. No biggie really, wouldn't take long.

The main gripe i'm having is with a decent vis. That long hallway wont be amazing no matter what but i cant seem to vis that area off, it draws everything when standing at the res armor still, and it should be right. Any ideas or suggestions?
axbaby
Posts: 3424
Joined: Wed Dec 22, 1999 8:00 am

Post by axbaby »

does that auto caulk feature really work?
less curves/patches .. fake curves in that area with simple brushes near rl? ie rail bridge
Grudge
Posts: 8587
Joined: Mon Jan 28, 2002 8:00 am

Post by Grudge »

Well, q3 is bsp based - the geometry does block vis, and you use hints to optimize the portals.

In the Doom3 engine, however, geometry does not block vis, and the engine does draw everything all the time unless you use portals. The graphics card may scissor tris out that are not visible, but the CPU still have to send all that data to the GPU. That's why it's so hard on CPU.

Portals are therefore necessary, but you can't simply put portals everywhere there are hint brushes in the Q3 map, they don't work the same way.

EDIT: plus, using areaportals in a MP map in a bsp based engine is not a good idea, because every time you cross a portal, all the entities that were previously culled has to load at the same time, which causes hickuping and freezes in a MP game.

I don't know if it works the same with enteties in the Doom3 engine? Or are they always loaded/drawn, regardless of portals?
Last edited by Grudge on Tue Oct 25, 2005 3:33 pm, edited 1 time in total.
o'dium
Posts: 11712
Joined: Sun Mar 25, 2001 8:00 am

Post by o'dium »

There is a lot of fake curves already. TBH the problem ISNT with brush work. I tried the map without lights and it ran fine.

The problem is that when i stand at the red armor, i dont just draw that long stretch, i draw all the way over to the pillars and LG, no matter how i visblock it off...?

I must be vising it wrong around there, but where?!
o'dium
Posts: 11712
Joined: Sun Mar 25, 2001 8:00 am

Post by o'dium »

Well im not doing anything stock Quake 4 maps dont do ;) Some of the maps are hacked to shit with vis brushs.
axbaby
Posts: 3424
Joined: Wed Dec 22, 1999 8:00 am

Post by axbaby »

i seem to be out to lunch on the differences between quake3 and quake4 as far as vis blocking goes.

ambient light may be the way to go?

i was going to say make damn sure all relevant brushes are structural but Grudge's info makes me realize i gotta learn a bit more.
Don Carlos
Posts: 17509
Joined: Thu Jan 01, 1970 12:00 am

Post by Don Carlos »

o'dium wrote:Aye. I'm starting to think i should of caulked the map as well.
Erm YES caulk everything man
Even i know that and i dont map loads...
Where were you when the West was defeated?
[url=http://profile.mygamercard.net/doncarlos83][img]http://card.mygamercard.net/gbar/doncarlos83.gif[/img][/url]
o'dium
Posts: 11712
Joined: Sun Mar 25, 2001 8:00 am

Post by o'dium »

Don Carlos wrote:
o'dium wrote:Aye. I'm starting to think i should of caulked the map as well.
Erm YES caulk everything man
Even i know that and i dont map loads...
GOOD IDEA THEN THE WALLS WILL DISAPEAR WWEEEEEEEEEEEEEEEEEEEEEEEEE!!!!!!!!!!11122
Grudge
Posts: 8587
Joined: Mon Jan 28, 2002 8:00 am

Post by Grudge »

This is the only info I've managed to find about vising in the Doom3 engine:

http://www.iddevnet.com/doom3/visportals.php
o'dium
Posts: 11712
Joined: Sun Mar 25, 2001 8:00 am

Post by o'dium »

Thanks Grudge, nothing new really :( The best place to look is the stock Q4 maps, they havea lot of good vising in them.

This is the area i need to vis:

Image
Pro*Neo
Posts: 35
Joined: Mon Oct 24, 2005 11:40 am

Post by Pro*Neo »

It looks amazinggggg, o´dium your work is impresive
o'dium
Posts: 11712
Joined: Sun Mar 25, 2001 8:00 am

Post by o'dium »

Right, looking at large maps with open gaps in the geometry such as q4ctf4, I've noticed that they vis ANYTHING lol. Doorways all get vised obviously but i'm talking huge holes just have a massive visbrush over them, which i guessed anyways. I just couldn't get it to work before when i tried it...

Its strange because they seem to vis AREA x but then AREA y thats pretty much the same doesn't get vised... Hmmmm...

This is gonna hurt me i tell ya...
Don Carlos
Posts: 17509
Joined: Thu Jan 01, 1970 12:00 am

Post by Don Carlos »

o'dium wrote:
Don Carlos wrote:
o'dium wrote:Aye. I'm starting to think i should of caulked the map as well.
Erm YES caulk everything man
Even i know that and i dont map loads...
GOOD IDEA THEN THE WALLS WILL DISAPEAR WWEEEEEEEEEEEEEEEEEEEEEEEEE!!!!!!!!!!11122
Oh you know what i ment you Pedantic Bastard!!!
Where were you when the West was defeated?
[url=http://profile.mygamercard.net/doncarlos83][img]http://card.mygamercard.net/gbar/doncarlos83.gif[/img][/url]
Locked