• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSX cube map experiment

Messages
5,214
Hi,

(I was not sure if it would be better to post in this forum or in the graphics forum but as I am using MCX for it...)
I have been experimenting with cube maps and a couple of things strike me as inconsistent.
1. The texture is blurry although the cube map is a 1024 x 1024 dds DXT5.
2. The closer you get to the texture the more you can see from the texture and the other way round, contrary to what you would expect.
I attach 3 screenshots to make it clear:
1. original of the front cube texture
2. cubemap close up
3. cubemap from some distance off.
Notice that you only see one window if you are more distant and almost 3 windows when you are closer to the cube.
Can anybody give me an explanation for this or if I am doing something wrong here.
By the way, I am also wondering how to scale the texture so that a wider part of the texture is reflected.

Tks
 
Last edited:
Hi,
my first impression was you have created a illusionary giant like Mr. Tur Tur from "Jim Button and Luke the Engine Driver"... :)

I have never used any cube maps, but I think this link (http://wiki.delphigl.com/index.php/Cubemap; sorry, German only, but the image there's good enough) and some physics may give a solution.

As I understood cube maps may distinguish between GL_NORMAL_MAP and GL_REFLECTION_MAP methods, where you most likely used the latter (don't ask me why and how to change this - no idea). The cube map represents the surroundings of your object which can be seen reflecting on the object - like in a mirror. The distance of the cube map relative to the object stays constant like a fixed wall.

If you get closer the rays limiting your field of view (FOV) in the mirror will hit the surface under a more flat angle. On the opposite the reflected rays will be more spread, i.e. the FOV will be more wide. In your example you will see more windows.

You can test that at home with your bathroom mirror, TV flat screen etc.: look at some characteristic edge and see how it moves in your field of view if you get closer or move away.

Regards

Michael
 
Hi,

Thanks, I read the Wiki articles in Dutch and English and now in German but when I look in a mirror, (took me a while to overcome my repulsion :)), I see more of the surroundings when I keep it farther away than when I look close up and see more of my details/rimples.
From what I understand you are trying to tell me is that indeed you should see more detail closer up and therefore less of the surroundings, But that is not the case, on the contrary. That is why I think I have made a mistake somewhere or if perhaps MCX (sorry Arno that I dare have my doubts) made some wrong conversion.
Or else you are trying to tell me that regardless of the distance of the user craft to the cube map, the cube map always displays the same size image depending on the view angle but not acting like a real mirror?
 
Hi,

Thanks, I read the Wiki articles in Dutch and English and now in German but when I look in a mirror, (took me a while to overcome my repulsion :)), I see more of the surroundings when I keep it farther away than when I look close up and see more of my details/rimples.
From what I understand you are trying to tell me is that indeed you should see more detail closer up and therefore less of the surroundings, But that is not the case, on the contrary. That is why I think I have made a mistake somewhere or if perhaps MCX (sorry Arno that I dare have my doubts) made some wrong conversion.
Or else you are trying to tell me that regardless of the distance of the user craft to the cube map, the cube map always displays the same size image depending on the view angle but not acting like a real mirror?

thats what the opaqness is there for, as well as the fresnal map ... its to give the appearance that comes off as a reflection depending on the view of the user.
 
Sorry, that experiment wasn't meant to turn out into sort of a self-confrontation. ;)
What I meant should become clear with the attached sketch drawing. There are two different observer positions shown and the respective limiting rays. As the object or mirror is completely in the FOV the limiting rays will hit the mirror at its edges. The trick is that the environment/cube map is positioned behind the observer.
In the "red" observer position the rays will hit and leave the mirror under steep angles. The virtual FOV which can be seen on the mirror is therefor only a section of the complete cube map. If the observer comes closer to the mirror ("green") the FOV angle is increasing, until you can see the whole environment map.
I think that this makes sense as the "environment" is usually far away from a mirroring object, i.e. near the horizon (compare with the standard FSX environment map).
On the other hand, if you consider objects which are positioned between the observer and the mirror, you are right: the closer you are the more details you will see. But that seems to be beyond of the capabilities of todays cubemaps?!
 

Attachments

  • EnvironmentCubeMap.jpg
    EnvironmentCubeMap.jpg
    10.5 KB · Views: 701
Hi,

I never really tried to make my own cube map to use it as environment map, so I am not sure if I can help much here.

But if you really there might be a bug in ModelConverterX somewhere I will dive into it and debug it. Since ModelConverterX is just setting the material options, it should not work different from GMax.
 
Thanks, Flyinmike, that was nicely explained and I dug it.
Never mind my cynical remarks I just try to avoid becoming serious.
 
Hi Arno.

Do not bother to look for bugs in the MCX material editor for this kind of problem.
I really do not think it has anything to do with MCX.
Most probably the things I mentioned have to do with
- what Flyinmike explained and
- with the size of the cube map. I will try to resize it and maybe that will remedy the blurriness.
 
Hi,
I remember I made my own cubemap using a soft from ATI. The resulting dds was huge, over 6Mo. What is your file size ?
I'm not using custom cube anymore.
 
Morning,

1.5 Mb and 1536 x 256 pixels. And apparently it does not hurt the FPS too much either.
With resizing I meant zooming out for taking the screenshot so that there is a wider view in the screenshot.
 
Last edited:
Back
Top