SoHeightMapToNormalMap - Online Linux Manual PageSection : 3
Updated : Mon Jan 25 2021
Source : Version 3.1.3
Note : Coin

NAMESoHeightMapToNormalMap − Engine for computing a normal map from a height map​.

SYNOPSIS
#include <Inventor/engines/SoHeightMapToNormalMap​.h> Inherits SoTexture2Convert​.

Public Typesenum NormalMapFormat { INT8 }

Public Member Functionsvirtual SoType getTypeId (void) const
virtual const SoFieldData * getFieldData (void) const
virtual const SoEngineOutputData * getOutputData (void) const
SoHeightMapToNormalMap (void)

Static Public Member Functionsstatic SoType getClassTypeId (void)
static void * createInstance (void)
static void initClass (void)
static void convert (const unsigned char *srcptr, SbVec2s size, int nc, SbImage &dst_out)

Public AttributesSoSFEnum format

Protected Member Functionsvirtual void inputChanged (SoField *which)
virtual void evaluate (void)

Static Protected Member Functionsstatic const SoFieldData ** getInputDataPtr (void)
static const SoEngineOutputData ** getOutputDataPtr (void)

Additional Inherited Members

Detailed DescriptionEngine for computing a normal map from a height map​. This engine will create a normal map texture from a height map texture​. You can use it in an Inventor file like this: Texture2 { image = HeightMapToNormalMap { sourceImage = Texture2 { filename "HeightMap​.jpg" } ​. image } ​. image }Be aware that the field connections will remain active, so both Texture2 nodes and the HeightMapToNormalMap engine will be kept resident in memory (unless you intervene manually and detach the engine) even though only the 'outer' Texture2 node is needed​. This can give quite a big memory use overhead​. Be aware that this class is an extension for Coin, and it is not available in the original SGI Open Inventor v2​.1 API​.
Since
Coin 3​.0

Member Enumeration Documentation

enum SoHeightMapToNormalMap::NormalMapFormatEnumeration of available normal map formats​. Enumerator INT8  Encode the normals as a 3 component byte texture​. This is the only option for now, as long as float textures are not conveniently supported in Coin​.

Constructor & Destructor Documentation

SoHeightMapToNormalMap::SoHeightMapToNormalMap (void)Constructor​.

Member Function Documentation

SoType SoHeightMapToNormalMap::getTypeId (void) const [virtual]Returns the type identification of an object derived from a class inheriting SoBase​. This is used for run-time type checking and 'downward' casting​. Usage example: void foo(SoNode * node) { if (node->getTypeId() == SoFile::getClassTypeId()) { SoFile * filenode = (SoFile *)node; // safe downward cast, knows the type } }For application programmers wanting to extend the library with new nodes, engines, nodekits, draggers or others: this method needs to be overridden in all subclasses​. This is typically done as part of setting up the full type system for extension classes, which is usually accomplished by using the pre-defined macros available through for instance Inventor/nodes/SoSubNode​.h (SO_NODE_INIT_CLASS and SO_NODE_CONSTRUCTOR for node classes), Inventor/engines/SoSubEngine​.h (for engine classes) and so on​. For more information on writing Coin extensions, see the class documentation of the toplevel superclasses for the various class groups​. Reimplemented from SoTexture2Convert​.

const SoFieldData * SoHeightMapToNormalMap::getFieldData (void) const [virtual]Returns a pointer to the class-wide field data storage object for this instance​. If no fields are present, returns NULL​. Reimplemented from SoTexture2Convert​.

const SoEngineOutputData * SoHeightMapToNormalMap::getOutputData (void) const [virtual]This API member is considered internal to the library, as it is not likely to be of interest to the application programmer​.

Reimplemented from SoTexture2Convert​.

void SoHeightMapToNormalMap::initClass (void) [static]Class initializer​.

void SoHeightMapToNormalMap::convert (const unsigned char * srcptr, SbVec2s size, int nc, SbImage & dst_out) [static]Static function for computing a normal map from a height map​. This function can be used directly without any engine instantiation​.

void SoHeightMapToNormalMap::inputChanged (SoField * which) [protected], [virtual]Called when an input is changed​. The default method does nothing, but subclasses may override this method to do The Right Thing when a specific field is changed​. Reimplemented from SoEngine​.

void SoHeightMapToNormalMap::evaluate (void) [protected], [virtual]This API member is considered internal to the library, as it is not likely to be of interest to the application programmer​.

Implements SoEngine​.

Member Data Documentation

SoMFEnum SoHeightMapToNormalMap::formatThis setting decides what kind of normal map is generated​. For now, only the INT8 format is available, and it is the default value​.

AuthorGenerated automatically by Doxygen for Coin from the source code​.
0
Johanes Gumabo
Data Size   :   24,429 byte
man-SoHeightMapToNormalMap.3coin3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 192,015
Visitor ID   :     :  
Visitor IP   :   3.145.44.46   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.