Advertisement
3_2004-2005 Coding Standards #148442

engine3d

This source code demonstrates the techniques used to handle 3D graphics from scratch - without using an API such as OpenGL. The code includes Gouraud shading, which gives much better quality than flat shading for curved surfaces. Also included are methods for building general 3D shapes. The code does not yet include texture mapping. Some things that it can do are: build models, wire-frame rendering, lighting, flat shading, gouraud shading, phong shading, backface culling, perspective projection, world space to view space transformation, camera movement, frustum culling. There is a delphi project included to demostrate how to use the rendering engine.

AI

Resumen de IA: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Código fuente
original-source
Upload
Public Function KeyAscii(ByVal UserKeyArgument As KeyPressEventArgs) As Short
 KeyAscii = Asc(UserKeyArgument.KeyChar)
End Function
Private Sub txtusername_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtusername.KeyPress
 If User.KeyAscii(e) = 13 Then
  msgbox "you press ENTER key"
 End If
End Sub
Comentarios originales (3)
Recuperado de Wayback Machine