BASIC TEXTURE PROBLEM

General discussion about Scenery Design. Questions about SBuilder for Flight Simulator FS2004.
Post Reply
SQDAVID
Posts: 4
Joined: Tue May 26, 2009 8:57 pm

BASIC TEXTURE PROBLEM

Post by SQDAVID » Tue May 26, 2009 9:14 pm

Hi,

Have been away from fs2004 for a while however I`m starting a basic scenery project and have a very simple problem which i cannot seem to solve,

When i create a Polygon structure in EOD, Convert it to an SCM Macro, load it to Sbuilder and finally place it in FS2004, the polygon appears perfect and with the right dimensions however the polygon texture is missing.

Is there something very basic that I`m doing wrong?

Would welcome any comments.

Regards

Dave

User avatar
Luis Sa
Posts: 1735
Joined: Sun May 18, 2003 11:17 am
Location: Portugal
Contact:

Re: BASIC TEXTURE PROBLEM

Post by Luis Sa » Wed May 27, 2009 6:50 pm

Hi Dave,

The first thing to check is: do the textures exist in the Texture folder that sits side by side to the Scenery folder where SBuilder is copying the BGL? If yes, please write back.

regards,

Luis

SQDAVID
Posts: 4
Joined: Tue May 26, 2009 8:57 pm

Re: BASIC TEXTURE PROBLEM

Post by SQDAVID » Fri May 29, 2009 12:17 am

Thanks for your reply Luis,

Yes i can confirm that the folders for bgl compilation (Scenery Folder) and Textures (Texture Folder) are side by side in the FS addon directory.

Regards

Dave

User avatar
Luis Sa
Posts: 1735
Joined: Sun May 18, 2003 11:17 am
Location: Portugal
Contact:

Re: BASIC TEXTURE PROBLEM

Post by Luis Sa » Fri May 29, 2009 12:24 am

Hi,

But the next question is: does the texture used by the macro exists in that folder? You can open the macro and even if you do not understand the coding, you will find the filenames that contain the textures. They terminate in ".bmp" but there are variants. Is the macro too old? Does it contains references to textures ".r8"? I am not sure if these textures work in FS2004. Let me know what you find.

Regards,

Luis

SQDAVID
Posts: 4
Joined: Tue May 26, 2009 8:57 pm

Re: BASIC TEXTURE PROBLEM

Post by SQDAVID » Fri May 29, 2009 6:23 am

Hi Luis,

The textures are contained in that folder and Here is the code for the Macro, the texture "term.bmp" is referenced at the end.

;ASDesign Compatible Macro
;Name=JFK AIB 3 (EOD), Type=EOD , Bitmap=JFK AIB 3.bmp, \
;FixedLength=25, FixedWidth=25, autoscale, \
;Latitude, Longitude, Rotation, Scale=1, Density=0, \
;Visibility=0, Range=10, Elevation=0, Shadow=1,
;
; Designer:
; Credits:
; Macro generated using EOD 2.2.85
; EOD Website: http://www.echos.ch/eod/
; ASD Macro (*.scm). Date: 05-29-2009 Time: 06:19:07
Area( 5 %1 %2 %7 )
PerspectiveCall( :Pos )
mif( %9 )
ShadowCall( :Shadows )
mifend
Jump( : )
:Pos
Perspective
:Shadows
mif( %8 )
RefPoint( 2 :SubEnd 1 %1 %2 E= %8 )
melse
RefPoint( 7 :SubEnd 1 %1 %2 )
mifend
SetScaleX( :SubEnd %6 0 14 ) ; Scale=0.25
RotatedCall( :Begin 0 0 %3 )
:SubEnd
Return
:Begin

VectorJump( :West 32767 0 0 0 )
VectorJump( :SouthEast 0 0 32767 0 )
:NorthEast
Call( :part000 ) ;
Return
:SouthEast
Call( :part000 ) ;
Return
:West
VectorJump( :SouthWest 0 0 32767 0 )
:NorthWest
Call( :part000 ) ;
Return
:SouthWest
Call( :part000 ) ;
Return


;-------
:part000
; cube - Cube 1
Points( 0
-50 0 -50 ; 0
50 0 -50 ; 1
50 0 50 ; 2
-50 0 50 ; 3
-50 100 -50 ; 4
50 100 -50 ; 5
50 100 50 ; 6
-50 100 50 ; 7
)
LoadBitmap( 0 0 EF 0 0 0 "term.bmp" )
TexPoly( 0 0 32767 -50 1 0 105 5 0 255 4 199 255 0 199 105 ) ;Inside front
TexPoly( 0 0 -32767 -50 3 0 105 7 0 255 6 199 255 2 199 105 ) ;Inside back
TexPoly( 32767 0 0 -50 0 0 105 4 0 255 7 199 255 3 199 105 ) ;Inside left
TexPoly( -32767 0 0 -50 2 0 105 6 0 255 5 199 255 1 199 105 ) ;Inside right
TexPoly( 0 -32767 0 -100 5 199 255 6 199 105 7 0 105 4 0 255 ) ;Inside top
TexPoly( 0 32767 0 0 0 0 105 3 0 255 2 199 255 1 199 105 ) ;Inside bottom
LoadBitmap( 0 L0 EF 0 0 0 "term.bmp" )
TexPoly( 0 0 32767 50 2 0 105 6 0 255 7 199 255 3 199 105 ) ;Back
TexPoly( -32767 0 0 50 3 0 105 7 0 255 4 199 255 0 199 105 ) ;Left
LoadBitmap( 0 0 EF 0 0 0 "term.bmp" )
TexPoly( 32767 0 0 50 1 0 105 5 0 255 6 199 255 2 199 105 ) ;Right
TexPoly( 0 32767 0 100 4 0 105 7 0 255 6 199 255 5 199 105 ) ;Top
TexPoly( 0 -32767 0 0 1 199 255 2 199 105 3 0 105 0 0 255 ) ;Bottom
Return

EndA


Regards

Dave

User avatar
Luis Sa
Posts: 1735
Joined: Sun May 18, 2003 11:17 am
Location: Portugal
Contact:

Re: BASIC TEXTURE PROBLEM

Post by Luis Sa » Sat May 30, 2009 8:46 pm

Hi Dave,

The macro seems OK. I did not tested it but it looks OK in terms of coding. However I have a doubt. When you start this thread you referred to a polygon. Now you are talking about an object. Can you place objects (macro objects in particular) with SBuilderX? There is possibility that some stting is not OK. Could you generate scenery with SBuilderX. If yes what are the type of scenery that you have trouble with? Is it this macro only?

I look forward to your comments,

Regards,

Luis

SQDAVID
Posts: 4
Joined: Tue May 26, 2009 8:57 pm

Re: BASIC TEXTURE PROBLEM

Post by SQDAVID » Sat May 30, 2009 11:25 pm

Thanks Luis,

Yes the poly was a basic object i created in EOD and saved as a macro to ensure i was using Sbuilder correctly. I Just placed the Large_Fuel_Tank Libary object with Sbuilder, it appears perfectly in Fs9 no problems including textures.

Regards

Dave

User avatar
Luis Sa
Posts: 1735
Joined: Sun May 18, 2003 11:17 am
Location: Portugal
Contact:

Re: BASIC TEXTURE PROBLEM

Post by Luis Sa » Sun May 31, 2009 12:00 am

Hi Dave,

I understand that you were able to place Library Objects. But I still do not know if you were able to place ASD macros. If you send me (or attach here) the bmp file, I will try it.

Best Regards, Luis

Post Reply