Jump to content

Search the Community

Showing results for tags 'c++'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Blogs

  • Development Blog
  • Canardian's Blog
  • Beyond Civilization Blog Ext
  • Tyler's Blog
  • macklebee's Blog
  • B-Byrnes' Blog
  • Marleys Ghost's Blog
  • omid3098's Blog
  • Richardsimpo123456's Blog
  • DJDD's Blog
  • Rick's Blog
  • --
  • xtreampb's Blog
  • Economically Disadvantaged
  • klepto2's Blog
  • Old Blog
  • Chris Paulson's Blog
  • Davaris' Blog
  • nil
  • Rekindled Phoenix's Blog
  • Flexman's Blog
  • Kattemaksu Online
  • Marcousik's Creations Blog
  • EVE LBS Studio
  • Rendering puzzles
  • Screen Size Utility
  • Niosop's Blog
  • 1299 RTS Game Project
  • Blitzbat's Blog
  • gordonramp's Blog
  • Andy Gilbert's Blog
  • Marcus' Blog
  • JornAggror Blog
  • diedir's Blog
  • wayneg's Blog
  • Masterxilo's Blog
  • Dave Lee's Blog
  • peubuy's blog
  • OD Arts -Leadwerks Blog
  • The progression......
  • Ultra Software Company Blog
  • The Progression
  • Pancake's Blog
  • Test Blog
  • BLaBZ Blog
  • Pure³d's Blog
  • dreamhead Blog
  • RVL's Blog
  • DB's Blog
  • Toxin Games Development Blog
  • CombatHelo Blog (RSS Import)
  • Foolish's Blog
  • ZioRed's Corner
  • Toxin Games Twitter
  • Shard - Third Initiative
  • Shard's Blog
  • Soamp's Blog
  • Soamp's Blog
  • Laurens' Blog
  • JT`s warehouse district
  • Kennar's Blog
  • KiteFuchs' Blog
  • KiteFuchs' Blog
  • Rachel's Dev-Blog
  • Eagle's Blog
  • zaphos' Blog
  • please delete this blog
  • Afke's Blog
  • Richard Simpson
  • knowledgegranted's Blog
  • EdzUp(GD)'s Blog
  • aGameLife's Kelasel MMORPG Blog
  • tournamentdan's Blog
  • Beyond Civilization Blog
  • smashthewindow
  • AnniXa's Blog
  • AnniXa's Blog
  • Elemental Development
  • DigitalHax Blog
  • Aria's Blog
  • Strogg76's Blog
  • Clackdor's Blog
  • Leadwerks Project Status
  • simpleprogrammer's Blog
  • Pathfinding in LE.2.x
  • Naughty Alien's Blog
  • smashthewindow's Blog
  • Ali Salehi's Blog
  • Jardar's Blog
  • Chris Vossen's Development Blog
  • Scarlet Thread Studios' Blog
  • Kronos' Blog
  • Benton's Blog
  • ChrisV's Blog
  • tjheldna's Blog
  • shadmar's Blog
  • 3D Masons, LLC
  • Andy Gilbert's Enviro Models
  • ParaToxic's Blog
  • NarkLord's Blog
  • ChrisMAN's Blog
  • ChrisMAN's Blog
  • CGMan's Blog
  • The Game
  • Chris Tutorials
  • Leadwerks 3 Experience
  • An Alien Saga
  • klepto2 & Leadwerks 3
  • Inside the mind of eternal insomniac
  • josk's Blog
  • Shader Development in Leadwerks 3.1
  • 3D Coat : Column game making of
  • Einlander's Blog
  • Ginger George's Blog
  • I have a problem
  • Michael_J's Blog
  • nasamydifol's Blog
  • Digman's Blog
  • noesisGUI
  • SavageDogg38's Blog
  • Built from Ruins
  • Remaining Days
  • test_external_blog
  • The Hunt For Food Blog
  • Crazy Minnow Studio
  • CrazyMinnowStudio
  • Guppy's Blog
  • Playing Online
  • Evayr's Blog
  • DerRidda's Blog
  • Karl's Blog
  • whiterabbit's Blog
  • Tinyboss Games
  • abendkleider's Blog
  • sacguccireplica's Blog
  • Arena
  • Imchasinyou's Blog
  • xtom's Blog
  • Lua is better than you think.
  • mdgunn's Blog
  • Crime Closer
  • lxFirebal69xl's Blog
  • Wedmer's Blog
  • Lockdown, going forward.
  • Pump-Action Captain
  • Igor's Blog
  • Dead Anyway
  • Runenrise and more
  • reepblue's Blog
  • Slippy's Corner
  • LUA Musings
  • severjack's Blog
  • mikeporter's Blog
  • miko93's Blog
  • Megalocerous' Blog
  • lxFirebal69xl's Blog
  • aiaf's Blog
  • Lostghbear's Blog
  • echo $BLOG_NAME > blog_title.tmpl
  • johnadam111's Blog
  • Dwarf Beard
  • burgelkat's Blog
  • Charrua's Blog
  • peterpaul's Blog
  • joshmathews' Blog
  • Martin Kearl's Blog
  • Brutile's blog
  • tipforeveryone's Blog
  • Glushchenko Blog
  • Express Lab Games Blog
  • Blueapples' Blog
  • DooMAGE's Blog
  • Structura devblog
  • UltraEngine - Experiences, add-ons and other Stuff
  • martyj's Blog
  • Dragonfreak's Blog
  • Brutile's Blog
  • assigmenthelp
  • Case Study Assignment Help
  • How to deal with bad grade ?
  • How to deal with bad grade ?
  • GameDev Blog
  • devcjohnson's Blog
  • devcjohnson's Blog
  • THE WHAT? Blog
  • The Demurian Scribe
  • GUI Editor
  • GUI Tutorial
  • noob_shaders
  • The Seventh World
  • Phodex Games Blog
  • Leadwerks VS Source 2
  • Work in Progress - Scifi PBR Media
  • [C++] First Player game start
  • The Blog of Yue
  • Snowboarding Development Blog
  • Ocean: Rendering in Leadwerks 4
  • Game Ready Maps
  • Ultra App Kit (Advanced Custom Widgets)
  • Poking around
  • SALVATIONLAND
  • Blender tutorials
  • Usefull Scripts & Components
  • Thirsty Panther
  • Ultimate Action Game Controller

Forums

  • Software
    • General Discussion
    • Programming
    • Game Artwork
    • Showcase
    • Suggestion Box
    • Bug Reports
  • Addons
    • Extensions & Plugins
    • Components
    • Addon Development
  • Platforms
    • Windows
    • Linux
    • macOS

Categories

  • Streams and Events
  • Tutorials
  • Games
  • Work in Progress

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Location

  1. Probably a stupid question, but I just started using Leadwerks again, and happened to stumble across classes like GUI, Button, TextButton, etc in autocomplete. Are these just leftovers of something, or are they something new? Can't find any docs on them and using them tends to give errors about shaders.
  2. Hi I am new here, i would want to know if there is a support between for Visual Studio community 2015 and Leadwerks ? Any examples how to use that ? Otherwise where i can get various demos to start with C++ ?
  3. Here is how i made it possible to call C++ from LUA. I want to build Multiplayer game in Leadwerks. But i couldn't find networking libraries and threading libraries that would make it usable in Lua. So i build a Networking client in C++ with libcurl and libpthread . But i want to still use the Lua scripting on the prefabs since a lot of work is already done for me here. And also programming in Higher level languages is just faster. I decided to use the libtolua++ libraries, since this is already build into Leadwerks. I work on Ubuntu 15.04. Here the tolua++ libs are installed with: sudo apt-get install libtolua++5.1-dev The tolua++ program needs a pck file which shall contain the c++ like seudo code that is translated into lua classes. My package: $#include "shot.h" class ShotListener { ShotListener(); ~ShotListener(); void shot(Object* oEntity, float damage); float getHealth(Object* oEntity); }; I have made two functions. One to emit shots detected on the Entities from the Lua scripting. Another to get the current health status from C++ side. My actual ShotListener.h class looks like this: #pragma once #include "App.h" #include "Leadwerks.h" using namespace Leadwerks; class ShotListener { private: public: ShotListener(void) { } ~ShotListener(void){} void shot(Object* oEntity, float damage) { App *app = App::getInstance(); Entity * entity = (Entity*)oEntity; app->entityShot(entity, damage); return; } float getHealth(Object* oEntity) { App *app = App::getInstance(); Entity * entity = (Entity*)oEntity; float value = app->getEntityHealth(entity); return value; } }; As you can see i changed the default App class into a Singleton so that i can get the App object from the instances of ShotListener that is used from Lua. Having placed these two files in the same folder i ran the following function from the terminal: tolua++5.1 -o tolua_shot.cpp -H tolua_shot.h -n Shot shot.pkg This generated two files tolua_shot.cpp and tolua_shot.h that i included in my C++ project along with the shot.h file. This way i can do a self.shotListener = ShotListener:new() In the Script:Start() function in mu Lua objects and a self.shotListener:shot(self.entity, self.hits) When Hurt is called in the Lua object. After this i just had to sort out all the Segmentation error bugs because of multithreading. I forgot to mention that the ShotListener Lua also needs to be initialized in the main.cpp before app->Start() with the following: if (Interpreter::L==NULL) Interpreter::Reset(); tolua_ShotListener_open(Interpreter::L);
  4. When I started the engine I thought I should combine the Lua and C++. For example scripts to do on Lua ,game logic and mechanics on C++. But everything you can write in C++, you can also write and Lua and I thought - does it make sense to combine Lua and C++? Are there any advantages in the combination of two languages?
  5. Right now the compiled *.o files are generated in the same directory as the source files, which is a bit messy (at least according to me). It would be better of the ended up in its own directory. This is simply done by changing one line in the template $PROJECT_NAME.cbp. Change this line <Option object_output="../../" /> To <Option object_output="obj" /> and all compiled object files will end up in folders at Project/Linux/obj
  6. Hello! I have problems with creating spectator camera with C++ using this tutorial sphere moving faster then camera, but this is not main problem. I dont understand why, but sphere have the inertia. I mean, when i stop pressing 'w' sphere dont stop movement, just slow down a bit. And also she pushes off from the wall and flies. I cant understand why it hapends! Please, give me advice. There is my code #include "App.h" using namespace Leadwerks; App::App() : window(NULL), context(NULL), world(NULL), camera(NULL) {} App::~App() { delete world; delete window; } Vec3 camRotation; Vec2 centerMouse; Vec2 mouseDef; Vec3 camMovement; Vec3 Temp; float MouseSens; float strafeM; float moveM; float forceM; bool cameraMode; bool App::Start() { // Создание основных коммпонентов window = Window::Create("Learning", 0, 0, 1920, 1080, Window::Titlebar); context = Context::Create(window); world = World::Create(); camera = Camera::Create(); camera->SetPosition(0, 2, 5); light = DirectionalLight::Create(); // Определение переменных MouseSens = 10; strafeM = 0.4; moveM = 0.6; forceM = 1000; centerMouse = Vec2(context->GetWidth() / 2, context->GetHeight() / 2); // Создание спектатора spectator = Model::Sphere(8); spectator->SetPosition(Vec3(0, 8, 0)); spectator->SetScale(Vec3(5, 5, 5)); Shape* spectatorShape = Shape::Sphere(0, 0, 0, 0, 0, 0, 1, 1, 1); spectatorShape = Shape::Sphere(); spectator->SetShape(spectatorShape); spectator->SetMass(1); spectator->SetGravityMode(false); spectatorShape->Release(); cameraMode = false; // Загрузка карты Map::Load("maps/test.map"); window->HideMouse(); return true; } bool App::Loop() { Time::Update(); world->Update(); world->Render(); context->Sync(false); // Возможность закрыть окно if (window->Closed() || window->KeyHit(Key::Escape)) return false; // Переключение между режимами камеры if (window->KeyHit(Key:)) cameraMode = !cameraMode; // Удерживание указателя мыши по центру Vec3 CMP = window->GetMousePosition(); mouseDef.x = CMP.x - centerMouse.x; mouseDef.y = CMP.y - centerMouse.y; window->SetMousePosition(centerMouse.x, centerMouse.y); // Вращение камеры camRotation.x += mouseDef.y / MouseSens; camRotation.y += mouseDef.x / MouseSens; camera->SetRotation(camRotation); //Движение камеры camMovement.x = (window->KeyDown(Key:) - window->KeyDown(Key::A)) * Time::GetSpeed() * strafeM; camMovement.y = (window->KeyDown(Key::E) - window->KeyDown(Key::Q)) * Time::GetSpeed() * strafeM; camMovement.z = (window->KeyDown(Key::W) - window->KeyDown(Key::S)) * Time::GetSpeed() * moveM; if (cameraMode) { camera->SetPosition(spectator->GetPosition()); Vec3 tForce = Transform::Vector(camMovement, camera, 0); spectator->AddForce(camMovement * forceM); } else { camera->Move(camMovement); }; return true; }
  7. I wish for Leadwerks some functions for saving 3D model stuff. Not inside the editor, I wish to export a model in .fbx format and .mdl as a prefab it would also be nice.
  8. When compiling in Linux a bunch of warning for unknown pragmas is generated. Really annoying. Example: Compiling this source file #include <Leadwerks.h> // yes! A one line cpp file You will get following warnings. Yes! I know they can be ignored. But the whole thing looks like a mess and its hard to see the "Real" warnings. In file included from /home/roland/SteamLibrary/steamapps/common/Leadwerks/Include/Leadwerks.h:327:0, from /media/roland/work/LE/Trails/Source/dummy.cpp:1: /home/roland/SteamLibrary/steamapps/common/Leadwerks/Include/Classes/Directory.h:2:0: warning: ignoring #pragma warning [-Wunknown-pragmas] #pragma warning(disable:4290) ^ /home/roland/SteamLibrary/steamapps/common/Leadwerks/Include/Classes/Directory.h:3:0: warning: ignoring #pragma warning [-Wunknown-pragmas] #pragma warning(disable:4996) ^ In file included from /home/roland/SteamLibrary/steamapps/common/Leadwerks/Include/Leadwerks.h:371:0, from /media/roland/work/LE/Trails/Source/dummy.cpp:1: /home/roland/SteamLibrary/steamapps/common/Leadwerks/Include/Classes/Stream.h:2:0: warning: ignoring #pragma warning [-Wunknown-pragmas] #pragma warning(disable:4290) ^ /home/roland/SteamLibrary/steamapps/common/Leadwerks/Include/Classes/Stream.h:3:0: warning: ignoring #pragma warning [-Wunknown-pragmas] #pragma warning(disable:4996) ^ In file included from /home/roland/SteamLibrary/steamapps/common/Leadwerks/Include/Leadwerks.h:375:0, from /media/roland/work/LE/Trails/Source/dummy.cpp:1: /home/roland/SteamLibrary/steamapps/common/Leadwerks/Include/Classes/Texture.h:2:0: warning: ignoring #pragma warning [-Wunknown-pragmas] #pragma warning(disable:4290) ^ /home/roland/SteamLibrary/steamapps/common/Leadwerks/Include/Classes/Texture.h:3:0: warning: ignoring #pragma warning [-Wunknown-pragmas] #pragma warning(disable:4996) ^ In file included from /home/roland/SteamLibrary/steamapps/common/Leadwerks/Include/Leadwerks.h:474:0, from /media/roland/work/LE/Trails/Source/dummy.cpp:1: /home/roland/SteamLibrary/steamapps/common/Leadwerks/Include/Classes/Drivers/Graphics/OpenGL2/OpenGL2Texture.h:2:0: warning: ignoring #pragma warning [-Wunknown-pragmas] #pragma warning(disable:4290) ^ /home/roland/SteamLibrary/steamapps/common/Leadwerks/Include/Classes/Drivers/Graphics/OpenGL2/OpenGL2Texture.h:3:0: warning: ignoring #pragma warning [-Wunknown-pragmas] #pragma warning(disable:4996) ^ Process terminated with status 0 (0 minute(s), 2 second(s)) 0 error(s), 8 warning(s) (0 minute(s), 2 second(s)) And what is causing this then. This is something common in many Leadwerks headers #pragma warning(disable:4290) #pragma warning(disable:4996) #include "../Leadwerks.h" What's a solution that works in both Windows and Linux then. This is #ifdef PLATFORM_WINDOWS #pragma warning(disable:4290) #pragma warning(disable:4996) #endif #include "../Leadwerks.h" Would be great to have this sorted out
  9. Following unused files are distributed. They don't have any usage other than generating 'fake' objects and namespaces in the class view. Should be removed. Leadwerks/Include/Classes/VoxelGrid.h - no namespace Leadwerks/Include/Classes/Keyboard.h - no namespace Leadwerks/Include/Classes/Mouse.h - no namespace Leadwerks/Include/Classes/scenegraph.h - namespace LE3 Leadwerks/Include/Classes/Polygon.h - no namespace Before removing them After removing them Also, my guess is that the namespace Leadwerks3D is some leftover from previous version and they should have the namespace Leadwerks
  10. Before I released Vectronic's Demo, I've noticed that when recompiling the project even with the stock code, the game runs at a much slower framerate than the exe generated by the project manager. But now since the demo is out, and there is something to test it with I'd thought I would share this issue with the community, and hopefully find a fix. Please download the Vectronic Demo if you don't have it already, then download this 7z file which contains two exe's. One recompiled titles "Vectronic_Recompiled" (Recompiled by me.) and the other "Vectronic_Stock" (Straight from the project manager). It also contains the Source and Project Folder. This should work regardless if you have the latest beta or not. I tried the exe's on the current standard release. You'll notice that the stock executable runs at a higher framerate than the recompiled executable. I've not changed a single thing within the projects nor source code. What makes this different than the ones generated by the stock builds of the executables? Thanks.
  11. After a long while of inactivity on the forums, I wanted to take the time and share my boilerplate and base game application, in c++, for the Leadwerks game engine. The source can be found here. This project uses V$ 2013, C++11 and Leadwerks 3.X. There are currently no external dependencies outside from the full version of Leadwerks Game Engine, on Steam. If you have any problems setting up the application just let me know. I will gladly assist in any way possible. You should be able to clone/download the repo, drag in the Leadwerks asset folders, and be on your way! What it includes: Base Game Object Input Manager State Manager Camera Manager Planned enhancements: Event Management Network integration with Steam Voxel Management Game Object Management Weapons and Bullets Several generic C++ containers much much more The planned enhancements are actually already complete, I am just taking them out from my existing game application, cleaning them up, and adding documentation. I look to push changes to the public-facing repository bi-monthly. I would love to get some feedback about what you guys and gals think, whether you are using it in your projects, and or what you think the template could use. I will be posting notes on my IndieDB blog as well to follow my releases. P.S. The current template contains a simple example, demonstrating the use of the Game Object, Camera Manager, and how to switch between Camera Behaviors.
  12. Hello! There was such problem. Created a card with the sky and water. I load it using the following: std:: string mapname = System:: GetProperty ("map", "Maps/my_map_01.map"). I start compilation and at me it is not visible the sky. What do I do not so?
  13. I'm running into a huge issue, I can't wrap my head around it. Whenever I compile the Lua interpreter (Visual Studio Express 2013, Release mode, Windows-32 bit), I get back an exe about 5.5 MB large. The Lua interpreter that comes in each project is only 4.5 MB large. This fact alone wouldn't be a huge issue, but I have a feeling that it is contributing to perfomance issues. Here's the problem: If I create a map with too many entities, my compiled interpreter will exponentially decrease it's framerate until the game basically freezes. The same map used on the Lua interpreted version does not lead to that (the game runs fine at a constant framerate). I don't think it is a memory leak because if I remove instance of the same mesh, the problem goes away (which means it doesn't have to do with batches either, since that is constant). I've even loaded the map without Lua scripts and I still get the same issue. It sounds like some sort of thrashing is going on due to less memory being allocated, but I'm not sure. I'm also only using 2 lights, and about 120k polys (with a similar amount of shadowed polygons). I think I was using between 400 MB and 700 MB of VRAM, but none of these should be the issue here either as I have 2 GB or VRAM. Anyway, any possible solutions or compiler settings/flags that I might be missing here?
  14. I was trying to get sources spawned at positions where you can hear where it's coming from, but whenever I try to spawn a listener and a source (regardless of position), the sound would still sound 2D. Steps to reproduce: Start a blank C++ project Replace the App.cpp's code with this (from the wiki page) Find a sound to play (blank project doesn't have the sound from the wiki) Compile and run Use arrow keys and hear no difference Would be nice if this could get fixed soon. I'm using the latest Beta version. Haven't tested it with Lua though. Example project can be downloaded by downloading the attachment below:
  15. SetColor(1,1,1, 0.5) don't work(For each models in fame). I've tried everything. Help, please. What am i doing wrong?
  16. Have anyone code simples whis using sprites(Like a model, for bullets, for example)? It all, that i need
  17. When you create a Lua project, there are two C++ files listed under the Source folder. Suppose I want to recompile these. Does anyone know how I would go about doing this with VS 2013 (like step-by-step)? (I'm new to C++ for Windows, I primarily worked with C++ on Linux )
  18. Did anyone know, how to create effects like in ?Code sample, if possible
  19. If you now, fast objekts skip collision check and move through other objekts. Have engine any standart methods preventing it?
  20. I assume it's possible seeing as the editor is doing just that. But how would I go about implementing it? What I want to do is run Leadwerks in a panel or something similar and spread Win32 form controls around it.
  21. When i create surface it look like it does not reflect light — very-very dark. What parameter setting it?
  22. What i need to setup qraphics to model like in editor? Open GL support all af this, but i don't know how turn on this methods
  23. Is it possible to check if the window is focused or not eg tabbed out? Some googling indicated in leadwerks 2 AppSuspended() was used however i cant seem to find a leadwerks 3 versions. Im basically trying to stop moving the mouse when the window isnt active
  24. Have anyone code exapmles with buffers using? In wiki it is VERY old
  25. Hi. How to check collision whith trigger and other objects and return this objects adress? In C++
×
×
  • Create New...