Main Page   Modules   Alphabetical List   Data Structures   Data Fields  

RwIm3d
[RtAltPipe]


Functions

RxPipeline RwIm3DSkyGetPS2ManagerTransformPipeline (void)
RxPipeline RwIm3DSkyGetPS2ManagerRenderPipeline (RwPrimitiveType type)

Detailed Description

Immediate mode pipes

Function Documentation

RxPipeline* RwIm3DSkyGetPS2ManagerRenderPipeline RwPrimitiveType    type
 

RwIm3DSkyGetPS2ManagerRenderPipeline returns a pointer to the default immediate mode PS2Manager render pipeline.

The PS2Manager (see RxNodeDefinitionGetPS2Manager) Im3D render pipeline for PlayStation 2 is shown below.

The Im3D render pipelines (in fact one pipeline can render all supported primitive types except rwPRIMTYPEPOINTLIST for which you will need to supply your own vector code) are not currently based on the PS2Manager node, but rather the PS2All node (see RwIm3DSkyGetPS2AllRenderPipeline).

If you wish to submit 2D triangles through Submit.csl (i.e you want to do transformation and lighting and whatever else CPU-side - which will of course be very slow) then rather than use this Im3D transform pipeline, you should use a generic (non-PlayStation 2-specific) one. N.B. the PS2Manager Im3D transform pipe must be paired with PS2Manager (and now PS2All, see RwIm3DSkyGetPS2AllRenderPipeline) render pipes and vice versa! Do not change one and not the other.

The PS2Manager Im3D render pipeline (for all primitive types):

PS2Manager.csl

Parameters:
type  RwPrimitiveType of the pipeline to fetch.
Returns:
Returns pointer to the pipeline if successful or NULL if there is an error.
See also:
RwIm3DSkyGetPS2ManagerTransformPipeline , RwIm3DSkyGetPS2AllRenderPipeline , RwIm3DSkyGetPS2AllMatPipeline , RwIm3DGetGenericTransformPipeline , RwIm3DGetGenericRenderPipeline , RwIm3DRenderIndexedPrimitive , RwIm3DRenderPrimitive , RwIm3DRenderTriangle , RwIm3DRenderLine , RwIm3DTransform , RwIm3DEnd , RwIm3DGetRenderPipeline , RwIm3DGetRenderPipeline , RwIm3DSetRenderPipeline , RwIm3DGetTransformPipeline , RwIm3DGetTransformPipeline , RwIm3DSetTransformPipeline
RxPipeline* RwIm3DSkyGetPS2ManagerTransformPipeline void   
 

RwIm3DSkyGetPS2ManagerTransformPipeline returns a pointer to the default immediate mode transform PS2Manager pipeline.

The PS2Manager (see RxNodeDefinitionGetPS2Manager) Im3D transform pipeline does very little work, it just sets up a copy of the source vertices for the RwIm3DRender*() functions to work with and also caches the flags and transformation matrix (since they are used in the render pipeline in the PS2Manager version). In fact, this same pipeline is used by the PS2All-based RwIm3D render pipelines (see RwIm3DSkyGetPS2AllTransformPipeline)

If you wish to submit 2D triangles through Submit.csl (i.e you want to do transformation and lighting and whatever else CPU-side - which will of course be very slow) then rather than use this Im3D transform pipeline, you should use a generic (non-PlayStation 2-specific) one. N.B. the PS2Manager Im3D transform pipe must be paired with PS2Manager (and now PS2All, see RwIm3DSkyGetPS2AllRenderPipeline) render pipes and vice versa! Do not change one and not the other.

The world plugin must be attached before using this function (for now, this is an RpWorld overload of the Im3D functionality, using RpWorld technology - PS2Manager.csl - to speed it up).

The PS2Manager Im3D transform pipeline:

    PS2Im3DFastTransform.csl
   
Returns:
Returns pointer to the pipeline if successful or NULL if there is an error.
See also:
RwIm3DSkyGetPS2ManagerRenderPipeline , RwIm3DSkyGetPS2AllRenderPipeline , RwIm3DSkyGetPS2AllMatPipeline , RwIm3DGetGenericTransformPipeline , RwIm3DGetGenericRenderPipeline , RwIm3DTransform , RwIm3DEnd , RwIm3DRenderIndexedPrimitive , RwIm3DRenderPrimitive , RwIm3DRenderTriangle , RwIm3DRenderLine , RwIm3DGetTransformPipeline , RwIm3DGetTransformPipeline , RwIm3DSetTransformPipeline , RwIm3DGetRenderPipeline , RwIm3DGetRenderPipeline , RwIm3DSetRenderPipeline

Criterion Software © 1993-2003 Criterion Software Limited. All rights reserved. Built Tue Apr 22 12:46:52 2003. Send Feedback
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)