Mist and global ambient for Multitexture and GLSL #37492

Closed
opened 2013-11-16 15:44:57 +01:00 by Thomas Szepe · 17 comments
Member

This patch fixes the most mist and ambient bugs for the BGE. It is also adding mist and ambient render to the viewport for the multitexture mode.

  1. Changing the mist values are now working in GLSL in the BGE
  2. F-Curve now working for in the BGE for Ambient Color, Horizon Color, Start, Distance, Maximum Intensity.
  3. Blender UI mode now grays out the values that does not effect the mist (multitexture).
  4. Blender viewport now renders the mist and ambient light in multitexture mode.
  5. World value and F-Curve changes now update immediately the Blender view port.
  6. The background color for BGE and Blender viewport in GLSL is now displaying correct if the Color management is inactive.
  7. Add "Render Mist" button to the properties panel under display (disable mist while working).
  8. Move the world API from render to sce.world.
  9. Mist now not automatically activated when a value will be changed.
  10. Changed "MistEnd" to "mist_distance".
  11. Add "mist_intensity" and "mist_type" to the API.
  12. Enable the material render for GLSL + Solid, to display the material and GLSL mist correct (http://developer.blender.org/T37415).
  13. Removed unnecessary BlenderWorldInfo.
  14. Fixed (bug) double called KX_PYATTRIBUTE_RO_FUNCTION("lights", KX_Scene, pyattr_get_lights). Replaced it with the new world.

Known issues.

  1. Ambient light in multitexture is different between Blender viewport and BGE.
  2. Material ambient value not working in Blender viewport.
  3. Font objects not renders with ambient light in the BGE (no material, bug in the trunk).
  4. Font objects in GLSL not renders with mist and ambient light (no material, bug in the trunk).
  5. Disabling mist for material (Use Mist button) only works in GLSL + textured.
  6. The Blender viewport render in GLSL + Solid is different to BGE (GLSL + Solid = Multitexture, bug in the trunk).
  7. If are two F-Curves activated to a different time, one F-Cvurve will overwrite the values form the other curve while the are running (bug in the trunk).
  8. For textured objects ambient light in the BGE only works if "face Textures" or if "alpha" is enable or a blend mode higher then "Screen" is used (texture pipeline problem).

mist10.2.patch

This patch fixes the most mist and ambient bugs for the BGE. It is also adding mist and ambient render to the viewport for the multitexture mode. 1. Changing the mist values are now working in GLSL in the BGE 2. F-Curve now working for in the BGE for Ambient Color, Horizon Color, Start, Distance, Maximum Intensity. 3. Blender UI mode now grays out the values that does not effect the mist (multitexture). 4. Blender viewport now renders the mist and ambient light in multitexture mode. 5. World value and F-Curve changes now update immediately the Blender view port. 6. The background color for BGE and Blender viewport in GLSL is now displaying correct if the Color management is inactive. 7. Add "Render Mist" button to the properties panel under display (disable mist while working). 8. Move the world API from render to sce.world. 9. Mist now not automatically activated when a value will be changed. 10. Changed "MistEnd" to "mist_distance". 11. Add "mist_intensity" and "mist_type" to the API. 12. Enable the material render for GLSL + Solid, to display the material and GLSL mist correct (http://developer.blender.org/T37415). 13. Removed unnecessary BlenderWorldInfo. 14. Fixed (bug) double called KX_PYATTRIBUTE_RO_FUNCTION("lights", KX_Scene, pyattr_get_lights). Replaced it with the new world. Known issues. 1. Ambient light in multitexture is different between Blender viewport and BGE. 2. Material ambient value not working in Blender viewport. 3. Font objects not renders with ambient light in the BGE (no material, bug in the trunk). 4. Font objects in GLSL not renders with mist and ambient light (no material, bug in the trunk). 5. Disabling mist for material (Use Mist button) only works in GLSL + textured. 6. The Blender viewport render in GLSL + Solid is different to BGE (GLSL + Solid = Multitexture, bug in the trunk). 7. If are two F-Curves activated to a different time, one F-Cvurve will overwrite the values form the other curve while the are running (bug in the trunk). 8. For textured objects ambient light in the BGE only works if "face Textures" or if "alpha" is enable or a blend mode higher then "Screen" is used (texture pipeline problem). [mist10.2.patch](https://archive.blender.org/developer/F28024/mist10.2.patch)
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @hg1

Added subscriber: @hg1
Mitchell Stokes was assigned by Brecht Van Lommel 2013-11-18 13:06:32 +01:00

I wonder if this would be a good candidate for using Differential (Phabricator's code review module). Would you mind uploading a diff to Differential and adding Kupoman and myself as reviewers?

I wonder if this would be a good candidate for using Differential (Phabricator's code review module). Would you mind uploading a diff to Differential and adding Kupoman and myself as reviewers?
Author
Member

I generated a GIT diff from the mist patch. I don't have much experience with git, I hope that it works.

I generated a GIT diff from the mist patch. I don't have much experience with git, I hope that it works.

Upload the diff here: http://developer.blender.org/differential/diff/create/ and add me as reviewer.

Upload the diff here: http://developer.blender.org/differential/diff/create/ and add me as reviewer.

Added subscriber: @solarlune

Added subscriber: @solarlune

Added subscriber: @NickPolet

Added subscriber: @NickPolet
Author
Member

@ solarlune and klauser I made a series of patch like Brecht suggested.
This are the actual patches.
D148, D149, D150, D151, D152, D154, D155, D156, D157, D158, D159, D200.

@ solarlune and klauser I made a series of patch like Brecht suggested. This are the actual patches. [D148](https://archive.blender.org/developer/D148), [D149](https://archive.blender.org/developer/D149), [D150](https://archive.blender.org/developer/D150), [D151](https://archive.blender.org/developer/D151), [D152](https://archive.blender.org/developer/D152), [D154](https://archive.blender.org/developer/D154), [D155](https://archive.blender.org/developer/D155), [D156](https://archive.blender.org/developer/D156), [D157](https://archive.blender.org/developer/D157), [D158](https://archive.blender.org/developer/D158), [D159](https://archive.blender.org/developer/D159), [D200](https://archive.blender.org/developer/D200).

Added subscriber: @lopataasdf

Added subscriber: @lopataasdf

Is it possible to add ssao to the viewport in GLSL mode? This would be useful for fast rendering many scenes using OpenGL

http://blenderartists.org/forum/showthread.php?234822-new-and-fast-SSAO
http://blenderartists.org/forum/showthread.php?184102-nicer-and-faster-SSAO

Is it possible to add ssao to the viewport in GLSL mode? This would be useful for fast rendering many scenes using OpenGL http://blenderartists.org/forum/showthread.php?234822-new-and-fast-SSAO http://blenderartists.org/forum/showthread.php?184102-nicer-and-faster-SSAO
Author
Member

@lopataasdf yes it is possible. But this is not topic of this patch. Please do not discuss here about non-related topics.

@lopataasdf yes it is possible. But this is not topic of this patch. Please do not discuss here about non-related topics.

@hg1, great to see that most of these revisions have been accepted, can't wait for this to be part of the master repo. Also like the more pythonic naming convention. It's a shame that some of the bge api is Camel Case and some of it pep8, but at least new additions like this are opting for the pep8 naming conventions. Great work.

@hg1, great to see that most of these revisions have been accepted, can't wait for this to be part of the master repo. Also like the more pythonic naming convention. It's a shame that some of the bge api is Camel Case and some of it pep8, but at least new additions like this are opting for the pep8 naming conventions. Great work.

Added subscriber: @Ace_Dragon

Added subscriber: @Ace_Dragon

Hey Moguri, now that you have a contract with the BF, perhaps you will now be able to review this patch for HG1?

HG1 himself has mentioned on Blenderartists that it's been frustrating to not get a timely review and is on the verge of giving up, so that's why I want to bring this back to your attention.

Hey Moguri, now that you have a contract with the BF, perhaps you will now be able to review this patch for HG1? HG1 himself has mentioned on Blenderartists that it's been frustrating to not get a timely review and is on the verge of giving up, so that's why I want to bring this back to your attention.

@Ace_Dragon, see the individual Differential patches, I've already reviewed all of them.

@Ace_Dragon, see the individual Differential patches, I've already reviewed all of them.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

Closing this task since it's now in Differential (D148, D149, D150, D151, D152, D154, D155, D156, D157, D158, D159, D200).

Closing this task since it's now in Differential ([D148](https://archive.blender.org/developer/D148), [D149](https://archive.blender.org/developer/D149), [D150](https://archive.blender.org/developer/D150), [D151](https://archive.blender.org/developer/D151), [D152](https://archive.blender.org/developer/D152), [D154](https://archive.blender.org/developer/D154), [D155](https://archive.blender.org/developer/D155), [D156](https://archive.blender.org/developer/D156), [D157](https://archive.blender.org/developer/D157), [D158](https://archive.blender.org/developer/D158), [D159](https://archive.blender.org/developer/D159), [D200](https://archive.blender.org/developer/D200)).
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
6 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#37492
No description provided.