Post by Erik Hofman
Once Thorsten once mentioned he would like to be able to use the ALS
shaders on the Sun object and recently I came to the conclusion that
change the celestial object creation from code to loading an AC3d object
would make that possible.
Now I have code to load a textured moon 3d object and move it through
the sky keeping the moon phases. For the default renderer.
But the problem is that when I enable ALS I always get an untextured
fool moon object. Is there something ALS specific that I'm missing? Do I
need to apply a shader to get the textures visible for instance?
ALS is not in any way special C++ side, it's identical to Classic. The
only difference is in the effect definitions (which branch ALS to
different shaders than classic) and the actual shader code.
If you insert a 3d model with an effect that does not specifically branch
to ALS shaders, that object should be rendered in ALS just the same as in
Classic (which happens for instance if you use the chrome effect) - with
visual inconsistencies under some lighting, but not untextured or
My understanding is that currently the Moon works that way - it's a 3d
model that however gets white light (to protect it from being red by
sunset colors in Classic) - and that is how it appears in the scene.
So basically the only way I can imagine you can have an object untextured
in ALS is that your effect branches ALS to a different shader family, but
the effect declaration or the shader code is broken for some reason
whereas the Classic branch works.