Jump to content

C++ API samples


photo

Recommended Posts

Hello,

I'm working with the evaluation kit, and I've noticed that many of the C++ API samples (Lights, objects, players, etc.) use UnigineScript files to fill the scene in (with lights or objects). I've been trying to combine a few samples and get them to work on my own without the UnigineScripts, by creating the player, objects, and lights in C++ only, but so far I haven't gotten anything to appear on the screen. Are there some capabilities within UnigineScript that aren't possible with the C++ API? Or should I be able to get things working using C++ only?

Thanks!

Link to comment

After trying many different things, I've managed to get the scene to appear on the screen. I did this by adding the -console_command "world_load ..." command, so that my scene is now linked to a UnigineScript file and a .world file. The UnigineScript file is completely blank, and the .world file has just 2 lines I copied over from a sample. Without a .world file, is it possible to show anything on the screen?

 

Thanks!

Link to comment
×
×
  • Create New...