Jump to content
Sign in to follow this  
Guest misho

Chrome effect on SCENERY

Recommended Posts

Guest misho

Hello,Is it possible to create a chrome reflection effect on scenery objects much in the same way as on aircraft? I tried but without success, using the Texture with Alpha channel method in GMAX.

Share this post


Link to post
Share on other sites

Hi Misho,Yes and no. The reflection effect does not work directly on scenery objects, as the reflection texture is a subtexture of TEXTURE_AIRCRAFT and not of TEXTURE_BUILDING. So before it can work you must change the texture type in the source code of your object.In the Fs2002 gamepack this worked, as all textures were set to TEXTURE_AIRCRAFT there by mistake.So with these tweaks it works, but it is clearly intended for aircraft use mainly.


Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Share this post


Link to post
Share on other sites
Guest misho

Thanks Arno! This source code, where can I access that? The only thing created is the XML file and I don't think it contains any tags like that one. Is it a GMAX tag?

Share this post


Link to post
Share on other sites

No, unfortunately these things can not be set from within GMax.To get the source code (ASM) files you need to do a little trick in the Fs2004 gamepack. Some people make a CFG file for MakeMDL that enables the option to keep the source, but I use MDLCommander. This gives you the option screen back during export, where you can select the different options.


Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Share this post


Link to post
Share on other sites

Depending on what you are trying to texture, it is possible to create simple non-textured reflective objects using GMAX. Maybe you could build a complex object from individual non-textured bits, in the manner of 'classic' 3D design techniques.

Share this post


Link to post
Share on other sites
Guest misho

Ah - ok! I'll monkey around with that! :) Thanks!

Share this post


Link to post
Share on other sites
Guest misho

I'm trying to have my scenery object use the same chrome map and effect as the aircraft objects ("envmap.bmp")... I'm not sure if the file would be accessible to the scenery object since all textures for the addon scenery should reside in "texture" sub-folder. I could always make a copy (in case I could do this effect in GMAX) but that's a bit of a kludge :)

Share this post


Link to post
Share on other sites
Guest SWA2873

I beleive the answer can be found in the texture you use for the macro.I am not an expert on the topic but reflections with aircraft have something to do with "alpha".Get DXTBMP and start looking at posts regarding aircraft reflection textures on the aircraft design forum. Sam

Share this post


Link to post
Share on other sites
Guest Firestriker

As Arno mentioned, it is not difficult at all. Follow the Makemdl SDK about using gMax materials. Export your scenery object but tell makemdl to KEEP FILES. Then go to the directory you exported to and open the *_0.asm file. Towards the top of this file you should see something like this:texture_riff_start_EconolineVan label word db 'T','E','X','T' dd texture_riff_end_EconolineVan - $ - 4 TEXTURE_LIST_BEGIN TEXTURE_DEF TEXTURE_BUILDING , <255,255,255,255>, 0.208596, "LIGHTS.BMP" ; 0 TEXTURE_DEF TEXTURE_BUILDING , <255,255,255,255>, 0.552675, "CHROME_T.BMP" ; 1 TEXTURE_DEF TEXTURE2_REFLECT , <255,255,255,255>, 0.552675, "CHROME_T.BMP" ; 2 TEXTURE_DEF TEXTURE_BUILDING , <255,255,255,255>, 0.447056, "GLASS_T.BMP" ; 3 TEXTURE_DEF TEXTURE2_REFLECT , <255,255,255,255>, 0.447056, "GLASS_T.BMP" ; 4 TEXTURE_LIST_END BGL_RETURNtexture_riff_end_EconolineVan label wordChange them so they are like this:texture_riff_start_EconolineVan label word db 'T','E','X','T' dd texture_riff_end_EconolineVan - $ - 4 TEXTURE_LIST_BEGIN TEXTURE_DEF TEXTURE_BUILDING , <255,255,255,255>, 0.208596, "LIGHTS.BMP" ; 0 TEXTURE_DEF TEXTURE_AIRCRAFT , <255,255,255,255>, 0.552675, "CHROME_T.BMP" ; 1 TEXTURE_DEF TEXTURE2_REFLECT , <255,255,255,255>, 0.552675, "CHROME_T.BMP" ; 2 TEXTURE_DEF TEXTURE_AIRCRAFT , <255,255,255,255>, 0.447056, "GLASS_T.BMP" ; 3 TEXTURE_DEF TEXTURE2_REFLECT , <255,255,255,255>, 0.447056, "GLASS_T.BMP" ; 4 TEXTURE_LIST_END BGL_RETURNtexture_riff_end_EconolineVan label word Recompile the *.asm with BGLC_9.exe then you can place it with xmlLou

Share this post


Link to post
Share on other sites
Guest misho

Actually, Aircraft and Scenery approaches differ - that was my original question in the post. I know how to do it on aircraft but the trick is how to do it on scenery. Thanks anyway.

Share this post


Link to post
Share on other sites
Guest misho

Hi Lou,I'm still having problems with this. I get the *_0.asm and *.asm files as intermediary files. I make the change as outlined above in *_0.asm file.Then I compile both *.asm files with BGLC_9.exe, as instructed (actually, I was unclear if both ASM files needed to be recompiled)*_0.bgl and *.bgl files are created.Then, when I compile XML with bglcomp.exe, the *.bgl file is overwritten... and FS won't start. Is this the right procedure?As a side note, Middleman is not working in the latest release of GMAX SDK. I'm not sure if I'm missing something, but I get error warnigs that "makem.parts.xml could not be found" and the names of the X files in the first dialog pane are ambiguous. Is there anything that I'm missing? Is Middleman v1.2 compatible with FS2004 GMAX SDK?Thanks in advance,

Share this post


Link to post
Share on other sites
Guest misho

Never mind, I figured it out! *_0.asm is included in main *.asm, and the argument string for BGLC_9 is right at the top of the ASM file! It worked perfect! Thanks guys!!!

Share this post


Link to post
Share on other sites

Hi Misho.The output from BGLC_9 has a ".bgl" appended... just change this to ".mdl" for FS9 Gmax-derived code, then the XML-BGLComp will format it correctly.Alternately, from the command line:BGLC_9 /mdl Myfile.asmDick

Share this post


Link to post
Share on other sites
Guest misho

Yup, that was exactly the command line I was missing. I found it at the top of *.asm file! Thanks!

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...