Question: * RenderScene ( ) void SceneManager::RenderScene ( ) { / / declare the variables for the transformations glm::vec 3 scaleXYZ; float XrotationDegrees = 0 .
RenderScene
void SceneManager::RenderScene declare the variables for the transformations
glm::vec scaleXYZ;
float XrotationDegrees f;
float YrotationDegrees f;
float ZrotationDegrees f;
glm::vec positionXYZ;
Set needed transformations before drawing the basic mesh.
scaleXYZ glm::vecfff; set the XYZ scale for the mesh
set the XYZ rotation for the mesh
XrotationDegrees f;
YrotationDegrees f;
ZrotationDegrees f;
set the XYZ position for the mesh
positionXYZ glm::vecfff;
SetTransformations set the transformations into memory
scaleXYZ,
XrotationDegrees,
YrotationDegrees,
ZrotationDegrees,
positionXYZ;
SetShaderColor; set the color values into the shader
mbasicMeshesDrawPlaneMesh; draw the mesh with transformation values
Set needed transformations
scaleXYZ glm::vecfff; set the XYZ scale for the mesh
XrotationDegrees f; set the XYZ rotation for the mesh
YrotationDegrees f;
ZrotationDegrees f;
positionXYZ glm::vecfff; set the XYZ position for the mesh
SetTransformations set the transformations into memory
scaleXYZ,
XrotationDegrees,
YrotationDegrees,
ZrotationDegrees,
positionXYZ;
SetShaderColor; set the color values into the shader
mbasicMeshesDrawPlaneMesh; draw the mesh with transformation values
CylinderMesh
scaleXYZ glm::vecfff; set the XYZ scale for the mesh
XrotationDegrees f; set the XYZ rotation for the mesh
YrotationDegrees f;
ZrotationDegrees f;
set the XYZ position for the mesh
positionXYZ glm::vecfff;
to be used on the drawn meshes
SetTransformations set the transformations into memory
scaleXYZ,
XrotationDegrees,
YrotationDegrees,
ZrotationDegrees,
positionXYZ;
SetShaderColor; set the color values into the shader
mbasicMeshesDrawCylinderMesh; draw the mesh with
SphereMesh set the XYZ scale for the mesh
scaleXYZ glm::vecfff; Set scale for the sphere
XrotationDegrees f; set the XYZ rotation for the mesh
YrotationDegrees f;
ZrotationDegrees f;
positionXYZ glm::vecfff; Position the sphere
SetTransformations set the transformations into memory
scaleXYZ,
XrotationDegrees,
YrotationDegrees,
ZrotationDegrees,
positionXYZ;
SetShaderColorffff; Blue color
mbasicMeshesDrawSphereMesh; draw the mesh with transformation values
BoxMesh
scaleXYZ glm::vecfff; Set scale for the box
XrotationDegrees f; Rotate to add some dynamics
YrotationDegrees f;
ZrotationDegrees f;
positionXYZ glm::vecfff; Position the box
set the transformations into memory to be used on the drawn meshes
SetTransformations
scaleXYZ,
XrotationDegrees,
YrotationDegrees,
ZrotationDegrees,
positionXYZ;
SetShaderColorffff; Red color
mbasicMeshesDrawBoxMesh; draw the mesh with transformation values
PyramidMesh
scaleXYZ glm::vecfff; Set scale for the pyramid
XrotationDegrees f; set the XYZ rotation for the mesh
YrotationDegrees f;
ZrotationDegrees f; Rotate for better visualization
positionXYZ glm::vecfff; Position the pyramid
SetTransformations set the transformations into memory
scaleXYZ,
XrotationDegrees,
YrotationDegrees,
ZrotationDegrees,
positionXYZ;
SetShaderColorffff; Yellow color
mbasicMeshesDrawPyramidMesh; draw the mesh with
ConeMesh
scaleXYZ glm::vecfff; Set scale for the cone
set the XYZ rotation for the mesh
XrotationDegrees f;
YrotationDegrees f; Rotate the cone
ZrotationDegrees f;
positionXYZ glm::vecfff; Position the cone
SetTransformations set the transformations into memory
scaleXYZ,
XrotationDegrees,
YrotationDegrees,
ZrotationDegrees,
positionXYZ;
SetShaderColorffff; Green color
mbasicMeshesDrawConeMesh; draw the mesh with
my shapes do not show up when i run the code. please help.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
