![]() |
|
Orbiter SDK Orbiter software developers post your questions and answers about the SDK, the API interface, LUA, meshing, etc. |
![]() |
|
Thread Tools |
![]() |
#61 |
Addon Developer
![]() |
![]()
So not sure how I can test it? I saw the bitbucket. Is the dll made already?
|
![]() |
![]() |
![]() |
#62 |
Beta Tester
![]() ![]() |
![]() Quote:
|
![]() |
![]() |
Thanked by: |
![]() |
#63 |
Beta Tester
![]() ![]() ![]() |
![]()
Pardon my lack of knowledge, but does the moon have new texture mode ?
|
![]() |
![]() |
![]() |
#64 |
Beta Tester
![]() ![]() |
![]() Quote:
Code:
TileFormat = 2 ---------- Post added at 22:24 ---------- Previous post was at 17:11 ---------- I've finished implementing my proposal. Get the release build of the modded D3D9Client here: http://snoopie.at/face/beta/D3D9Client.dll With this you can define *.flt files in /Textures/<planet>/Flat/ folders with the following (slightly changed) line definition: Code:
ELLIPSE <height> <lng> <lat> <major> <minor> <phi> <falloff> or RECT <height> <lng> <lat> <length> <width> <phi> <falloff> * <lng> <lat> are double longitude and latitude coordinates, as defined in e.g. base configuration file * <major> <minor> are ellipse major and minor radius in integer meter, <minor> defaults to <major> if not defined - the meter definition might not be exact, as it uses a decimal degree guess at the latitude circle * <length> <width> are rectangle length and width in integer meter, <width> defaults to <length> if not defined - meter definition same as above * <phi> is rotation angle in double degree from equator, with <major> and <length> being parallel to equator * <falloff> is the integer percentage (e.g. 50 for 50%) of the shape radius where transparent merging with original height is done Lines with comment start and/or too less arguments are ignored. Get the full code at https://bitbucket.org/face/ovp/get/D3D9Client/2016.zip Please let me know what you think about this concept. Last edited by Face; 04-17-2019 at 09:33 PM. Reason: Clarified data types |
![]() |
![]() |
Thanked by: |
![]() |
#65 |
Addon Developer
![]() ![]() |
![]() Quote:
Quote:
|
![]() |
![]() |
![]() |
#66 |
Beta Tester
![]() ![]() |
![]() Quote:
|
![]() |
![]() |
![]() |
#67 |
Addon Developer
![]() ![]() |
![]() Quote:
Do you think that Jarmo and Kuddel will add this to the D3D9 until martin do it for the Beta or will you/us be forced to update the system in D3D9 at each release? or shall we take this as a demonstration and that's it? |
![]() |
![]() |
![]() |
#68 |
Beta Tester
![]() ![]() |
![]() Quote:
At the glacial pace of Orbiter's core releases we could even afford to get the hooking updated. ![]() ---------- Post added at 23:04 ---------- Previous post was at 22:41 ---------- With the above posted client, you can do something like this to e.g. Brighton Beach: /Textures/Moon/Flat/test.flt Code:
Rect -3000 -33.4375 +41.125 2500 2500 0 50 Rect -2400 -33.4375 +41.125 1000 1000 45 50 ![]() ![]() |
![]() |
![]() |
Thanked by: |
![]() |
#69 |
Addon Developer
![]() ![]() |
![]() Quote:
- I saw from the code that the "comments" are intended as per code // but I would add also the ";", since it is very common for text file inputs - I'd add some orbiter.log entries when a flat area is parsed, so users will have a feedback if their line is read or not - I tried on a random location and it work as expected, but then I tried to flatten the second runway of palmdale base and it didn't work. I haven't checked myself yet, but maybe palmdale use elev_mod and this is the root cause somehow? - I will put down some code to get the rectangle corners coordiantes from your definitions (length, width, phi etc) and viceversa, since I'd want the option to use also the corners - The falloff is an integer right? It seems to me from the code that it's an integer that is divided by 100 after parsed so 50% is 50 and not 0.5, correct? - are multiple definitions per file allowed? so if I have a base I can put all the circles and rectangles there? |
![]() |
![]() |
![]() |
#70 |
Beta Tester
![]() ![]() |
![]() Quote:
* The falloff is percent, right. * Multiple definitions are allowed, as demonstrated by the pictures posted above. |
![]() |
![]() |
![]() |
#71 |
Addon Developer
![]() ![]() |
![]() Quote:
basic test, a big square centered on te runway: Code:
RECT 766.1 -118.072702 34.629199 5000 5000 0 10 |
![]() |
![]() |
![]() |
#72 |
Beta Tester
![]() ![]() |
![]() Quote:
|
![]() |
![]() |
![]() |
#73 |
Addon Developer
![]() ![]() |
![]() Quote:
Anyway if anybody have any doubts about this tool look at this: ![]() On the left the second runway of Palmdale base as it is by default: super bumpy! and if you look around you'll see that also taxiways and everything around is bumpy. On the right the result with a simple line of text file... a perfectly flat runway and sorroundings... it took 2 minutes to set it up... Thanks Face for your implementation, this is huge!!! Last edited by fred18; 04-17-2019 at 09:56 PM. |
![]() |
![]() |
Thanked by: |
![]() |
#74 |
Donator
![]() |
![]()
Very good proof-of-concept!
![]() One question (I haven't found time to check for myself): Can the patches overlap? So a "ring" could be made with: Code:
// ELLIPSE <height> <lng> <lat> <major> [<minor>] [<phi>] [<falloff>] ELLIPSE -2000 -33.4375 +41.125 2500 ELLIPSE -3000 -33.4375 +41.125 2000 Last edited by kuddel; 04-17-2019 at 09:52 PM. |
![]() |
![]() |
![]() |
|
Thread Tools | |
|
|
Quick Links | Need Help? |