Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Addons > Addon Development
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Addon Development Developers post news, updates, & discussions here about your projects in development.

Reply
 
Thread Tools
Old 07-11-2018, 09:23 AM   #1
Marijn
Orbinaut
 
Marijn's Avatar
Default Runway textures problem

Hello,

I am at my first attempt to create a surface base. At this point, I am having problems to apply the textures on runways.

When I change the default Runway2 texture to anything else, my runway renders just plain grey.

I created a 256x256 image with GIMP and exported it using a plugin to the DDS format and placed the file in the Textures folder.

I must be doing somehing wrong, but even when I set the default Runway1 texture, the runway also renders plain grey. For some readon, only the default Runway2 seems to have any effect.

Any suggestions on what I am doing wrong? Thanks

The object looks like this, which is a copy of Habana's runway. Runway3 is the filename of my own dds image.

RUNWAY
END1 -1009.772 0 -1105.454
END2 -1204.373 0 2347.486
WIDTH 45
ILS1 111.55
ILS2 111.55
RWTEX Runway3
NRWSEG 7
RWSEG1 1 0.01 0.25 0.5 1 0.875
RWSEG2 1 0.1 0 0.25 0.5 0
RWSEG3 1 0.01 0.25 0.5 0.75 0.625
RWSEG4 4 0.76 0 0.25 1 0.5
RWSEG5 1 0.01 0.25 0.5 0.625 0.75
RWSEG6 1 0.1 0 0.25 0 0.5
RWSEG7 1 0.01 0.25 0.5 0.875 1
END
Marijn is offline   Reply With Quote
Old 07-11-2018, 09:32 AM   #2
gattispilot
Addon Developer
 
gattispilot's Avatar
Default

Is there anything in the log?
gattispilot is offline   Reply With Quote
Thanked by:
Old 07-11-2018, 09:44 AM   #3
Marijn
Orbinaut
 
Marijn's Avatar
Default

Eh, yes. I should have checked that

000000.000: ---------------------------------------------------------------
000000.000: >>> WARNING: Obsolete API function used: oapiBlt
000000.000: Colour key argument not supported by graphics client
000000.000: ---------------------------------------------------------------
000000.000: Finished initialising panels
000012.609: D3D9: [Session Closed. Scene deleted.]
000012.609: D3D9: [Destroy Render Window Called]
D3D9: ERROR: UnDeleted Surface(s) Detected
D3D9: ERROR: Surface 0xD8E1450 (clbkCreateSurface) (12,12)
D3D9: ERROR: Surface 0xD8E16C0 (clbkCreateSurface) (25,223)

And many more lines like the last.

There is a bunch of settings for the export like compression, format, minimaps, filters, wrap mode and gamma of which I have no idea how to use them..

I noticed that when I change the original Runway2 textuxe, the problem does not occur.
Marijn is offline   Reply With Quote
Old 07-11-2018, 09:45 AM   #4
jacquesmomo
Addon Developer
 
jacquesmomo's Avatar
Default

You have to declare in the "base.cfg" file your new texture :

Edit the \config\base.cfg file with Notepad.

you should see someting like that :

; === Generic surface base resources
; === List of generic object meshes ===
BEGIN_MESHES
END_MESHES

; === List of generic textures ===
BEGIN_TEXTURES
Fcd01
Fcd02
Fcd03
Fcd04
Fcd05
Fcd06
Fcd07
Fcd08
Fcd09
Fcd10
Fcd11
Fcd12
Fcd13
Fcd14
Fcd15
Roof01
Roof02
Wall01
Door01
Lpad01
Lpad02
Lpad02a
Taxiway1
Taxiway2
Monorail
Hangrail
Solpanel
Runway2
Ball
Cape17
Cape18
Cape19
Cape20
Cape21
Cape22
Cape23
Concrete1
END_TEXTURES


add your Runway3 texture name in the list, then save this file.

That's all

PS note that "runway1" is not declared by defaut....

Last edited by jacquesmomo; 07-11-2018 at 09:48 AM.
jacquesmomo is offline   Reply With Quote
Thanked by:
Old 07-11-2018, 10:08 AM   #5
Marijn
Orbinaut
 
Marijn's Avatar
Default

Thanks a lot, I wasn't aware of the declarations. That seems to do it

I am still getting the errors in my log as above. Any idea about those?
Marijn is offline   Reply With Quote
Reply

  Orbiter-Forum > Orbiter Addons > Addon Development


Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


All times are GMT. The time now is 09:08 PM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.