Forum

Curves, textures etc

Discuss the construction of maps and the tools to create maps for 3D games.

Moderator: InsideQC Admins

Curves, textures etc

Postby ajay » Tue Apr 06, 2010 2:01 pm

I'm making a (pseudo, obviously) curved wall in worldcraft (quake.bsp, not HL) and am making some headway in aligning the textures and making the curve as smooth as possible. I would, however, appreciate any tips mappers have re: curved structures.
Cheers.
User avatar
ajay
 
Posts: 559
Joined: Fri Oct 29, 2004 6:44 am
Location: Swindon, UK

Postby Lardarse » Tue Apr 06, 2010 3:55 pm

Unless you're trying to make it look like a seamless curve (which I think it impossible), the best thing to do is to is to make it a polygon, but with the corners at strategic places. You can go for precision, but it's better if all of the corners are on integer co-ordinates (can cause problems if they're not), and sticking to a larger grid makes scaling it up or down a lot easier.

For a circle centered at 0 with radius of roughly 8n, you want to either have your corners at (8n,2n) (6n,6n) (2n,8n) and all mirrored points, or (8n,0n) (7n,4n) (4n,7n) (0n,8n). The first one usually looks better, especially for rooms and room-sized objects, as the axially-aligned sides make it look more natural (and make it easier to connect with other things if you need to). Smaller objects might look better with the second one (I'm thinking pipes with this... most mappers use a 8-sided shape for pipes, but this "rotated 12" might be better). It's also best if n isn't too large. 256 is about the upper limit for a 12-sided.

At 512 and above, 24 sided looks better. I don't remember the absolute co-ordinates for this one, but, going around the circle, the diagonals are 1:4, 2:4, 3:3, 4:2, 4:1, 4:0. I've heard mentions of 48-sided, but I don't know how serious they were...

There are other numbers of sides that can be used. 8 is popular for pipes, although they look a little too angular to me. I think there's also a 16-sided method, but I've not used it.

It's worth noting that these methods are still useable in Q3BSP, and especially useful if you're making a rotating brush (as patch curves don't give a perfect circle).

As for texture alignment on curves, I can't help you. Would like some advice on that myself...
Roaming status: Testing and documentation
User avatar
Lardarse
 
Posts: 266
Joined: Sat Nov 05, 2005 1:58 pm
Location: Bristol, UK

Postby Chip » Tue Apr 06, 2010 4:57 pm

Me, me! QuArK does texture alignment on multiple planes. Exactly what you need for an arch, let's say. It's as easy as selecting all the faces you need the texture aligned on, and moving them in a separate group.

Combine this with q3map2 compiling using -dust (resembling ambient occlusion) and there you have it!

I'll do a test for you and post a screenshot here.
QuakeWiki
getButterfly - WordPress Support Services
Roo Holidays

Fear not the dark, but what the dark hides.
User avatar
Chip
 
Posts: 575
Joined: Wed Jan 21, 2009 9:12 am
Location: Dublin, Ireland

Postby ajay » Tue Apr 06, 2010 6:22 pm

This is where I've got to after an annoying 2 hours of tweaking:

Image


Lardarse: thanks for your detailed reply - I didn't understand all of it (my problem not yours!) I'm not so precise, I do most of it 'by eye' :wink:
User avatar
ajay
 
Posts: 559
Joined: Fri Oct 29, 2004 6:44 am
Location: Swindon, UK

Postby Chip » Tue Apr 06, 2010 7:09 pm

I see repetition there. A nice way of having a curved wall is applying a non even texture, with cracks or something along the whole curve.

No time yet to have an example for you, I only created the curved wall. I'll add a texture soon, could be tonight. :wink:
QuakeWiki
getButterfly - WordPress Support Services
Roo Holidays

Fear not the dark, but what the dark hides.
User avatar
Chip
 
Posts: 575
Joined: Wed Jan 21, 2009 9:12 am
Location: Dublin, Ireland

Postby ajay » Tue Apr 06, 2010 8:06 pm

I see what you mean re: repetition, but it's less actually repetitive than it looks. I'm fairly happy with it, I may try to improve, but first I'll finish the rest of the building and see what it looks like - if it glares out to me I may spend some more time - I always like to balance frustratingly impossible attempts at perfection with feelings of success due to actually finishing something.
User avatar
ajay
 
Posts: 559
Joined: Fri Oct 29, 2004 6:44 am
Location: Swindon, UK

Postby Chip » Tue Apr 06, 2010 8:12 pm

ajay wrote:I see what you mean re: repetition, but it's less actually repetitive than it looks. I'm fairly happy with it, I may try to improve, but first I'll finish the rest of the building and see what it looks like - if it glares out to me I may spend some more time - I always like to balance frustratingly impossible attempts at perfection with feelings of success due to actually finishing something.


Totally agreed! That's why my project stalls so much. I try to improve some useless areas, instead of focusing on the big picture: having a finished mod.
QuakeWiki
getButterfly - WordPress Support Services
Roo Holidays

Fear not the dark, but what the dark hides.
User avatar
Chip
 
Posts: 575
Joined: Wed Jan 21, 2009 9:12 am
Location: Dublin, Ireland

Postby Electro » Tue Apr 06, 2010 9:04 pm

Needs smoother lighting across the angles. Some compilers have options to adjust the angle threshold.
Benjamin Darling
http://www.bendarling.net/

Reflex - In development competitive arena fps combining modern tech with the speed, precision and freedom of 90's shooters.
http://www.reflexfps.net/
Electro
 
Posts: 312
Joined: Wed Dec 29, 2004 11:25 pm
Location: Brisbane, Australia

Postby ceriux » Tue Apr 06, 2010 10:14 pm

in worldcraft pick the texture application tool, click the start of your wall ( the first sections texture) hold alt then click the next part , continue on then tweak it .
User avatar
ceriux
 
Posts: 2223
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Postby Spike » Wed Apr 07, 2010 7:25 am

/me agrees with Electro.
It doesn't look smooth because the lighting suddenly changes for each segment.
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby ajay » Wed Apr 07, 2010 10:58 am

The lighting is actually the flashlight, which tends to make things look worse....
User avatar
ajay
 
Posts: 559
Joined: Fri Oct 29, 2004 6:44 am
Location: Swindon, UK

Postby Lardarse » Thu Apr 08, 2010 12:20 am

Doing curves "by eye" is risky.

I made a spreadsheet that works out where the points on cuves should be: http://pineapple.servegame.com/circle_room.ods

It assumes that you're making a circle (although you can use just the first part to make a half or quarter circle as needed). C2 should have the number of sides for the complete circle (which would usually be a multiple of 4), and C3 is the radius of the circle. The co-ordinates it gives from row 13 downwards (the stuff in between is the mathematics involved) are relative to the centre of the circle.
Roaming status: Testing and documentation
User avatar
Lardarse
 
Posts: 266
Joined: Sat Nov 05, 2005 1:58 pm
Location: Bristol, UK


Return to Mapping

Who is online

Users browsing this forum: No registered users and 1 guest