Jump to content

You're browsing the 2004-2023 VATSIM Forums archive. All content is preserved in a read-only fashion.
For the latest forum posts, please visit https://forum.vatsim.net.

Need to find something? Use the Google search below.

One Small Problem with Regions (.sct2)


Deacon Barry 952424
 Share

Recommended Posts

Deacon Barry 952424
Posted
Posted

Hello,

 

Having seen some of the things that can be done with the [REGIONS] in .sct2 of VRC 1.1, I have been trying to create a .sct2 sector file for Edinburgh Radar (EGPH_APP) modelled on the real-world system they use (the RDS 1600 by Flight Refuelling). At the moment I have almost finished it, as you will be able to see from the first link below I have shaded in the Control Zones, Restricted Airspace and Dangerous Airspace. The last thing left to colour in is the land itself. I have had no problems with colouring in the small islands, but the mainland has presented a problem and I'm not sure why it's happening. This is what the .sct2 looks like so far:

 

http://img301.imageshack.us/img301/1453/edinearlytherean7.jpg

 

Anyway, I have tried to shade in the mainland using the regions, exactly as you would any other region, but it has not worked. Here is the bare geography for the mainland:

http://img124.imageshack.us/img124/3863/edibaregeogrct3.jpg

That is the exact same as the geography I'm using in the main sector file itself. As you can see, the shape is closed, so I don't see why it won't shade in I've done it the same way as I have all the others which worked fine.

 

Any thoughts? Ross or anybody else if you want me to email the sector file I can

 

Regards,

 

Deacon

Link to comment
Share on other sites

Man Hang Wong 974212
Posted
Posted

did you use OVERLAPPED regions?

 

overlapped regions can cause rendering problems and only one region is displayed

sig.png
Link to comment
Share on other sites

Deacon Barry 952424
Posted
Posted

Man,

 

Thanks for your response. Yes the regions overlapped in certain parts, but I did a couple of overlapping regions before which didn't cause problems. If this is the case, do you know how to get around this problem?

Link to comment
Share on other sites

Ross Carlson
Posted
Posted

Overlapping should not be a problem. You might have to reverse the order of the regions in the file in order to get overlapping regions to display though.

 

Deacon, have you tried reversing the order of the coordinates for the land region?

Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy

Senior Controller, Boston Virtual ARTCC

Link to comment
Share on other sites

Deacon Barry 952424
Posted
Posted

Ross,

 

Thanks for the suggestion, I'll give it a go and get back to you. Although out of curiosity, how would it make a difference ?

Link to comment
Share on other sites

Ross Carlson
Posted
Posted

It shouldn't make a difference, but I confess I don't have a lot of experience with polygon rendering in OpenGL. I know the order of the points makes a difference sometimes, like when you are mapping a texture or a color, so it might make a difference here, but I'm not sure.

Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy

Senior Controller, Boston Virtual ARTCC

Link to comment
Share on other sites

 Share