Search the Community

Showing results for tags 'c++'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Welcome to UNIGINE Forums
    • News & Announcements
    • Getting started
  • Development
    • Content Creation
    • World Design
    • Rendering
    • Animation
    • Physics, Navigation and Path Finding
    • UI Systems
    • Sound & Video
    • Editor
    • C++ Programming
    • C# Programming
    • Networking
    • Sim IG (Image Generator)
    • VR Discussions
    • General
  • Improving UNIGINE
    • Documentation
    • Feeback for UNIGINE team
    • Bug Reports
    • Unigine SDK Beta feedback
  • Community
    • Collaboration
    • Tools, Plugins, Materials & Tutorials
    • Showcase
    • General Discussions
  • Legacy
    • UnigineScript

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...

  1. Thoughts on Testing

    Hello Folks, I would be interested in experiences with testing and Unigine, especially for larger projects. What kind of toolchain do you use for continuous integration and how do you unit test? Interacting with the Unigine API often needs Unigine to be initialized which makes tests tedious. Do you use some kind of mocking? Do you test your rendered output? How do you compare test results and expected outputs? I would guess pixelwise comparison can be achieved seldomly. I'm new to both testing in C++ and Unigine and would appreciate any input on this topic. Kind rega
  2. Добрый день. Из документации понял, что для записи сгенерированных данных в картинку карты высот в классе Image есть методы: set2D () и перегруженный setPixels (). С первым, благодаря примеру, всё более менее понятно. Со вторым возникли трудности. Создаю файл: image->create2D(lmapTileResolutionX, lmapTileResolutionY, Image::FORMAT_RGBA8); Генерирую и заполняю массив чаров: heightSourceArray = new unsigned char [lmapTileResolutionX * lmapTileResolutionY]; heightSourceArray i = (rand())%255; Вызываю метод image->setPixels(heightSourceArray); В ре
  3. Добрый день. Не могли бы вы уточнить, что передаётся параметрами (creator, images, x, y) в функцию, особенно интересуют последние инты. И насколько понимаю, в примере опечатка и должен передаваться указатель LandscapeImagesPtr на картинку. // callback function implementing certain actions to be performed on creating a landscape layer map file void CreateFile(LandscapeMapFileCreatorPtr creator, LandscapeImages images, int x, int, y) Зы: Плюсы учу параллельно с движком, поэтому вопросы могут быть совсем дилетантскими, с моей колокольни это пока не видно. С Уважением Констан
  4. Добрый день. Не могу найти в коде вызов системного меню по клавише Esc., чтобы выпилить из проекта или модифицировать под свои нужды.
  5. In my game I need something that moves through the world and can collide with static surfaces but does not simulate physics and is move manually through code. other game engines refer to this as a kinematic collider. This is normally done to create player controllers which need to have their physics implemented manually. C++ examples would be much appreciated.
  6. diffrence between C# and C++ on programming ?

    hey everybody , i`m an indie game developer and i been working with unity engine and c# for about 4 years. and i have good understanding of c# and it`s related API. but when i`m migrated to Unigine i find out that it`s support both C# and C++ and apart from they`re differences on syntax or structure or memory and thread management is there any differences on using each one on Unigine? i mean differences on performances does using C++ on unigine makes our game better and faster ? or something else ? any quote will be so appreciated .... thanks
  7. Hi Unigine Team, First : I must to say you , Thank you so much for public release unigine game engine , I used a bit unigine , this engine is amazing & awesome... Second : Big game dev team or small game dev team can make open world game or Big game with C# or C++ in unigine? Which Language With API Complete in Unigine? C# or C++? Three : Is it possible tell me, which games or simulate projects made with unigne website address? Sincerely Ahmad Karami A Teacher/Book author/Test engineer/Solo GameDev
  8. I want to move an object to fill the screen. Similar to Move to camera in the editor. How should I implement it? Please help me
  9. tracker api calls

    Hi are there functions to load and control track files from the c++ side (can't find anything in the docs)? Best
  10. [SOLVED] Load RAW DXT1 texture

    Hello, I try to load a RAW texture that I have in DTX1 format. I don't found a way to load a RAW texture. I try to load as image but log an error loading int format = ::Unigine::Image::FORMAT_DXT1; ::Unigine::ImagePtr image = ::Unigine::Image::create(); image->create2D(textureSize, textureSize, format); const ::Unigine::Ptr<::Unigine::Blob> stream = ::Unigine::Blob::create(); stream->write(textureData, textureLen); // textureData=RAW DTX1 Buffer, textureLen=size image->load(stream->getStream()); /roberto
  11. About a SSLSocket pluging

    Hello Unigine ... I have 3 problems using SSLSocket Using Unigine script creating a client it don't pass the Handshake with a RSS Feed server The plugin sample ssl_socket_01.cpp, is using tls 1.0 or 1.1 that are deprecable, I try to load my own private key and don't load. How I can use this plugin from C++ if I don't found the interface?. Expanding the questions.... Problem 1 I trying to create a single client and down some RSS feed sample. This client connect but fail on the handshacke. int init() { #ifdef HAS_SSL_SOCKET log.message("ssl s
  12. I try to recreate a shader like the sample on on the sample is use a vertex point as geometry in. Using UUSL the GEOM_TYPE_IN. How I can put a POINT or a Vertex?, for now my two valid options are GEOM_TYPE_IN(LINE_IN) or GEOM_TYPE_IN(TRIANGLE_IN) I try parameters like VERTEX_IN, POINT_IN etc but all of then give me "error X3000: unrecognized identifier" VERTEX_IN or POINT_IN In fact if you do a search on all your documentation for GEOM_TYPE_IN shader definitio
  13. I try to do some shaders but I don't found includes or shaders using on the engine. for sample if you open "evaluation_sim_windows_2.9.0.2\data\core\materials\default\mesh\mesh_base.basemat" this include many shaders as.. vertex="core/shaders/mesh/transparent/ambient.shader" fragment="core/shaders/mesh/transparent/ambient.shader" vertex="core/shaders/mesh/transparent/lights.shader" fragment="core/shaders/mesh/transparent/lights.shader"/> vertex="core/shaders/mesh/opacity/deferred.shader" fragment="core/shaders/mesh/opacity/deferred.shader"/> .... But this don't appear on a
  14. I create a plugin where I want to include a new 3d object. For my 3dObject I inherited from ObjectExternBase class My3dObject: public Unigine::ObjectExternBase { public: template <class> friend class Unigine::Ptr; static void release_ptr(My3dObject *p); { delete p; } static Unigine::Ptr<My3dObject> create(); { Unigine::Ptr<My3dObject> ptr = Unigine::Ptr<My3dObject>(new My3dObject()); return ptr; } virtual int getClassID() override; virtual int getNumSurfaces() override; virtual const char *getSurfaceName(int surface) override; virtual const ::Un
  15. [SOLVED] The Socket is blocking

    Hi I play with Socket class and I been tried several scenarios. The class blocks even in unblocking mode. For sample: 1-The function Socket->gets() is blocking, return only when the remote server close the connection returned all receive as string. Include if you put it as nonblock() the socket. 2-If you use the function Socket->read(...) if the buffer is bigger that the receive Data it's pass right return the the data, but if buffer pass in Socket->read is smaller that the data receive then the second time that you try to read the rest of the data, this will bloc
  16. About Web Request

    Hi I have not found any class that allows me to do a WebRequest. There is some way or is planning to create some class allow make Web Request. Thank you...
  17. Hi, I am using Unigine::Image to load tga files with rgb and rgba channels. The getFormat() does always return rgba8. How do I determine the correct number/format of color channels? Regards Sebastian
  18. Qt DirectX and Unigine

    Hi, we are using opengl at the moment for our project with a QOpenGLWidget which is working fine with the Qt composition of QWidget layers, which have transparency, on each other. We want to use directx because of some shader bugs ,which are not solved in opengl yet, and performance improvement. I also managed to get unigine working with directx but I can not overlay the used QWidget with any other QWidget based elements which have transparency. There is no blending in this case and the Unigine scene will not be visible. Do you already have a solution which works with the
  19. Random crashes

    Hi @demostenes, I've reproduced this. However, it wasn't that often as you mentioned, but quite stable. I also observed that you're running main_sdl.exe instead of regular main.exe. Is this on purpose? We'll investigate the reasons for the crash and will try to fix it in the next update. Thanks.
  20. Moving properties between projects

    Hi! I am wondering how to move properties between projects - lets say I would like to use the light switcher, switch receiver (light source going on/off) and the sun control available in the Superposition project in a new file. I have imported all the cpp. and headers from Superposotion data folder into my project´s data folder. I even tried to copy paste the code from the Superpositions light switcher into the switch property cpp of the vr template, adding all the headers and files included in the light switcher cpp, but I still dont get its funcionality in the new file. I think it could b
  21. in Docs, There is only way to do it with code. How add component to node by UnigineEditor? (not .prop) probably like mouse drag to node
  22. Create custom Widget element

    I have no idea, how to implement custom Widget element. In Qt i can do something like this: #include <QWidget> #include <QToolButton> #include <QLineEdit> #include <QSpacerItem> class CustomEditor : public QWidget { public: CustomEditor(QWidget *_parent = nullptr): QWidget(_parent) { m_btn = new QToolButton(this); m_btn->setText("Btn"); m_edit = new QLineEdit(this); QHBoxLayout *lt = new QHBoxLayout(this); setLayout(lt); lt->addWidget(m_edit); lt->addWidget(m_btn); } privat
  23. C++ examples for Widget classes

    Hi community, the documentation for widget usages with c++ is not very big at the moment and most things I have to try by myself which is very time consuming because there are no examples. I hope this will get better. Currently I am stuck with WidgetHBox class. Can anybody tell me how to connect WidgetLabels to them with c++ code. A small example would be great. Thanks Sebastian
  24. openCV slow frame reading

    I'm using openCV in Unigine project. Function cv::VideoCapture::read() works pretty fast alone and within Unreal Engine. But calling it from Unigine::WorldLogic::update() is very slow (15 FPS). What are the possible reasons and how can I fix it?
  25. How can I set the WASD movement speed for a PlayerDummy object? There is an old question on the forums but that solution no longer applies (set min and max velocity in tools->camera). I can set the WASD speed in the editor bit that's saved in the editor config file not the .world