SOPOINTLIGHT(3iv)
π SoPointLight β bestie edition π
okay so this is the man page for SoPointLight, from the 3IV manual set. It's a node that represents a point light source. Very main character of it, honestly. π‘β¨
π NAME π
SoPointLight β a node representing a point light source. yep that's the whole vibe. one little light, floating in 3D space, lighting up everything around it. iconic behavior fr fr. π―οΈ
𧬠INHERITS FROM π§¬
This is the family tree, and yes it's giving royal lineage:
SoBase > SoFieldContainer > SoNode > SoLight > SoPointLight
so like. it inherited everything from all of those. nepo baby but make it scene graph. π
π SYNOPSIS π
Include it like this, bestie:
#include <Inventor/nodes/SoPointLight.h>
Fields from class SoPointLight:
SoSFVec3f location
Fields from class SoLight:
SoSFBool on
SoSFFloat intensity
SoSFColor color
Methods from class SoPointLight:
SoPointLight()
static SoType getClassTypeId()
Methods from class SoNode:
void setOverride(SbBool state)
SbBool isOverride() const
SoNode * copy(SbBool copyConnections = FALSE) const
virtual SbBool affectsState() const
static SoNode * getByName(const SbName &name)
static int getByName(const SbName &name, SoNodeList &list)
Methods from class SoFieldContainer:
void setToDefaults()
SbBool hasDefaultValues() const
SbBool fieldsAreEqual(const SoFieldContainer *fc) const
void copyFieldValues(const SoFieldContainer *fc, SbBool
copyConnections = FALSE)
SbBool set(const char *fieldDataString)
void get(SbString &fieldDataString)
virtual int getFields(SoFieldList &resultList) const
virtual SoField * getField(const SbName &fieldName) const
SbBool getFieldName(const SoField *field, SbName &fieldName)
const
SbBool isNotifyEnabled() const
SbBool enableNotify(SbBool flag)
Methods from class SoBase:
void ref()
void unref() const
void unrefNoDelete() const
void touch()
virtual SoType getTypeId() const
SbBool isOfType(SoType type) const
virtual void setName(const SbName &name)
virtual SbName getName() const
yes it's a lot. yes you should read it. no you don't have to memorize it. π«Ά
πΈ DESCRIPTION πΈ
So like, this node defines a point light source at a fixed 3D location. π―
And here's the cute part: a point source illuminates equally in all directions. like, it's not picky, it's not choosing favorites, it's not shining only one way. It's omni-directional, bestie. It loves everyone equally. πβ¨
π FIELDS π
SoSFVec3f locationβ where the source is located. its little address in 3D space. its home. π
π§ METHODS π§
SoPointLight()β creates a point light source node with default settings. brand new baby light, freshly born, defaults and all. πΆβ¨static SoType getClassTypeId()β returns the type identifier for this class. it's the "who am I" but in a type-system way. πͺͺ
π¬ ACTION BEHAVIOR π¬
SoGLRenderActionβ activates this light (if so specified, like if you actually asked for it) during traversal. Every shape node that comes after this light in the scene graph gets illuminated by it. and β plot twist β the light's location is affected by the current transformation. so yes, move the transform, move the light. it follows. π«
ποΈ FILE FORMAT/DEFAULTS ποΈ
the default state of this whole situation:
PointLight {
on TRUE
intensity 1
color 1 1 1
location 0 0 1
}
so by default it's ON, intensity 1, color 1 1 1 (white, obviously), sitting at 0 0 1. slay. π
π SEE ALSO π
go read these next, they're in the same friend group:
SoDirectionalLightSoSpotLight
quick reminder bestie: this page is SoPointLight(3IV) from the 3IV manual set β that's the source/version tag at the bottom of the original, and the date slot is just... empty, no cap, there's literally nothing in those parens. so consider this your sign-off: stay illuminated, stay omni-directional, and go light up your scene graph. ππβπ¦π
π¦ where this page comes from
- debian bookworm: inventor-doc 2.1.5-10+dfsg-2 Β· LGPL-2.0-or-later
- debian trixie: inventor-doc 2.1.6+ds-2 Β· LGPL-2.0-or-later
- ubuntu jammy: inventor-doc 2.1.5-10-24
- ubuntu noble: inventor-doc 2.1.5-10+dfsg-2.1build2 Β· LGPL-2.0-or-later
- ubuntu questing: inventor-doc 2.1.6+ds-2
- ubuntu resolute: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- ubuntu stonking: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms