trevor.reed Posted June 25, 2014 Share Posted June 25, 2014 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
trevor.reed Posted June 25, 2014 Author Share Posted June 25, 2014 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
elvieness Posted June 26, 2014 Share Posted June 26, 2014 Hello Trevor, Without the *.world file, you won't be able to load the world, and the scene won't be shown on the screen.Please, see also the article on Creating C++ Application without the use of UnigineScript: https://developer.unigine.com/en/docs/1.0/cpp_api/application Link to comment
trevor.reed Posted June 26, 2014 Author Share Posted June 26, 2014 Thanks, that link has been a big help. Not sure how I missed that the first time through :) Link to comment
binstream Posted June 26, 2014 Share Posted June 26, 2014 The article was introduced 2 days ago, inspired by questions from evaluators =) Link to comment
Recommended Posts