API Documentation: GPU module - uniform types, out of date #45505

Closed
opened 2015-07-20 16:31:26 +02:00 by Michael Otto · 15 comments

First, Sorry, I'm not sure where to report documentation issues. If it's wrong here, can you please move it to the right place? Thank you!
Blender Version
Broken: 2.75
Worked: 2.73 (?)

Several GPU uniform types have been added, which are not documented yet, on

http://www.blender.org/api/blender_python_api_2_75_release/gpu.html#glsl-uniform-type

Some results of our own research:
GPU_DYNAMIC_AMBIENT_COLOR // world.ambient_color
GPU_DYNAMIC_HORIZON_COLOR // world.horizon_color
GPU_DYNAMIC_LAMP_ATT1 // lamp.linear_attenuation(?) ... or swapped with ATT2?
GPU_DYNAMIC_LAMP_ATT2 // lamp.quadratic_attenuation(?) ... or swapped with ATT1?
GPU_DYNAMIC_LAMP_DISTANCE // lamp.distance (?)
GPU_DYNAMIC_LAMP_SPOTBLEND // lamp.spot_blend
GPU_DYNAMIC_LAMP_SPOTSIZE // lamp.spot_size
GPU_DYNAMIC_MAT_ALPHA // material.alpha
GPU_DYNAMIC_MAT_AMB // material.ambient (ambient intensity)
GPU_DYNAMIC_MAT_DIFFRGB // material.diffuse_color
GPU_DYNAMIC_MAT_EMIT // material.emit
GPU_DYNAMIC_MAT_HARD // material.specular_hardness (?)
GPU_DYNAMIC_MAT_REF // material.specular_ior (?????)
GPU_DYNAMIC_MAT_SPEC // material.specular_intensity
GPU_DYNAMIC_MAT_SPECRGB // material.specular_color
GPU_DYNAMIC_MIST_COLOR // ???
GPU_DYNAMIC_MIST_DISTANCE // world.mist_settings.depth(???)
GPU_DYNAMIC_MIST_ENABLE // world.mist_settings.use_mist
GPU_DYNAMIC_MIST_INTENSITY // world.mist_settings.intensity
GPU_DYNAMIC_MIST_START // world.mist_settings.start
GPU_DYNAMIC_MIST_TYPE // world.mist_settings.falloff (???)

First, Sorry, I'm not sure where to report documentation issues. If it's wrong here, can you please move it to the right place? Thank you! Blender Version Broken: 2.75 Worked: 2.73 (?) Several GPU uniform types have been added, which are not documented yet, on http://www.blender.org/api/blender_python_api_2_75_release/gpu.html#glsl-uniform-type Some results of our own research: GPU_DYNAMIC_AMBIENT_COLOR // world.ambient_color GPU_DYNAMIC_HORIZON_COLOR // world.horizon_color GPU_DYNAMIC_LAMP_ATT1 // lamp.linear_attenuation(?) ... or swapped with ATT2? GPU_DYNAMIC_LAMP_ATT2 // lamp.quadratic_attenuation(?) ... or swapped with ATT1? GPU_DYNAMIC_LAMP_DISTANCE // lamp.distance (?) GPU_DYNAMIC_LAMP_SPOTBLEND // lamp.spot_blend GPU_DYNAMIC_LAMP_SPOTSIZE // lamp.spot_size GPU_DYNAMIC_MAT_ALPHA // material.alpha GPU_DYNAMIC_MAT_AMB // material.ambient (ambient intensity) GPU_DYNAMIC_MAT_DIFFRGB // material.diffuse_color GPU_DYNAMIC_MAT_EMIT // material.emit GPU_DYNAMIC_MAT_HARD // material.specular_hardness (?) GPU_DYNAMIC_MAT_REF // material.specular_ior (?????) GPU_DYNAMIC_MAT_SPEC // material.specular_intensity GPU_DYNAMIC_MAT_SPECRGB // material.specular_color GPU_DYNAMIC_MIST_COLOR // ??? GPU_DYNAMIC_MIST_DISTANCE // world.mist_settings.depth(???) GPU_DYNAMIC_MIST_ENABLE // world.mist_settings.use_mist GPU_DYNAMIC_MIST_INTENSITY // world.mist_settings.intensity GPU_DYNAMIC_MIST_START // world.mist_settings.start GPU_DYNAMIC_MIST_TYPE // world.mist_settings.falloff (???)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @MichaelOtto

Added subscriber: @MichaelOtto

Added subscriber: @souljedi

Added subscriber: @souljedi

Furthermore, the values of the already documented uniform types are not correct anymore and have some 6 digit long hash code or so.

Furthermore, the values of the already documented uniform types are not correct anymore and have some 6 digit long hash code or so.
Aaron Carlisle self-assigned this 2015-07-20 20:29:11 +02:00
Aaron Carlisle removed their assignment 2015-07-20 20:30:12 +02:00
Member

Added subscriber: @Blendify

Added subscriber: @Blendify

Added subscribers: @Psy-Fi, @ideasman42, @Sergey

Added subscribers: @Psy-Fi, @ideasman42, @Sergey

@ideasman42, @Psy-Fi, think this one is for you guys.

@Blendify, #documentation project is about blender.org/manual. API-related documentation is #BF_blender.

@ideasman42, @Psy-Fi, think this one is for you guys. @Blendify, #documentation project is about blender.org/manual. API-related documentation is #BF_blender.
Member

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel
Member

Eeeeeh, but think we should handle this as todo? Changing for now.

Eeeeeh, but think we should handle this as todo? Changing for now.

Added subscriber: @wacampbell

Added subscriber: @wacampbell

Would a moderator, or the owner please remove this from the Documentation project.

Would a moderator, or the owner please remove this from the Documentation project.

Removed subscriber: @wacampbell

Removed subscriber: @wacampbell

This issue was referenced by 1c5b15eab3

This issue was referenced by 1c5b15eab3d6673ea0e5c1dea6d5d016880e64f6

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
See updated docs here: http://www.blender.org/api/blender_python_api_2_75_4/gpu.html
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
8 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#45505
No description provided.