Re: black objects on 1.2

New Message Reply Date view Thread view Subject view Author view

John Rohlf (jrohlf++at++tubes)
Thu, 5 May 94 14:05:50 PDT


>
>
> Hello,
>
> I have just ported a program to 1.2 . The terrain and objects
> get rendered, but totally black. Is there anything to add to the
> material, state definition procedure or could something like
> this be related to getting a no virtual swap space warning at
> the beginning? The materials are not NULL, that's for sure.

Try disabling color mode on your materials:

        pfMtlColorMode(mtl, PFMTL_BOTH, PFMTL_CMODE_COLOR);

The default is for colors(cpack, c4f) to replace the diffuse and ambient color
of the current material. Thus you might get black geometry if you
clear the screen to black and make no other color commands.


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:16 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.