Hi,
I have encountered several issues while using :
setBackgroundColor, setAmbientColor, setMistColor
I was wondering if you could confirm the following :
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
GLSL
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
setBackgroundColor()
World Data Block + Textured Mode : NOT working
World Data Block + Shaded Mode : working
NO World Data Block. Textured Mode : working
NO World Data Block. Shaded Mode : working
setAmbientColor()
World Data Block + Textured Mode : NOT working
World Data Block + Shaded Mode : NOT working
NO World Data Block. Textured Mode : Works on objects with no material only
NO World Data Block. Shaded Mode : Works onobjects with no material only
setMistColor(), setMistStart(), setMistEnd()
World Data Block + Textured Mode : works on objects with no material only
World Data Block + Shaded Mode : working
World Data Block + Textured Mode + Mist button : Not working (following panel settings)
World Data Block + Shaded Mode + Mist button : Not working (following panel settings)
NO World Data Block. Textured Mode : works on objects with no material only
NO World Data Block. Shaded Mode : working
\\\\\\\\\\\\\\\\\\\\\\\\\\\
Note :
- Create a world Data Block.
- Apply the Mist button.
- Delete the world Data Block
=> The Mist is still applied to all textured object in the 3d view and when the game is launched. Is that normal?
\\\\\\\\\\\\\\\\\\\\\\\\\\\\
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
MULTITEXTURES MATERIALS
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
setBackgroundColor()
World Data Block + Textured Mode : NOT working
World Data Block + Shaded Mode : working
NO World Data Block. Textured Mode : working
NO World Data Block. Shaded Mode : working
setAmbientColor()
World Data Block + Textured Mode : NOT working
World Data Block + Shaded Mode : NOT working
NO World Data Block. Textured Mode : working
NO World Data Block. Shaded Mode : working
setMistColor(), setMistStart(), setMistEnd()
World Data Block + Textured Mode : working
World Data Block + Shaded Mode : working
World Data Block + Textured Mode + Mist button : Not working (following panel settings)
World Data Block + Shaded Mode + Mist button : Not working (following panel settings)
NO World Data Block. Textured Mode : working
NO World Data Block. Shaded Mode : working
…
RESUME
I would like to know if that’s normal and if it shouldn’t be brought to the attention of developers?
…
Another test.
:::::::::::::::::::::::
Instructions
:::::::::::::::::::::::
Please download that test blend (targ.gz / 39.6ko)
- Open the file. Launch the Game Engine P key. Watch
- Esc. Create a World Data block (ShadingF5 - World buttons) and see what happens, Mist disabled/enabled. World Data enabled/disabled.
Also, here is quote from a conversation we had with cthames.
It describes a simple test to make and check it by yourself :
From cthames
Create a floor. A large plane. 4 vertices. No subdivide. Add your cubes. Add a material to your floor and cubes.
World data block and using the Mist button in the Mist/Stars/Physic tab. Mist will gradually progress from 2 BU to 20 BU at which point it will become solid.
- Having a material on your floor and cubes.
With the Mist button enabled, setMistColor, setMistStart and setMistEnd doesn’t have any effect.
With the Mist button disabled, setMistColor, setMistStart and setMistEnd doesn’t have any effect.
- Remove the material from your floor and cubes.
With the Mist button enabled, setMistColor, setMistStart and setMistEnd doesn’t have any effect.
With the Mist button disabled, setMistColor, setMistStart and setMistEnd, the plane of 4 vertices will be a solid color (this is what I meant but didn’t explain very well). The cubes will have a mist effect (kind of).
In GLSL (World data block, Mist button enabled) if there is a texture, mist uses texture paint and the mist is independent of the number of vertexes. If there isn’t a texture it uses vertex paint and the mist is dependent upon the number of vertexes.
setMistColor, setMistStart and setMistEnd doesn’t work on objects with materials/textures. It should but it doesn’t. It only uses vertex paint on objects that don’t have a material/texture. If you have two objects, one textured and the other not, the textured object won’t have mist and the untextured object will.
Any information and test would be helpful,
Thank you!