3D Walkthrough Template .. less than 600 lines of C

Since we do not have native C compilers on the Oric, this forum will be mostly be used by people using CC65 or the OSDK. But any general C related post will be welcome !
Post Reply
jbperin
Officer Cadet
Posts: 38
Joined: Wed Nov 06, 2019 11:00 am

3D Walkthrough Template .. less than 600 lines of C

Post by jbperin » Fri Mar 20, 2020 11:56 am

Hi C Oric developpers ,

Please find attached to this post a 3D walkthrough template source code build upon glOric.

The scene is the following one:

Code: Select all

          |----------------                                                   
          |             //|                                                   
          |           //  |                                                   
          |         //    |                                                   
          |       //      |                                                   
 ---------------//        |                                                   
 |              |         |                       *\                          
 |              |         |                     //  \\\                       
 |              |         |                   //       \\                     
 |              |         |                  /           \\                   
 |              |         |                //            /|                   
 |              |         |               /            // |                   
 |              |         |             // \\       ///   |                   
 |              |         |           //     \    //      |          *        
 |              |         |          /        \\//        |         //\\      
 |              |         |         |       *   \        /         / /  \     
 |              |         |         |     //    |      //         / /    \    
 |              |         |         |   //      |    /            / /     \\  
 |              |         |         |  /        |  //            /  /       \ 
 |              |         |         |//         |//             --- /  ------\
 |              |         |         /           /                  /// |      
 |              |         |                                        /   |      
 |              |       //             HOUSE                       |      
 |              |     //                                               |      
 |              |    /                                                 |      
 |              |  //                                                  *      
 |               //                                               PINE            
 -------------- /                                                             
         TOWER                                                                     
But it can be easily be modified and adapted to your needs

Please note that it only requires 600 lines of C code to render this scene.

The TAP file :
3DWALKTHROUGH.tap
(21.56 KiB) Downloaded 8 times
The source package (including glOric v1.1) :
walkthrough.zip
(30.75 KiB) Downloaded 5 times
Image

Feel free to use it in your own production (and please put "glOric by JiBe" in your credits .. I need advertising ;-)


Post Reply