YouGroove Posted August 10, 2011 Share Posted August 10, 2011 Well i've seen the coe for loading a scene in C++ or C#, but the command don't load the entities and lights ! So i don't see the interest of placing lights and entities in the editor if you don't have them at loading. It can be loosing time : - you place the entitie you want in scene editor - you laod the level by code - in main function : you laod position and other attributes, and place the same entity or light by code ? - you can acess by code to your entitie Why not : -You place the light or entitie in the world editor where you want - by code with the loading command :it load the world , and the entities and lights - you can access by code to your entitie I find that's doing two time the same thing and a waste of easyness : -placing the entitie in the editor -placing it another time by code Loading a world should be loading all stuff you have placed no ? like a good bucnh of other 3D engines ? It's just an idea to perhaps improve the engine ! Quote Stop toying and make games Link to comment Share on other sites More sharing options...
macklebee Posted August 10, 2011 Share Posted August 10, 2011 you can already do this...http://www.leadwerks.com/werkspace/topic/381-scene-loading-example/page__view__findpost__p__5665 Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
YouGroove Posted August 10, 2011 Author Share Posted August 10, 2011 Thanks macklebee : So i must follow this thread tutorial in fact ? Perhaps it should be standard on the SDK no ? Because like i have seen in another tutorial scene loading command only loads static and not entities and ligths ? Or perhaps i'm cofused ? or it was an old tutorial ? Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Marleys Ghost Posted August 10, 2011 Share Posted August 10, 2011 Its your friend Quote AMD Bulldozer FX-4 Quad Core 4100 Black Edition 2 x 4GB DDR3 1333Mhz Memory Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5 Windows 7 Home 64 bit BlitzMax 1.50 • Lua 5.1 • MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro 3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET LE 2.5/3.4 • Skyline • UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0 Marleys Ghost's YouTube Channel • Marleys Ghost's Blog "I used to be alive like you .... then I took an arrow to the head" Link to comment Share on other sites More sharing options...
macklebee Posted August 10, 2011 Share Posted August 10, 2011 the key to loading the standard scripted entities like the lights and atmosphere objects with a scene in c++ is this: //Set Lua variable BP L=GetLuaState(); lua_pushobject(L,framework); lua_setglobal(L,"fw"); lua_pop(L,1); Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
YouGroove Posted August 10, 2011 Author Share Posted August 10, 2011 Thanks macklebee : In fact this is the lines that pushes to load all entities at same time as the world so. Once again i didn't talked only in my interest, i just wanted to show that not all things where so clear for a newbbie here Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.