Sign in to follow this  
Guest Larrycx

XML Buildings

Recommended Posts

Hey all,I'm having trouble creating buildings with the BGLComp. Could anyone post an example code for me to work from? A simple rectangular building would be fine.CheersDavid

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hi David, This works for me. I got the original code from rumbaflappy. I had tried copy-paste the sample code from the SDK and had no luck. BUt- what migh have been wrongh is that I had opened the SDK document wih wordpad and tried copy-paste from there. Apparently its not plain text like i am pasting into this reply. Had I got i into notepad it may have been OK. Anyhow here is Richard Ludowise's code with my changes in it. I got coordinates with Tcalc2400. Good luck. LarryCode follows. (I have been playing with textures)<?xml version="1.0"?>

Share this post


Link to post
Share on other sites

Thanks Larry,I think it was the closing statments that I got wrong, the rest looks just like what I already had.Now I just need to figure out these texture index figures :)Thanks againDavid

Share this post


Link to post
Share on other sites

P.s. The co-ordinates can be in Degrees-minutes-seconds format. E.g. N55 58.4843Just FYI :)David

Share this post


Link to post
Share on other sites

Hi again David, I have been playing with those texture indexes and even have a question re that posted now. I printed all of the textures with even numbers for their "texture number" in the SDK. I bring one up in Paint or Paint Shop and can look at the x,z coordinates. I have had some slight sucess but a lot of questions remain. The roof textures give little trouble. However how do you know which side(s) of the bldg gets what you give as textureIndexX=22, and ...Y=124. If you ever do find out let me know. I will subscribe to this thread. Why are there x,z,y for window tetures?I set the topy and window layer to zero but notice they are still there but small. My big problem right now is with scale. I want to make a house by making it oversize so I can control more in integer meters. But when I set the scale to .50 only the height changes - looks screwy!Larry Costa

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this