zigellsn / xQsite3D

xQsite3D

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xQsite 3D

A 3D Test with SDL2, OpenGL and AssImp with a Gradle build script.

For AssImp you will need CMake and an environment variable named CMAKE_EXECUTABLE pointing to the cmake executable.

You will need to download a font and put it into res/font/. Also I did not include textures. They have to be present in res/textures/.

Then just run gradle build.

Creating and Exporting Models in Blender

Let the camera look down towards -Z, with the up vector pointing to Y. Now hit Ctrl-A with the camera selected and pick 'Rotation to Deltas'. Now apply its final rotation.

Select every mesh and make it look in the direction of the Y axis, with the Z axis pointing up. Set the center of the mesh as you need it. Hit Ctrl-A and pick 'All Transforms'. Now apply its final rotation.

Export to COLLADA with 'Forward Axis Z', 'Up Asis Y' and 'Apply' checked in 'Global Orientation'. This will ensure that the camera vectors are correct.

License

See LICENSE

About

xQsite3D

License:Apache License 2.0


Languages

Language:C++ 70.9%Language:Java 24.4%Language:GLSL 4.6%