Castle Game Engine: X3DLoadInternalUtils

# Unit X3DLoadInternalUtils
Description | Uses | Classes, Interfaces, Objects and Records | Functions and Procedures | Types | Constants | Variables
## Description Utilities for converting other 3D model formats into VRML/X3D. ## Uses CastleVectors X3DNodes ## Overview ### Functions and Procedures
`function ToX3DName(const S: string): string;`
`function AmbientIntensity(const AmbientColor, DiffuseColor: TVector3Single): Single;`
`function AmbientIntensity(const AmbientColor, DiffuseColor: TVector4Single): Single;`
`function SearchTextureFile(const BaseUrl, Base: string): string;`
### Constants
`NiceCreaseAngle = DefaultVRML1CreaseAngle;`
## Description ### Functions and Procedures
`function ToX3DName(const S: string): string;`
`function AmbientIntensity(const AmbientColor, DiffuseColor: TVector3Single): Single;`
Calculate best possible ambientIntensity. This is a float that tries to satisfy the equation AmbientColor = AmbientIntensity * DiffuseColor. Suitable for VRML 2.0/X3D Material.ambientIntensity (as there's no Material.ambientColor in VRML 2.0/X3D).
`function AmbientIntensity(const AmbientColor, DiffuseColor: TVector4Single): Single;`
`function SearchTextureFile(const BaseUrl, Base: string): string;`
Search harder for file named Base inside directory of BaseUrl. BaseUrl must be an absolute URL, we will extract path from it. Returns URL relative to BaseUrl. We prefer to return just Base, if it exists, or when no alternative exists. When Base doesn't exist but some likely alternative exists (e.g. with different case), we return it.
### Constants
`NiceCreaseAngle = DefaultVRML1CreaseAngle;`
Generated by PasDoc 0.13.0 on 2013-08-17 21:27:15